home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / util / batch / dosreqtools / dosextensions / requestersrc / makefile < prev    next >
Makefile  |  1994-11-16  |  3KB  |  181 lines

  1.  
  2. #
  3. #
  4. # Makefile for 
  5. #
  6. # $Id$
  7. # IMPORTANT:  To create dependencies  -->  make depend
  8. #
  9. # Makefile for use with Aztec v5 and beyond.  Uses 32-bit ints
  10. #
  11. # $Log$
  12. #
  13.  
  14. .PHONY: .depend functions.h
  15.  
  16. .SUFFIXES:    # Tell make to forget the suffixes it alreay knows
  17.  
  18. .SUFFIXES: .c .o .h
  19.  
  20. # Uncomment out this line if you want make to run quiet
  21. #.SILENT:
  22.  
  23. CC = aztec:bin/cc
  24. AS = aztec:bin/as
  25. LD = aztec:bin/ld
  26.  
  27. MKDEP = makemake >.depend -M
  28.  
  29. CCMODE =
  30. CCOPTS = -wqs
  31. CFLAGS = -bs
  32. INCLUDES =
  33. AFLAGS =
  34. LFLAGS =
  35. LIBS = -lc
  36.  
  37. #============================
  38.  
  39. CC = gcc
  40. AS = gcc
  41. LD = gcc
  42.  
  43. MKDEP = makemake >.depend
  44.  
  45. CCMODE =
  46. CCOPTS = -wqs
  47. CFLAGS = -O2
  48. INCLUDES =
  49. AFLAGS =
  50. LFLAGS =
  51. LIBS =
  52.  
  53. #
  54. # Set things up so we get .o files built correctly....
  55. # (must be configured for each user)
  56. #
  57.  
  58. CC = aztec:bin/acc
  59. AS = aztec:bin/!a
  60. LD = aztec:bin/ald
  61.  
  62. MKDEP = makemake >.depend  -M
  63.  
  64. CCMODE =
  65. CCOPTS = -wqs
  66. CFLAGS = -bs
  67. INCLUDES =
  68. AFLAGS =
  69. LFLAGS = -g
  70. LIBS = -lc
  71.  
  72. #
  73. # the usual stuff ..............
  74. #
  75.  
  76. #
  77. # Names of the directories where we find sources....
  78. #
  79. AMIGA =
  80.  
  81. #
  82. # and objects....
  83. #
  84. LIBOBJ = -lreqtools
  85.  
  86. #
  87. # List of source files 
  88. #
  89.  
  90. SRC1 = rtFontRequest.c rtEZRequest.c rtFileRequest.c rtGetString.c rtGetLong.c rtPaletteRequest.c rtScreenModeRequest.c
  91.  
  92. SRC2 =
  93.  
  94. SRCn =
  95.  
  96. SRC  = $(SRC1) $(SRC2) $(SRCn)
  97.  
  98. #
  99. # List of object files
  100. #
  101.  
  102. OBJ1 =
  103.  
  104. OBJ2 =
  105.  
  106. OBJn =
  107.  
  108. OBJ = $(OBJ1) $(OBJ2) $(OBJn)
  109.  
  110. #
  111. # THE PROGRAM (AOUT)
  112. #
  113.  
  114. all: rtFontRequest rtEZRequest rtFileRequest rtGetString rtGetLong rtPaletteRequest rtScreenModeRequest
  115.  
  116. rtLVRequest : rtLVRequest.o
  117.     $(LD) $(LFLAGS) -o $@ $@.o  $(LIBOBJ) $(LIBS)
  118.  
  119. rtFontRequest : rtFontRequest.o
  120.     $(LD) $(LFLAGS) -o $@ $@.o  $(LIBOBJ) $(LIBS)
  121.  
  122. rtEZRequest : rtEZRequest.o
  123.     $(LD) $(LFLAGS) -o $@ $@.o  $(LIBOBJ) $(LIBS)
  124.  
  125. rtFileRequest : rtFileRequest.o
  126.     $(LD) $(LFLAGS) -o $@ $@.o  $(LIBOBJ) $(LIBS)
  127.  
  128. rtGetString : rtGetString.o
  129.     $(LD) $(LFLAGS) -o $@ $@.o  $(LIBOBJ) $(LIBS)
  130.  
  131. rtGetLong : rtGetLong.o
  132.     $(LD) $(LFLAGS) -o $@ $@.o  $(LIBOBJ) $(LIBS)
  133.  
  134. rtPaletteRequest : rtPaletteRequest.o
  135.     $(LD) $(LFLAGS) -o $@ $@.o  $(LIBOBJ) $(LIBS)
  136.  
  137. rtScreenModeRequest : rtScreenModeRequest.o
  138.     $(LD) $(LFLAGS) -o $@ $@.o  $(LIBOBJ) $(LIBS)
  139.  
  140. # Initilize compiler options
  141. #
  142. # Do environment variable initilizations here. 
  143. #
  144.  
  145. init:
  146.  
  147.     mset ccopts=$(CCOPTS)
  148.  
  149. #
  150. # Generate prototypes
  151. #
  152. functions.h:
  153.     mkproto >functions.h $(SRC)
  154.  
  155. #
  156. #
  157. clean:
  158.     -delete #?.o #?.[c|h]^
  159.  
  160. clobber: clean
  161.     -delete a.out
  162.  
  163.  
  164. #
  165. # Build the dependency list for the .h files used by all sources. We do
  166. # this in multiple passes so to avoid problems with the long command line
  167. # generate when you slap all the sources together.
  168. # Note that there are faster, but more environment-dependent, ways to do
  169. # turn the output of the makemake's into an lmkfile. We avoid those
  170. # on purpose.
  171. #
  172.  
  173. .depend:
  174.     $(MKDEP) $(INCLUDES) $(SRC)
  175.  
  176. # This is a bit of a hack for the benifit of GNU Make version 3.58.
  177. include .depend
  178.  
  179. # File dependencies will be appended after this line by "make depend"
  180.