home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / MM1 / SOUNDUTILS / mm1_tracker.lzh / TRACKER4.6 / makefile.org < prev    next >
Makefile  |  1994-11-24  |  6KB  |  248 lines

  1. # Makefile for any machine
  2. # - based on my newer makefile and the GREATE
  3. # modifications by Mike Battersby
  4. ###############################################################################
  5. #
  6. # CONFIGURATION OPTIONS
  7. #
  8.  
  9. # Choose your machine type. Possible types as of this version (4.0)
  10. # are
  11. #  hpalib, hplow, hp3, dec, solaris, sparc, linux, freebsd, sgi, 
  12. #  soundblaster, aix.
  13. MACHINE = sparc
  14.  
  15. # The name of your C compiler. For most machines this will be
  16. # either 'cc' or 'gcc'.
  17. CC = cc
  18.  
  19. # The suffix for object files. This will usually be .o, except for sgi (.j)
  20. O = .o
  21. OPTS=-c
  22. # O =.j
  23. # OPTS=-j
  24.  
  25. # User interface type. Right now, this is Unix as there are no alternatives.
  26. UI = Unix/./
  27.  
  28. # Destination directory for tracker binaries and manpage.
  29. #
  30. # If you don't wish to use the 'make install' and 'make install.man'
  31. # commands, you can ignore these.
  32. BIN_DIR = /users/algo/espie/pub/bin
  33. MAN_DIR = /usr/local/man
  34.  
  35. # Where to put the compression methods description
  36. COMPRESSION_FILE=/users/algo/espie/pub/lib/compression_methods
  37.  
  38. # How to install the binaries and manpage. If you have a unix system,
  39. # use the GNU install program if you have it, otherwise try 'cp'. For
  40. # non-unix systems, make this the command for copying a file with the
  41. # following syntax
  42. #  <program_name> <source_name> <destination_name>
  43. #
  44. # If you don't wish to use the 'make install' and 'make install.man'
  45. # commands, you can ignore this.
  46. INSTALL = install
  47.  
  48. # Permissions and user/group id's to install with. Non-unix users
  49. # should comment these out (alternatively, you can use these to
  50. # provide arguments for the above $(INSTALL) program). If you want
  51. # to install tracker setuid root (which will allow it to renice
  52. # itself when non-root users run it), change the "-m 755" below to
  53. # "-m 4755". If you do so, you must be root to run make install.
  54. #
  55. # If you don't wish to use the 'make install' and 'make install.man'
  56. # commands, you can ignore these.
  57. INST_BIN_OPT = -s -m 755 -o root -g root
  58. INST_MAN_OPT = -m 644 -o root -g root
  59. ###############################################################################
  60. #
  61. # C compiler flags and libraries for each machine.
  62. # Unless you are porting this to a new architecture, you shouldn't
  63. # need to change these (on the other hand, if you understand what you
  64. # are doing, go ahead!).
  65. #
  66.  
  67. CFLAGS_hpalib = +O3 +OS +ESlit
  68. LIBS_hpalib   = -lAt -lAlib -lm
  69. AUDIO_hpalib = Hpux/alib_
  70. CONFIG_hpalib = Hpux/
  71.  
  72. CFLAGS_hplow = -Ae +O3 -Wl, -a,archive -s
  73. LIBS_hplow=-lM
  74. AUDIO_hplow = Hpux/low_
  75. CONFIG_hplow = Hpux/
  76.  
  77. # yet another port to hp! This one might be the best yet.
  78. CFLAGS_hp3 = +O3 +OS +ESlit
  79. LIBS_hp3   = -lAt -lAlib -lm
  80. AUDIO_hp3 = Hpux/3_
  81. CONFIG_hp3 = Hpux/3_
  82.  
  83. CFLAGS_solaris = -O
  84. LIBS_solaris   = -lm
  85. AUDIO_solaris = Sparc/./
  86. CONFIG_solaris = Sparc/solaris_
  87.  
  88.  
  89. CFLAGS_sparc = -O -Bstatic
  90. LIBS_sparc   = -lm
  91. AUDIO_sparc = Sparc/./
  92. CONFIG_sparc = Sparc/
  93.  
  94. CFLAGS_dec = -O 
  95. LIBS_dec   = -lm -lAF
  96. AUDIO_dec = AF/
  97. CONFIG_dec = AF/dec_
  98.  
  99. CFLAGS_sgi = -j -O 
  100. LIBS_sgi   = -laudio -lm
  101. AUDIO_sgi = Sgi/
  102. CONFIG_sgi = Sgi/
  103.  
  104. CFLAGS_soundblaster = -O
  105. LIBS_soundblaster   = -lm
  106. AUDIO_soundblaster = Soundblaster/
  107. CONFIG_soundblaster = Soundblaster/
  108.  
  109. CFLAGS_linux = -N -O2 -funroll-loops
  110. LIBS_linux   = -lm
  111. AUDIO_linux = Linux/./
  112. CONFIG_linux = Linux/
  113.  
  114. CFLAGS_freebsd = -O6 -funroll-loops
  115. LIBS_freebsd = -lm
  116. AUDIO_freebsd = Linux/
  117. CONFIG_freebsd = Linux/
  118.  
  119. CFLAGS_aix = -O
  120. LIBS_aix = -lm
  121. AUDIO_aix = Aix/./
  122. CONFIG_aix = Aix/./
  123.  
  124. CFLAGS = $(CFLAGS_${MACHINE})
  125. COPTS = $(OPTS) $(CFLAGS)
  126. LIBS = $(LIBS_${MACHINE})
  127. CONFIG = $(CONFIG_${MACHINE})
  128. AUDIO = $(AUDIO_${MACHINE})
  129.  
  130. OBJ_TRACKER = main$O $(AUDIO)audio$O st_read$O commands$O \
  131. resample$O automaton$O player$O getopt$O open$O tools$O \
  132. dump_song$O setup_audio$O notes$O display$O \
  133. $(UI)ui$O prefs$O tags$O autoinit$O
  134.  
  135. OBJ_ANALYZER = analyzer$O st_read$O open$O dump_song$O tools$O notes$O \
  136. prefs$O autoinit$O ${UI}ui$O display$O
  137.  
  138. OBJ_SPLITMOD = split$O tools$O st_read$O dump_song$O open$O notes$O \
  139. display$O prefs$O autoinit$O $(UI)ui$O
  140.  
  141.  
  142. all:    config.h tracker randomize analyzer splitmod
  143.  
  144. config.h:
  145.     cp $(CONFIG)config.h config.h
  146.  
  147. install: 
  148.     $(INSTALL) $(INST_BIN_OPT) tracker $(BIN_DIR)
  149.     $(INSTALL) $(INST_BIN_OPT) randomize $(BIN_DIR)
  150.     $(INSTALL) $(INST_BIN_OPT) analyzer $(BIN_DIR)
  151.  
  152. install.man:
  153.     $(INSTALL) $(INST_MAN_OPT) docs/tracker.1 $(MAN_DIR)/man1/tracker.1
  154.  
  155.  
  156.  
  157. devel: 
  158.     -rm -f $(BIN_DIR)/dtracker #$(BIN_DIR)/splitmod
  159.     cp tracker $(BIN_DIR)/dtracker
  160. #-    cp splitmod $(BIN_DIR)/splitmod
  161.  
  162. tracker: ${OBJ_TRACKER}
  163.     ${CC} -o tracker ${CFLAGS} ${OBJ_TRACKER} ${LIBS}
  164.  
  165. analyzer: ${OBJ_ANALYZER}
  166.     $(CC) -o analyzer ${CFLAGS} ${OBJ_ANALYZER} ${LIBS}
  167.  
  168. randomize: randomize.c
  169.     $(CC) -o randomize ${CFLAGS} randomize.c 
  170.  
  171. splitmod: ${OBJ_SPLITMOD}
  172.     $(CC) -o splitmod ${CFLAGS} ${OBJ_SPLITMOD} ${LIBS}
  173.  
  174. main$O: main.c song.h
  175.     $(CC) ${COPTS} main.c
  176.  
  177. tools$O: main.c 
  178.     $(CC) ${COPTS} tools.c
  179.  
  180. $(AUDIO)audio$O: $(AUDIO)audio.c 
  181.     cd `dirname $(AUDIO)`; $(CC) -I.. ${COPTS} `basename $(AUDIO)`audio.c
  182.  
  183. $(UI)ui$O: $(UI)ui.c
  184.     cd $(UI); $(CC) -I.. ${COPTS} ui.c
  185.  
  186. split$O: split.c
  187.     $(CC) ${COPTS} split.c
  188.  
  189. open$O: open.c
  190.     $(CC) ${COPTS} -DCOMPRESSION_FILE=\"${COMPRESSION_FILE}\" open.c
  191.  
  192. audio$O: audio.c
  193.     $(CC) ${COPTS} audio.c
  194.  
  195. automaton$O: automaton.c song.h channel.h
  196.     $(CC) ${COPTS} automaton.c
  197.  
  198. getopt$O: getopt.c getopt.h
  199.     $(CC) ${COPTS} getopt.c
  200.  
  201. getopt1$O: getopt1.c getopt.h
  202.     $(CC) ${COPTS} getopt1.c
  203.  
  204. player$O: player.c song.h channel.h
  205.     $(CC) ${COPTS} player.c
  206.  
  207. st_read$O: st_read.c song.h
  208.     $(CC) ${COPTS} st_read.c
  209.  
  210. commands$O: commands.c channel.h song.h
  211.     $(CC) ${COPTS} commands.c
  212.  
  213. unix/termio$O: unix/termio.c
  214.     $(CC) ${COPTS} unix/termio.c
  215. dump_song$O: dump_song.c
  216.     $(CC) $(COPTS) dump_song.c
  217. analyzer$O: analyzer.c
  218.     $(CC) $(COPTS) analyzer.c
  219. setup_audio$O: setup_audio.c
  220.     $(CC) $(COPTS) setup_audio.c
  221. notes$O: notes.c
  222.     $(CC) $(COPTS) notes.c
  223.  
  224. display$O: display.c
  225.     $(CC) $(COPTS) display.c
  226.  
  227.  
  228. clean:
  229.     -rm $(OBJ_TRACKER) $(OBJ_ANALYZER) $(OBJ_SPLITMOD) randomize$O
  230.     -rm tracker randomize splitmod analyzer core 
  231.     -rm tracker.tar tracker.tar.Z tracker.lzh
  232.     -rm config.h
  233.  
  234. export:
  235.     -rm tracker.tar.Z
  236.     -rm tracker.lzh
  237.     -rm config.h
  238.     cd ..; lha a tracker/tracker.lzh tracker/*.[ch] \
  239.     tracker/*/*.[ch] tracker/*/*Docs/* \
  240.     tracker/Amiga/server/*.[ch] \
  241.     tracker/man/* \
  242.     tracker/Amiga/bin/* \
  243.     tracker/*akefile* tracker/Docs/*
  244.     cd ..; tar cvf tracker/tracker.tar tracker/*.[ch] \
  245.     tracker/*/*.[ch] tracker/*/*/*.[ch] \
  246.     tracker/*/Docs/* \ tracker/man/* tracker/Docs/* tracker/*akefile*
  247.     compress tracker.tar
  248.