home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / System / ReqToolsLib / Source / reqtools / Makefile.gcc < prev    next >
Encoding:
Makefile  |  2001-07-02  |  786 b   |  36 lines

  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)
  14.  
  15. .PHONY : all depend clean library
  16.        
  17. all : $(LIBFILE)
  18.  
  19. depend    : $(DEPS)
  20.  
  21. clean    :
  22.     rm -f *.o *.d $(LIBFILE)
  23.     
  24. $(LIBFILE) : $(COBJS)
  25.     $(LD) $(LDFLAGS) $^ $(EXTRALIB) -o $@
  26.  
  27. %.o : %.c
  28.     $(CC) $(CFLAGS) -c $< -o $@
  29.  
  30. %.d : %.c
  31.     $(CC) $(CFLAGS) -M $< -o $@
  32.  
  33. ifeq (,$(filter clean depend,$(TARGET)))
  34. -include $(DEPS)
  35. endif
  36.