OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [mw/] [src/] [demos/] [nxscribble/] [Makefile] - Blame information for rev 673

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 673 markom
##############################################################################
2
# Microwindows template Makefile
3
# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4
##############################################################################
5
 
6
ifndef TOP
7
TOP = ../..
8
CONFIG = $(TOP)/config
9
endif
10
 
11
include $(CONFIG)
12
 
13
######################## Additional Flags section ############################
14
 
15
# Directories list for header files
16
INCLUDEDIRS +=
17
# Defines for preprocessor
18
DEFINES +=
19
 
20
# Compilation flags for C files OTHER than include directories
21
CFLAGS +=
22
# Preprocessor flags OTHER than defines
23
CPPFLAGS +=
24
# Linking flags
25
LDFLAGS +=
26
 
27
############################# targets section ################################
28
 
29
ifeq ($(NANOX), Y)
30
 
31
# If you want to create a library with the objects files, define the name here
32
LIBNAME =
33
 
34
# List of objects to compile
35
OBJS = nxscribble.o scribwidget.o\
36
        hre_api.o li_recognizer.o bitvector.o matrix.o sc.o util.o
37
 
38
ifeq ($(ARCH), ECOS)
39
DEFINES += -DREC_DEFAULT_USER_DIR=\"/bin\"
40
TARGET = $(TOP)/bin/nxscribble.o
41
else
42
TARGET = $(TOP)/bin/nxscribble
43
endif
44
 
45
all: default $(TARGET)
46
        $(CP) letters.cl digits.cl punc.cl $(TOP)/bin
47
 
48
endif
49
 
50
######################### Makefile.rules section #############################
51
 
52
include $(TOP)/Makefile.rules
53
 
54
######################## Tools targets section ###############################
55
 
56
ifeq ($(SHAREDLIBS), Y)
57
$(TOP)/bin/nxscribble: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
58
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS) -lm
59
else
60
ifeq ($(ARCH), ECOS)
61
$(TOP)/bin/nxscribble.o: $(OBJS) $(TOP)/config
62
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -Wl,-r -Wl,--defsym -Wl,nxscribble_main=main -o XX.o
63
        $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@
64
        rm -f XX.o
65
else
66
$(TOP)/bin/nxscribble: $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
67
        $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS) -lm
68
endif
69
endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.