home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 1 / Mecomp-CD.iso / amiga / tools / uhren / tolleuhr / source / makefile < prev    next >
Encoding:
Makefile  |  1997-06-03  |  878 b   |  42 lines

  1. #
  2. # makefile to build TolleUhr and tolleuhr.library
  3. #
  4.  
  5. # compiler driver (override for flavours!)
  6. #
  7. CC        = gcc
  8.  
  9. # default compiler flags
  10. #
  11. CFLAGS        = -O2 -fomit-frame-pointer -fno-function-cse -msmall-code -mregparm=3 -c
  12.  
  13. # useful for development (faster compiling since no optimizations)
  14. #
  15. #CFLAGS        = -Dextern=static -D__OPTIMIZE__ -w -msmall-code
  16.  
  17. # linker options (no debug info,no startup, no libraries)
  18. #
  19. LDFLAGS        = -s -nostdlib
  20.  
  21. # which libraries
  22. #
  23. LDLIBS        = -lamiga
  24.  
  25. # default targets
  26. #
  27. all:        TolleUhr tolleuhr.library
  28.  
  29. # plain version (libmath.a -> mul32/div[u]32/mod[u]32 for 68000)
  30. #
  31. TolleUhr:    tolleuhr.o
  32.         $(CC) $(LDFLAGS) -o $@ $? $(LDLIBS) lib/libmath.a
  33.  
  34. tolleuhr.library: libinit.o tolleuhr.o
  35.         $(CC) $(LDFLAGS) -o $@ $? $(LDLIBS) lib/libmath.a
  36.  
  37. tolleuhr.o:    tolleuhr.c tolleuhr_locale.h
  38.         $(CC) $(CFLAGS) $<
  39.  
  40. libinit.o:    libinit.c
  41.         $(CC) $(CFLAGS) $< -fno-force-mem
  42.