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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [src/] [demos/] [nxscribble/] [Makefile] - Blame information for rev 27

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

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

powered by: WebSVN 2.1.0

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