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

Subversion Repositories or1k

[/] [or1k/] [tags/] [MW_0_8_9PRE7/] [mw/] [src/] [demos/] [nanox/] [Makefile] - Blame information for rev 1765

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 += -lm
26
 
27
############################# targets section ################################
28
 
29
ifeq ($(NANOX), Y)
30
ifeq ($(NANOXDEMO), Y)
31
 
32
# If you want to create a library with the objects files, define the name here
33
LIBNAME =
34
 
35
# List of objects to compile
36
ifeq ($(ARCH), ECOS)
37
OBJS = landmine.o
38
TARGETS = $(TOP)/bin/landmine.o
39
OBJS += ntetris.o
40
TARGETS += $(TOP)/bin/ntetris.o
41
OBJS += world.o
42
TARGETS += $(TOP)/bin/world.o
43
else
44
OBJS =  demo.o \
45
        move.o \
46
        landmine.o \
47
        world.o \
48
        nxclock.o \
49
        nxterm.o \
50
        nxview.o \
51
        nxlsclients.o \
52
        nxev.o \
53
        npanel.o \
54
        nterm.o \
55
        demo2.o \
56
        demo5.o \
57
        demo6.o \
58
        t1demo.o \
59
        ftdemo.o \
60
        logfont.o \
61
        slider.o \
62
        ntetris.o \
63
        launcher.o \
64
        nsaver.o \
65
        getselection.o \
66
        setselection.o
67
 
68
TARGETS = $(TOP)/bin/demo $(TOP)/bin/move $(TOP)/bin/landmine \
69
        $(TOP)/bin/world $(TOP)/bin/nxclock $(TOP)/bin/nxterm \
70
        $(TOP)/bin/nxview $(TOP)/bin/nxlsclients $(TOP)/bin/nxev \
71
        $(TOP)/bin/npanel $(TOP)/bin/nterm \
72
        $(TOP)/bin/demo2 $(TOP)/bin/demo5 $(TOP)/bin/demo6 \
73
        $(TOP)/bin/t1demo $(TOP)/bin/ftdemo $(TOP)/bin/logfont \
74
        $(TOP)/bin/slider $(TOP)/bin/ntetris $(TOP)/bin/launcher \
75
        $(TOP)/bin/nsaver $(TOP)/bin/getselection $(TOP)/bin/setselection
76
endif
77
 
78
all: default $(TARGETS)
79
        $(CP) world.map nanogui.ppm ntetris.ppm launcher.cnf tux.gif $(TOP)/bin
80
 
81
endif
82
endif
83
 
84
######################### Makefile.rules section #############################
85
 
86
include $(TOP)/Makefile.rules
87
 
88
ifeq ($(SHAREDLIBS), Y)
89
LD_NANOXCLIENTLIBS = $(CCNANOXCLIENTLIBS)
90
else
91
LD_NANOXCLIENTLIBS = $(NANOXCLIENTLIBS)
92
endif
93
 
94
######################## Tools targets section ###############################
95
 
96
$(TOP)/bin/demo: demo.o $(NANOXCLIENTLIBS) $(TOP)/config
97
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
98
 
99
$(TOP)/bin/move: move.o $(NANOXCLIENTLIBS) $(TOP)/config
100
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
101
 
102
$(TOP)/bin/landmine: landmine.o $(NANOXCLIENTLIBS) $(TOP)/config
103
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
104
 
105
$(TOP)/bin/world: world.o $(NANOXCLIENTLIBS) $(TOP)/config
106
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
107
 
108
$(TOP)/bin/nxclock: nxclock.o $(NANOXCLIENTLIBS) $(TOP)/config
109
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
110
 
111
$(TOP)/bin/nxterm: nxterm.o $(NANOXCLIENTLIBS) $(TOP)/config
112
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
113
 
114
$(TOP)/bin/nxview: nxview.o $(NANOXCLIENTLIBS) $(TOP)/config
115
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
116
 
117
$(TOP)/bin/nxlsclients: nxlsclients.o $(NANOXCLIENTLIBS) $(TOP)/config
118
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
119
 
120
$(TOP)/bin/nxev: nxev.o $(NANOXCLIENTLIBS) $(TOP)/config
121
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
122
 
123
$(TOP)/bin/npanel: npanel.o $(NANOXCLIENTLIBS) $(TOP)/config
124
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
125
 
126
$(TOP)/bin/nterm: nterm.o $(NANOXCLIENTLIBS) $(TOP)/config
127
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
128
 
129
$(TOP)/bin/demo2: demo2.o $(NANOXCLIENTLIBS) $(TOP)/config
130
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
131
 
132
$(TOP)/bin/demo5: demo5.o $(NANOXCLIENTLIBS) $(TOP)/config
133
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
134
 
135
$(TOP)/bin/demo6: demo6.o $(NANOXCLIENTLIBS) $(TOP)/config
136
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
137
 
138
$(TOP)/bin/t1demo: t1demo.o $(NANOXCLIENTLIBS) $(TOP)/config
139
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
140
 
141
$(TOP)/bin/ftdemo: ftdemo.o $(NANOXCLIENTLIBS) $(TOP)/config
142
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
143
 
144
$(TOP)/bin/logfont: logfont.o $(NANOXCLIENTLIBS) $(TOP)/config
145
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
146
 
147
$(TOP)/bin/slider: slider.o $(NANOXCLIENTLIBS) $(TOP)/config
148
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
149
 
150
$(TOP)/bin/ntetris: ntetris.o $(NANOXCLIENTLIBS) $(TOP)/config
151
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
152
 
153
$(TOP)/bin/launcher: launcher.o $($NANOXCLIENTLIBS) $(TOP)/config
154
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
155
 
156
$(TOP)/bin/nsaver: nsaver.o $($NANOXCLIENTLIBS) $(TOP)/config
157
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
158
 
159
$(TOP)/bin/getselection: getselection.o $($NANOXCLIENTLIBS) $(TOP)/config
160
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
161
 
162
$(TOP)/bin/setselection: setselection.o $($NANOXCLIENTLIBS) $(TOP)/config
163
        $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LD_NANOXCLIENTLIBS)
164
 
165
ifeq ($(ARCH), ECOS)
166
# Special build rules for linked in applications
167
$(TOP)/bin/landmine.o: landmine.o
168
#       $(CC) $(CFLAGS) $(LDFLAGS) $< -Wl,-r -Wl,--retain-symbols-file -Wl,landmine.syms -Wl,--defsym -Wl,landmine_main=main -o XX.o
169
        $(CC) $(CFLAGS) $(LDFLAGS) $< -Wl,-r -Wl,--defsym -Wl,landmine_main=main -o XX.o
170
        $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@
171
        rm -f XX.o
172
 
173
$(TOP)/bin/ntetris.o: ntetris.o
174
        $(CC) $(CFLAGS) $(LDFLAGS) $< -Wl,-r -Wl,--defsym -Wl,ntetris_main=main -o XX.o
175
        $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@
176
        rm -f XX.o
177
 
178
$(TOP)/bin/world.o: world.o
179
        $(CC) $(CFLAGS) $(LDFLAGS) $< -Wl,-r -Wl,--defsym -Wl,world_main=main -o XX.o
180
        $(NM) XX.o | grep -v _main | grep ' T' | awk -f $(TOP)/ecos/retain.awk | xargs $(OBJCOPY) XX.o $@
181
        rm -f XX.o
182
endif
183
 

powered by: WebSVN 2.1.0

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