home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 594a.lha / imake / Makefile < prev    next >
Makefile  |  1991-10-18  |  2KB  |  69 lines

  1. #
  2. #   WARNING    WARNING      WARNING    WARNING    WARNING    WARNING    WARNING
  3. #
  4. # This is NOT an automatically generated Makefile!  It is hand-crafted as a
  5. # bootstrap, may need editing for your system.    The BOOTSTRAPCFLAGS variable
  6. # may be given at the top of the build tree for systems that do not define
  7. # any machine-specific preprocessor symbols.
  8. #
  9.  
  10. # The architecture flags allow you to specify optimizations for the processor
  11. # type you want.  Uncomment the one you have, or leave all commented if you
  12. # want a generic sed that can run on any processor.
  13. #
  14. # NOTE: Make sure TARGET_ARCH and ARCH_OPTIMIZE is in sync!
  15. #
  16. # Target architecture
  17. #TARGET_ARCH = MC68000
  18. #TARGET_ARCH = MC68010
  19. #TARGET_ARCH = MC68020
  20. TARGET_ARCH = MC68030
  21. #TARGET_ARCH = MC68040
  22. #
  23. # Architecture flags
  24. #ARCH_OPTIMIZE = -m0
  25. #ARCH_OPTIMIZE = -m1
  26. #ARCH_OPTIMIZE = -m2
  27. ARCH_OPTIMIZE = -m3
  28. #ARCH_OPTIMIZE = -m4
  29.  
  30. # Turn on optimizer
  31. OPTIMIZE = -O
  32.  
  33. # Debugging
  34. # DEBUGFLAGS = -d5
  35.  
  36. # Compiler driver
  37. CC = lc
  38.  
  39. # C preprocessor
  40. CPP = cpp
  41.  
  42. # Generic compiler flags
  43. CFLAGS = $(DEFS) $(DEBUGFLAGS) -d$(TARGET_ARCH) $(ARCH_OPTIMIZE)
  44.  
  45. # Linker
  46. LD = blink
  47.  
  48. # Linker flags
  49. LDFLAGS = SC SD ND VERBOSE
  50.  
  51. # Linker libraries
  52. LIBS = LIB:local/butility.lib LIB:lc.lib LIB:amiga.lib
  53.  
  54. # Startup modules (residentability option)
  55. STARTUP = LIB:cres.o
  56.  
  57. # Executable rules
  58. imake: imake.c imakemdep.h
  59.     $(CC) $(CFLAGS) $(OPTIMIZE) -i -o$*.o $*
  60.     $(LD) <WITH <(T:imake.link)
  61.         FROM $(STARTUP) imake.o
  62.         LIB $(LIBS)
  63.         TO imake
  64.         $(LDFLAGS)
  65. <
  66.  
  67. clean:
  68.     @delete imake imake.o
  69.