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