home *** CD-ROM | disk | FTP | other *** search
/ World of A1200 / World_Of_A1200.iso / programs / system / apipe / source.lha / Makefile < prev    next >
Makefile  |  1995-01-10  |  2KB  |  105 lines

  1. ################################################################################
  2. #
  3. #  Makefile for APipe-Handler (standalone version)
  4. #
  5. #  Copyright (C) 1991 by Per Bojsen.  All Rights Reserved.
  6. #
  7. #  $Id$
  8. #
  9. #  $Log$
  10.  
  11. # The architecture flags allow you to specify optimizations for the processor
  12. # type you want.  Uncomment the one you have, or leave all commented if you
  13. # want a generic sed that can run on any processor.
  14. #
  15. # NOTE: Make sure TARGET_ARCH and ARCH_OPTIMIZE is in sync!
  16. #
  17. # Target architecture
  18. #TARGET_ARCH = -dMC68000
  19. #TARGET_ARCH = -dMC68010
  20. #TARGET_ARCH = -dMC68020
  21. #TARGET_ARCH = -dMC68030
  22. #TARGET_ARCH = -dMC68040
  23. #
  24. # Architecture flags
  25. #ARCH_OPTIMIZE = -m0
  26. #ARCH_OPTIMIZE = -m1
  27. #ARCH_OPTIMIZE = -m2
  28. #ARCH_OPTIMIZE = -m3
  29. #ARCH_OPTIMIZE = -m4
  30. #
  31. # Floating point architecture
  32. #MATH_ARCH = -dMC68881
  33. #
  34. # Floating point flags
  35. #MATH_OPTIMIZE = -f8
  36. #
  37. # Floating point library
  38. #MATH_LIB = LIB:lcm881.lib
  39. #
  40. # Combined machine architecture flags
  41. MACH = $(TARGET_ARCH) $(MATH_ARCH) $(ARCH_OPTIMIZE) $(MATH_OPTIMIZE)
  42.  
  43. # Turn on optimizer
  44. OPTIMIZE = -O
  45.  
  46. # Debugging
  47. # DEBUGFLAGS = -d5
  48.  
  49. # Compiler driver
  50. CC = lc
  51.  
  52. # C preprocessor
  53. CPP = cpp -D__SASC
  54.  
  55. # Generic compiler flags
  56. CFLAGS = -v -b0 $(DEFS) $(DEBUGFLAGS) $(MACH)
  57.  
  58. # Assembler
  59. AS = asm
  60.  
  61. # Assembler flags
  62. AFLAGS = -iASMINCLUDE:
  63.  
  64. # Librarian
  65. AR = oml
  66. ARCMDS = r
  67.  
  68. # Installation dir
  69. INSTDIR = Work:usr/local/L
  70.  
  71. # Libraries
  72. LIBS = LIB:amiga.lib LIB:lcnb.lib
  73.  
  74. OBJECTS = pgmpipe.o child.o
  75.  
  76. all: APipe-Handler
  77.  
  78. install:
  79.     copy APipe-Handler $(INSTDIR)
  80.  
  81. clean:
  82.     delete $(OBJECTS) APipe-Handler
  83.  
  84. APipe-Handler: $(OBJECTS)
  85.     blink <WITH <(T:ppipe.link)
  86.     FROM $(OBJECTS)
  87.     LIB $(LIBS)
  88.     TO $@
  89.     ND SD SC VERBOSE
  90. <
  91.  
  92. pgmpipe.o: pgmpipe.c
  93.  
  94. child.o: child.asm
  95.  
  96. # Default rules
  97. .c.o:
  98.     $(CC) $(CFLAGS) $(OPTIMIZE) -o$*.o $*
  99.  
  100. .asm.o:
  101.     asm $(AFLAGS) -o$*.o $*.asm
  102.  
  103. .a.o:
  104.     asm $(AFLAGS) -o$*.o $*.a
  105.