Metatarget for copying of testfile fixed.
[AROS.git] / workbench / libs / reqtools / Makefile.gcc
blob220114bf0f6c0aa18a189b9b098b8ad1e0dd8824
1 CC      := gcc
2 LD      := gcc
3 RM      := rm
4 CFLAGS  := -Wall -DUSE_STACKSWAP -DNO_INLINE_STDARG -O2 -m68020
5 LDFLAGS := -noixemul -nostartfiles -s
6 LIBFILE := /ram/reqtools.library
7 CFILES  := reqtoolsami_init req boopsigads general filereq filereqalloc \
8            filereqextra filereqmain filereqsetup \
9            palettereq rtlocale \
10            mem misc boopsi rtfuncs
11 COBJS   := $(foreach f, $(CFILES), $(f).o)
12 DEPS    := $(foreach f, $(CFILES), $(f).d)
13 #EXTRALIB:= $(shell $(CC) --print-libgcc-file)
15 .PHONY : all depend clean library
16            
17 all : $(LIBFILE)
19 depend  : $(DEPS)
21 clean   :
22         rm -f *.o *.d $(LIBFILE)
23         
24 $(LIBFILE) : $(COBJS)
25         $(LD) $(LDFLAGS) $^ $(EXTRALIB) -o $@
27 %.o : %.c
28         $(CC) $(CFLAGS) -c $< -o $@
30 %.d : %.c
31         $(CC) $(CFLAGS) -M $< -o $@
33 ifeq (,$(filter clean depend,$(TARGET)))
34 -include $(DEPS)
35 endif