Enable asyncio.library.
[AROS-Contrib.git] / FryingPan / framework / Makefile.mk
blob4cb255f6b8405309d16148ceabcd8a45391cb932
1 #*** Section 1: defaults for most projects
3 # set these ONLY IN YOUR OWN MAKEFILES
5 # Variable: INSTALLDIR
6 # set the directory where target will be copied
7 INSTALLDIR ?=
9 # Variable: Program
10 # define program name
11 Program ?= main
13 # Variable: OBJS
14 # define list of objects to build
15 OBJS ?= main.o
17 # Variable: BUILD_LIBRARY
18 # select, whether to build object lib or executable file
19 BUILD_LIBRARY ?= 0
21 # Variable: OWNSTARTUP
22 # define startup type:
23 # 0: use default startup
24 # 1: use private startup
25 # 2: private, no wb startup
26 OWNSTARTUP ?= 1
28 # Variable: TARGETS
29 # define targets for which the build will be made. Currently supported targets:
30 # - aros
31 # - os3
32 # - morphos
33 # - os4
34 # linux targets are NOT supported
35 TARGETS ?= aros os3 morphos os4
37 # Variable: LIBOPTS
38 # define link options for linking
39 LIBOPTS ?= -lGeneric -lC -nostdlib
41 # Variable: WSPATH
42 # workspace directory where your Generic setup lays.
43 WSPATH ?= $(HOME)/workspace
45 # Variable: INCOPTS
46 # include options for compilation
47 INCOPTS ?=
49 # Variable: OBJDIRS
50 # list of object directories to create. Typically empty.
51 OBJDIRS ?=
53 # Variable: MAKEDIRS
54 # list of directories for which you want to invoke make. typically empty.
55 MAKEDIRS ?=
57 # Variable: PREP
58 # preprocessor directives. typically empty
59 PREP ?=
61 # Variable: BINPATH
62 # Set this to the directory where your compilers are all set
63 BINPATH ?= /usr/local/amiga/bin
65 #---
67 #*** Section 2: handles the binaries & paths
69 AROSBIN = bin-aros
70 M68KBIN = bin-os3
71 MORPHOSBIN = bin-mos
72 OS4BIN = bin-os4
73 LINUXBIN = bin-linux
74 RELDIR = release
75 DBGDIR = debug
77 AROSRBIN = $(AROSBIN)/$(RELDIR)
78 M68KRBIN = $(M68KBIN)/$(RELDIR)
79 MORPHOSRBIN = $(MORPHOSBIN)/$(RELDIR)
80 OS4RBIN = $(OS4BIN)/$(RELDIR)
81 LINUXRBIN = $(LINUXBIN)/$(RELDIR)
83 AROSDBIN = $(AROSBIN)/$(DBGDIR)
84 M68KDBIN = $(M68KBIN)/$(DBGDIR)
85 MORPHOSDBIN = $(MORPHOSBIN)/$(DBGDIR)
86 OS4DBIN = $(OS4BIN)/$(DBGDIR)
87 LINUXDBIN = $(LINUXBIN)/$(DBGDIR)
90 AROSDOBJ = $(AROSDBIN)/obj/
91 M68KDOBJ = $(M68KDBIN)/obj/
92 MORPHOSDOBJ = $(MORPHOSDBIN)/obj/
93 OS4DOBJ = $(OS4DBIN)/obj/
94 LINUXDOBJ = $(LINUXDBIN)/obj/
96 AROSROBJ = $(AROSRBIN)/obj/
97 M68KROBJ = $(M68KRBIN)/obj/
98 MORPHOSROBJ = $(MORPHOSRBIN)/obj/
99 OS4ROBJ = $(OS4RBIN)/obj/
100 LINUXROBJ = $(LINUXRBIN)/obj/
103 AROSR = $(addprefix $(AROSROBJ), $(OBJS))
104 M68KR = $(addprefix $(M68KROBJ), $(OBJS))
105 MORPHOSR = $(addprefix $(MORPHOSROBJ), $(OBJS))
106 OS4R = $(addprefix $(OS4ROBJ), $(OBJS))
107 LINUXR = $(addprefix $(LINUXROBJ), $(OBJS))
109 AROSD = $(addprefix $(AROSDOBJ), $(OBJS))
110 M68KD = $(addprefix $(M68KDOBJ), $(OBJS))
111 MORPHOSD = $(addprefix $(MORPHOSDOBJ), $(OBJS))
112 OS4D = $(addprefix $(OS4DOBJ), $(OBJS))
113 LINUXD = $(addprefix $(LINUXDOBJ), $(OBJS))
116 DIRS = $(AROSRBIN) $(M68KRBIN) $(MORPHOSRBIN) $(OS4RBIN) $(LINUXRBIN) \
117 $(AROSDBIN) $(M68KDBIN) $(MORPHOSDBIN) $(OS4DBIN) $(LINUXDBIN) \
118 $(AROSROBJ) $(M68KROBJ) $(MORPHOSROBJ) $(OS4ROBJ) $(LINUXROBJ) \
119 $(AROSDOBJ) $(M68KDOBJ) $(MORPHOSDOBJ) $(OS4DOBJ) $(LINUXDOBJ) \
120 $(addprefix $(AROSROBJ), $(OBJDIRS)) \
121 $(addprefix $(M68KROBJ), $(OBJDIRS)) \
122 $(addprefix $(MORPHOSROBJ), $(OBJDIRS)) \
123 $(addprefix $(OS4ROBJ), $(OBJDIRS)) \
124 $(addprefix $(LINUXROBJ), $(OBJDIRS)) \
125 $(addprefix $(AROSDOBJ), $(OBJDIRS)) \
126 $(addprefix $(M68KDOBJ), $(OBJDIRS)) \
127 $(addprefix $(MORPHOSDOBJ), $(OBJDIRS)) \
128 $(addprefix $(OS4DOBJ), $(OBJDIRS)) \
129 $(addprefix $(LINUXDOBJ), $(OBJDIRS))
131 ifdef ($(INSTALLDIR))
132 DIRS += $(INSTALLDIR)/$(AROSRBIN) \
133 $(INSTALLDIR)/$(AROSDBIN) \
134 $(INSTALLDIR)/$(M68KRBIN) \
135 $(INSTALLDIR)/$(M68KDBIN) \
136 $(INSTALLDIR)/$(MORPHOSRBIN) \
137 $(INSTALLDIR)/$(MORPHOSDBIN) \
138 $(INSTALLDIR)/$(OS4RBIN) \
139 $(INSTALLDIR)/$(OS4DBIN)
140 endif
142 #---
144 #*** Section 3: Compilers, linkers, archivers, you don't want to change anything
146 GENLIB = $(WSPATH)/Generic/lib
147 GENINC += $(INCOPTS) -I$(WSPATH)/Generic -I$(WSPATH)
149 M68K_CC = $(BINPATH)/m68k-amigaos-gcc
150 AROS_CC = $(BINPATH)/i686-aros-g++
151 MORPHOS_CC = $(BINPATH)/ppc-morphos-gcc
152 OS4_CC = $(BINPATH)/ppc-amigaos-g++
153 LINUX_CC = /usr/bin/g++
155 M68K_AR = $(BINPATH)/m68k-amigaos-ar
156 AROS_AR = $(BINPATH)/i686-aros-ar
157 MORPHOS_AR = $(BINPATH)/ppc-morphos-ar
158 OS4_AR = $(BINPATH)/ppc-amigaos-ar
159 LINUX_AR = /usr/bin/ar
161 M68K_STRIP = $(BINPATH)/m68k-amigaos-strip
162 AROS_STRIP = $(BINPATH)/i686-aros-strip
163 MORPHOS_STRIP = $(BINPATH)/ppc-morphos-strip
164 OS4_STRIP = $(BINPATH)/ppc-amigaos-strip
165 LINUX_STRIP = /usr/bin/strip
168 AROS_RLIBOPTS += -L$(GENLIB)/$(AROSRBIN)
169 MOS_RLIBOPTS += -L$(GENLIB)/$(MORPHOSRBIN)
170 M68K_RLIBOPTS += -L$(GENLIB)/$(M68KRBIN)
171 OS4_RLIBOPTS += -L$(GENLIB)/$(OS4RBIN)
173 AROS_DLIBOPTS += -L$(GENLIB)/$(AROSDBIN)
174 MOS_DLIBOPTS += -L$(GENLIB)/$(MORPHOSDBIN)
175 M68K_DLIBOPTS += -L$(GENLIB)/$(M68KDBIN)
176 OS4_DLIBOPTS += -L$(GENLIB)/$(OS4DBIN)
178 ifeq ($(OWNSTARTUP),1)
179 AROS_RSTARTUP += $(GENLIB)/$(AROSRBIN)/Startup.o
180 MOS_RSTARTUP += $(GENLIB)/$(MORPHOSRBIN)/Startup.o
181 M68K_RSTARTUP += $(GENLIB)/$(M68KRBIN)/Startup.o
182 OS4_RSTARTUP += $(GENLIB)/$(OS4RBIN)/Startup.o
183 AROS_DSTARTUP += $(GENLIB)/$(AROSDBIN)/Startup.o
184 MOS_DSTARTUP += $(GENLIB)/$(MORPHOSDBIN)/Startup.o
185 M68K_DSTARTUP += $(GENLIB)/$(M68KDBIN)/Startup.o
186 OS4_DSTARTUP += $(GENLIB)/$(OS4DBIN)/Startup.o
187 LIBOPTS += -nodefaultlibs -nostdlib -nostartfiles
188 endif
190 ifeq ($(OWNSTARTUP),2)
191 AROS_RSTARTUP += $(GENLIB)/$(AROSRBIN)/NoWBStartup.o
192 MOS_RSTARTUP += $(GENLIB)/$(MORPHOSRBIN)/NoWBStartup.o
193 M68K_RSTARTUP += $(GENLIB)/$(M68KRBIN)/NoWBStartup.o
194 OS4_RSTARTUP += $(GENLIB)/$(OS4RBIN)/NoWBStartup.o
195 AROS_DSTARTUP += $(GENLIB)/$(AROSDBIN)/NoWBStartup.o
196 MOS_DSTARTUP += $(GENLIB)/$(MORPHOSDBIN)/NoWBStartup.o
197 M68K_DSTARTUP += $(GENLIB)/$(M68KDBIN)/NoWBStartup.o
198 OS4_DSTARTUP += $(GENLIB)/$(OS4DBIN)/NoWBStartup.o
199 LIBOPTS += -nodefaultlibs -nostdlib -nostartfiles
200 endif
202 #---
204 #*** Section 4: Compiler flags
205 P2CCFLAGS = -mcpu=604e -O2 -fomit-frame-pointer -mmultiple
207 CPPFLAGS += -fno-rtti -fno-exceptions -fno-check-new
208 CCFLAGS += -Wall -fno-stack-check -fno-builtin -Wno-multichar -Wno-inline -finline -finline-functions
209 M68K_RCCFLAGS += -D__BIG_ENDIAN__ -fno-baserel -noixemul -I/opt/gg/sysinc -m68030 -m68881 $(GENINC) $(CCFLAGS) -O3 -Wuninitialized -fomit-frame-pointer
210 AROS_RCCFLAGS += -D__LITTLE_ENDIAN__ -static -I/usr/local/i686-aros/sys-include $(GENINC) $(CCFLAGS) -Wuninitialized -O3
211 MORPHOS_RCCFLAGS += -D__BIG_ENDIAN__ -noixemul -I/opt/gg/mos-include $(GENINC) $(CCFLAGS) -Wuninitialized -O3 #$(P2CCFLAGS) #-O3
212 OS4_RCCFLAGS += -D__BIG_ENDIAN__ -noixemul -D __USE_INLINE__ -fno-enforce-eh-specs -I/SDK/Include/include_h -I/SDK/include $(GENINC) $(CCFLAGS) -Wuninitialized -O3
213 LINUX_RCCFLAGS += $(CCFLAGS)
215 M68K_DCCFLAGS += -D__BIG_ENDIAN__ -fno-baserel -noixemul -I/opt/gg/sysinc -m68030 -m68881 $(GENINC) $(CCFLAGS) -DDBG -DDEBUG -g
216 AROS_DCCFLAGS += -D__LITTLE_ENDIAN__ -static -I/usr/local/i686-aros/sys-include $(GENINC) $(CCFLAGS) -DDBG -DDEBUG -g
217 MORPHOS_DCCFLAGS += -D__BIG_ENDIAN__ -noixemul -I/opt/gg/mos-include $(GENINC) $(CCFLAGS) -DDBG -DDEBUG -g
218 OS4_DCCFLAGS += -D__BIG_ENDIAN__ -noixemul -D __USE_INLINE__ -fno-enforce-eh-specs -I/SDK/Include/include_h -I/SDK/include $(GENINC) $(CCFLAGS) -DDBG -DDEBUG -g
219 LINUX_DCCFLAGS += $(CCFLAGS)
221 #---
223 #*** Section 5: Build specific settings
225 ifeq ($(BUILD_LIBRARY), 0)
226 AROS_RLINK = $(AROS_CC) $(AROS_RCCFLAGS) -o $(AROSRBIN)/$(Program) $(AROS_RSTARTUP) $(AROSR) $(AROS_RLIBOPTS) $(LIBOPTS)
227 M68K_RLINK = $(M68K_CC) $(M68K_RCCFLAGS) -o $(M68KRBIN)/$(Program) $(M68K_RSTARTUP) $(M68KR) $(M68K_RLIBOPTS) $(LIBOPTS)
228 MOS_RLINK = $(MORPHOS_CC) $(MORPHOS_RCCFLAGS) -o $(MORPHOSRBIN)/$(Program) $(MOS_RSTARTUP) $(MORPHOSR) $(MOS_RLIBOPTS) $(LIBOPTS)
229 OS4_RLINK = $(OS4_CC) $(OS4_RCCFLAGS) -o $(OS4RBIN)/$(Program) $(OS4_RSTARTUP) $(OS4R) $(OS4_RLIBOPTS) $(LIBOPTS)
230 LINUX_RLINK = $(LINUX_CC) $(LINUX_RCCFLAGS) -o $(LINUXRBIN)/$(Program) $(LINUX_RSTARTUP) $(LINUXR) $(LINUX_RLIBOPTS) $(LIBOPTS)
232 AROS_RSTRIP = $(AROS_STRIP) -s $(AROSRBIN)/$(Program)
233 MOS_RSTRIP = $(MORPHOS_STRIP) -s $(MORPHOSRBIN)/$(Program)
234 OS4_RSTRIP = $(OS4_STRIP) -s $(OS4RBIN)/$(Program)
236 AROS_DLINK = $(AROS_CC) $(AROS_DCCFLAGS) -o $(AROSDBIN)/$(Program) $(AROS_DSTARTUP) $(AROSD) $(AROS_DLIBOPTS) $(LIBOPTS)
237 M68K_DLINK = $(M68K_CC) $(M68K_DCCFLAGS) -o $(M68KDBIN)/$(Program) $(M68K_DSTARTUP) $(M68KD) $(M68K_DLIBOPTS) $(LIBOPTS)
238 MOS_DLINK = $(MORPHOS_CC) $(MORPHOS_DCCFLAGS) -o $(MORPHOSDBIN)/$(Program) $(MOS_DSTARTUP) $(MORPHOSD) $(MOS_DLIBOPTS) $(LIBOPTS)
239 OS4_DLINK = $(OS4_CC) $(OS4_DCCFLAGS) -o $(OS4DBIN)/$(Program) $(OS4_DSTARTUP) $(OS4D) $(OS4_DLIBOPTS) $(LIBOPTS)
240 LINUX_DLINK = $(LINUX_CC) $(LINUX_DCCFLAGS) -o $(LINUXDBIN)/$(Program) $(LINUX_DSTARTUP) $(LINUXD) $(LINUX_DLIBOPTS) $(LIBOPTS)
241 else
242 AROS_RLINK = $(AROS_AR) r $(AROSRBIN)/$(Program) $(AROSR)
243 M68K_RLINK = $(M68K_AR) r $(M68KRBIN)/$(Program) $(M68KR)
244 MOS_RLINK = $(MORPHOS_AR) r $(MORPHOSRBIN)/$(Program) $(MORPHOSR)
245 OS4_RLINK = $(OS4_AR) r $(OS4RBIN)/$(Program) $(OS4R)
246 LINUX_RLINK = $(LINUX_AR) r $(LINUXRBIN)/$(Program) $(LINUXR)
248 AROS_RSTRIP = $(AROS_STRIP) --strip-debug $(AROSRBIN)/$(Program)
249 MOS_RSTRIP = $(MORPHOS_STRIP) --strip-debug $(MORPHOSRBIN)/$(Program)
250 OS4_RSTRIP = $(OS4_STRIP) --strip-debug $(OS4RBIN)/$(Program)
252 AROS_DLINK = $(AROS_AR) r $(AROSDBIN)/$(Program) $(AROSD)
253 M68K_DLINK = $(M68K_AR) r $(M68KDBIN)/$(Program) $(M68KD)
254 MOS_DLINK = $(MORPHOS_AR) r $(MORPHOSDBIN)/$(Program) $(MORPHOSD)
255 OS4_DLINK = $(OS4_AR) r $(OS4DBIN)/$(Program) $(OS4D)
256 LINUX_DLINK = $(LINUX_AR) r $(LINUXDBIN)/$(Program) $(LINUXD)
257 endif
259 #---
261 #*** Section 6: Rules.
264 all: $(DIRS) submakes $(TARGETS)
265 @echo "\t[ INFO] All done."
267 clean: subcleans
268 @echo "\t[ INFO] Cleaning up directories..."
269 @rm -rf $(AROSBIN)
270 @rm -rf $(M68KBIN)
271 @rm -rf $(MORPHOSBIN)
272 @rm -rf $(OS4BIN)
273 @rm -rf $(LINUXBIN)
274 @find . -name "*~" -exec rm '{}' \;
275 @find . -name ".*.swp" -exec rm '{}' \;
276 @echo "\t[ INFO] Cleaned up."
278 distclean: clean
279 @echo "\t[ INFO] Cleaning up other data..."
280 @find . -name "cscope.*" -exec rm '{}' \;
281 @echo "\t[ INFO] All done."
283 $(DIRS):
284 @echo "\t[ INFO] Creating directory $@"
285 @mkdir -p $@
287 submakes:
288 @echo "\t[ SUB ] Making sub-elements... "
289 @$(foreach subdir, $(MAKEDIRS), $(MAKE) -C $(subdir);)
291 subcleans:
292 @echo "\t[ SUB ] Cleaning sub-elements... "
293 $(foreach subdir, $(MAKEDIRS), $(MAKE) -C $(subdir) clean;)
295 aros: $(AROSR) $(AROSD)
296 @echo "\t[ AROS] Linking... "
297 ifeq ($(NOLINK),1)
298 @cp $(AROSROBJ)/$(Program) $(AROSRBIN)
299 @cp $(AROSDOBJ)/$(Program) $(AROSDBIN)
300 else
301 @$(AROS_RLINK)
302 @$(AROS_DLINK)
303 endif
304 ifdef INSTALLDIR
305 @cp $(AROSRBIN)/$(Program) $(INSTALLDIR)/$(AROSRBIN)/$(Program)
306 @cp $(AROSDBIN)/$(Program) $(INSTALLDIR)/$(AROSDBIN)/$(Program)
307 endif
309 os3: $(M68KR) $(M68KD)
310 @echo "\t[ M68K] Linking... "
311 ifeq ($(NOLINK),1)
312 @cp $(M68KROBJ)/$(Program) $(M68KRBIN)
313 @cp $(M68KDOBJ)/$(Program) $(M68KDBIN)
314 else
315 @$(M68K_RLINK)
316 @$(M68K_DLINK)
317 endif
318 ifdef INSTALLDIR
319 @cp $(M68KRBIN)/$(Program) $(INSTALLDIR)/$(M68KRBIN)/$(Program)
320 @cp $(M68KDBIN)/$(Program) $(INSTALLDIR)/$(M68KDBIN)/$(Program)
321 endif
323 morphos: $(MORPHOSR) $(MORPHOSD)
324 @echo "\t[ MOS ] Linking... "
325 ifeq ($(NOLINK),1)
326 @cp $(MORPHOSROBJ)/$(Program) $(MORPHOSRBIN)
327 @cp $(MORPHOSDOBJ)/$(Program) $(MORPHOSDBIN)
328 else
329 @$(MOS_RLINK)
330 @$(MOS_DLINK)
331 endif
332 ifdef INSTALLDIR
333 @cp $(MORPHOSRBIN)/$(Program) $(INSTALLDIR)/$(MORPHOSRBIN)/$(Program)
334 @cp $(MORPHOSDBIN)/$(Program) $(INSTALLDIR)/$(MORPHOSDBIN)/$(Program)
335 endif
337 os4: $(OS4R) $(OS4D)
338 @echo "\t[ OS4 ] Linking... "
339 ifeq ($(NOLINK),1)
340 @cp $(OS4ROBJ)/$(Program) $(OS4RBIN)
341 @cp $(OS4DOBJ)/$(Program) $(OS4DBIN)
342 else
343 @$(OS4_RLINK)
344 @$(OS4_DLINK)
345 endif
346 ifdef INSTALLDIR
347 @cp $(OS4RBIN)/$(Program) $(INSTALLDIR)/$(OS4RBIN)/$(Program)
348 @cp $(OS4DBIN)/$(Program) $(INSTALLDIR)/$(OS4DBIN)/$(Program)
349 endif
351 linux: $(LINUXR) $(LINUXD)
352 @echo "\t[ LIN ] Linking... "
353 ifeq ($(NOLINK),1)
354 @cp $(LINUXROBJ)/$(Program) $(LINUXRBIN)
355 @cp $(LINUXDOBJ)/$(Program) $(LINUXDBIN)
356 else
357 @$(LINUX_RLINK)
358 @$(LINUX_DLINK)
359 endif
360 ifdef INSTALLDIR
361 @cp $(LINUXRBIN)/$(Program) $(INSTALLDIR)/$(LINUXRBIN)/$(Program)
362 @cp $(LINUXDBIN)/$(Program) $(INSTALLDIR)/$(LINUXDBIN)/$(Program)
363 endif
364 #---
366 #*** Platform specific targets?
368 $(AROSROBJ)%.o: %_aros.cpp $(DEPS)
369 @echo "\t[R AROS] CC $* "
370 @$(AROS_CC) $(AROS_RCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*_aros.cpp
372 $(M68KROBJ)%.o: %_os3.cpp $(DEPS)
373 @echo "\t[R M68K] CC $* "
374 @$(M68K_CC) $(M68K_RCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*_os3.cpp
376 $(MORPHOSROBJ)%.o: %_mos.cpp $(DEPS)
377 @echo "\t[R MOS ] CC $* "
378 @$(MORPHOS_CC) $(MORPHOS_RCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*_mos.cpp
380 $(OS4ROBJ)%.o: %_os4.cpp $(DEPS)
381 @echo "\t[R OS4 ] CC $* "
382 @$(OS4_CC) $(OS4_RCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*_os4.cpp
384 $(LINUXROBJ)%.o: %_linux.cpp $(DEPS)
385 @echo "\t[R LIN ] CC $* "
386 @$(LINUX_CC) $(LINUX_RCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*_linux.cpp
388 $(AROSDOBJ)%.o: %_aros.cpp $(DEPS)
389 @echo "\t[D AROS] CC $* "
390 @$(AROS_CC) $(AROS_DCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*_aros.cpp
392 $(M68KDOBJ)%.o: %_os3.cpp $(DEPS)
393 @echo "\t[D M68K] CC $* "
394 @$(M68K_CC) $(M68K_DCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*_os3.cpp
396 $(MORPHOSDOBJ)%.o: %_mos.cpp $(DEPS)
397 @echo "\t[D MOS ] CC $* "
398 @$(MORPHOS_CC) $(MORPHOS_DCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*_mos.cpp
400 $(OS4DOBJ)%.o: %_os4.cpp $(DEPS)
401 @echo "\t[D OS4 ] CC $* "
402 @$(OS4_CC) $(OS4_DCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*_os4.cpp
404 $(LINUXDOBJ)%.o: %_linux.cpp $(DEPS)
405 @echo "\t[D LIN ] CC $* "
406 @$(LINUX_CC) $(LINUX_DCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*_linux.cpp
407 #---
409 #*** Global targets.
411 $(AROSROBJ)%.o: %.cpp $(DEPS)
412 @echo "\t[R AROS] CC $* "
413 @$(AROS_CC) $(AROS_RCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*.cpp
415 $(M68KROBJ)%.o: %.cpp $(DEPS)
416 @echo "\t[R M68K] CC $* "
417 @$(M68K_CC) $(M68K_RCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*.cpp
419 $(MORPHOSROBJ)%.o: %.cpp $(DEPS)
420 @echo "\t[R MOS ] CC $* "
421 @$(MORPHOS_CC) $(MORPHOS_RCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*.cpp
423 $(OS4ROBJ)%.o: %.cpp $(DEPS)
424 @echo "\t[R OS4 ] CC $* "
425 @$(OS4_CC) $(OS4_RCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*.cpp
427 $(LINUXROBJ)%.o: %.cpp $(DEPS)
428 @echo "\t[R LIN ] CC $* "
429 @$(LINUX_CC) $(LINUX_RCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*.cpp
431 $(AROSDOBJ)%.o: %.cpp $(DEPS)
432 @echo "\t[D AROS] CC $* "
433 @$(AROS_CC) $(AROS_DCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*.cpp
435 $(M68KDOBJ)%.o: %.cpp $(DEPS)
436 @echo "\t[D M68K] CC $* "
437 @$(M68K_CC) $(M68K_DCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*.cpp
439 $(MORPHOSDOBJ)%.o: %.cpp $(DEPS)
440 @echo "\t[D MOS ] CC $* "
441 @$(MORPHOS_CC) $(MORPHOS_DCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*.cpp
443 $(OS4DOBJ)%.o: %.cpp $(DEPS)
444 @echo "\t[D OS4 ] CC $* "
445 @$(OS4_CC) $(OS4_DCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*.cpp
447 $(LINUXDOBJ)%.o: %.cpp $(DEPS)
448 @echo "\t[D LIN ] CC $* "
449 @$(LINUX_CC) $(LINUX_DCCFLAGS) $(CPPFLAGS) $(PREP) -o $@ -c $*.cpp
451 #---
453 #*** C targets.
455 $(AROSROBJ)%.o: %.c $(DEPS)
456 @echo "\t[R AROS] CC $* "
457 @$(AROS_CC) $(AROS_RCCFLAGS) $(PREP) -o $@ -c $*.c
459 $(M68KROBJ)%.o: %.c $(DEPS)
460 @echo "\t[R M68K] CC $* "
461 @$(M68K_CC) $(M68K_RCCFLAGS) $(PREP) -o $@ -c $*.c
463 $(MORPHOSROBJ)%.o: %.c $(DEPS)
464 @echo "\t[R MOS ] CC $* "
465 @$(MORPHOS_CC) $(MORPHOS_RCCFLAGS) $(PREP) -o $@ -c $*.c
467 $(OS4ROBJ)%.o: %.c $(DEPS)
468 @echo "\t[R OS4 ] CC $* "
469 @$(OS4_CC) $(OS4_RCCFLAGS) $(PREP) -o $@ -c $*.c
471 $(LINUXROBJ)%.o: %.c $(DEPS)
472 @echo "\t[R LIN ] CC $* "
473 @$(LINUX_CC) $(LINUX_RCCFLAGS) $(PREP) -o $@ -c $*.c
475 $(AROSDOBJ)%.o: %.c $(DEPS)
476 @echo "\t[D AROS] CC $* "
477 @$(AROS_CC) $(AROS_DCCFLAGS) $(PREP) -o $@ -c $*.c
479 $(M68KDOBJ)%.o: %.c $(DEPS)
480 @echo "\t[D M68K] CC $* "
481 @$(M68K_CC) $(M68K_DCCFLAGS) $(PREP) -o $@ -c $*.c
483 $(MORPHOSDOBJ)%.o: %.c $(DEPS)
484 @echo "\t[D MOS ] CC $* "
485 @$(MORPHOS_CC) $(MORPHOS_DCCFLAGS) $(PREP) -o $@ -c $*.c
487 $(OS4DOBJ)%.o: %.c $(DEPS)
488 @echo "\t[D OS4 ] CC $* "
489 @$(OS4_CC) $(OS4_DCCFLAGS) $(PREP) -o $@ -c $*.c
491 $(LINUXDOBJ)%.o: %.c $(DEPS)
492 @echo "\t[D LIN ] CC $* "
493 @$(LINUX_CC) $(LINUX_DCCFLAGS) $(PREP) -o $@ -c $*.c
495 #---
497 # vim: ts=3