home *** CD-ROM | disk | FTP | other *** search
/ Sound Sensations! / sound_sensations.iso / midifile / cmtcmu / makefile < prev    next >
Makefile  |  1990-06-28  |  5KB  |  221 lines

  1. # Makefile for cmt stuff
  2. # Last modified date: 20-Jul-86
  3.  
  4. #CURRENT is the exe file we want to make now.
  5. #CURRENT = adagio.exe
  6. #EVERYTHING is everything this makefile knows how to make
  7. #E1 = adagio.exe mm.exe moxc.obj dxget.exe dxput.exe
  8. #E2 = record.exe transcri.exe tuning.exe
  9. #EVERYTHING = $(E1) $(E2)
  10.  
  11. #INIT = rem Current default file to make is $(CURRENT)
  12. #DEINIT = echo Finished OK.`n:errdone`necho Done
  13. # #DEINIT = echo Finished OK.`n:errdone`necho Done
  14. # #BEFORE = echo before
  15. #AFTER  = if errorlevel 1 goto errdone
  16.  
  17. mscARGS = /AS /c
  18. masmARGS = /ML
  19. CLIB = # slibc.lib
  20. MLIB = 
  21. COBJ =
  22. CMTLIB = cmt.lib
  23. LIBS = $(CLIB) $(CMTLIB) $(MLIB)
  24.  
  25. MUOBJ1 = aintr.obj atxt.obj break.obj cintr.obj cmdline.obj
  26. MUOBJ2 = moxcasci.obj moxcbend.obj moxcctrl.obj moxckydn.obj moxckyup.obj
  27. MUOBJ3 = moxcpddn.obj moxcpdup.obj moxcprgm.obj moxctouc.obj 
  28. MUOBJ4 = mpu.obj userio.obj timdif.obj
  29. MUOBJ = $(MUOBJ1) $(MUOBJ2) $(MUOBJ3) $(MUOBJ4)
  30.  
  31. ADH = adagio.h phase1.h phase2.h atxt.h userio.h cmdline.h
  32. ADOBJ = adagio.obj phase1.obj phase2.obj adaspace.obj noteoff.obj
  33.  
  34. DXGOBJ = dxget.obj excldesc.obj
  35.  
  36. DXPOBJ = dxput.obj excldesc.obj
  37.  
  38. MMOBJ = mm.obj
  39.  
  40. RECOBJ = recmain.obj recspace.obj phase1.obj trans2.obj noteoff.obj record.obj
  41.  
  42. TRH = mpu.h cmdline.h userio.h record.h
  43. TROBJ = transcri.obj traspace.obj record.obj
  44.  
  45. #current : $(CURRENT)
  46. #    echo making $(CURRENT)
  47.  
  48. #everything : $(EVERYTHING)
  49. #    echo making $(EVERYTHING)
  50.  
  51. adagio.obj : $(ADH) adagio.c
  52.         cl $(mscARGS) adagio,,,;
  53.  
  54. adaspace.obj : adaspace.c
  55.         cl $(mscARGS) adaspace,,,;
  56.  
  57. aintr.obj : aintr.asm
  58.     masm aintr $(masmARGS),,;
  59.  
  60. atxt.obj : atxt.asm
  61.     masm atxt $(masmARGS),,;
  62.  
  63. break.obj : break.asm
  64.     masm break $(masmARGS),,;
  65.  
  66. pekpok.obj : pekpok.asm
  67.     masm pekpok $(masmARGS),,;
  68.  
  69. cintr.obj : cmdline.h cintr.c
  70.         cl $(mscARGS) cintr,,,;
  71.  
  72. cmdline.obj : cmdline.c
  73.         cl $(mscARGS) cmdline,,,;
  74.  
  75. dxget.obj :  dxget.c
  76.         cl $(mscARGS) dxget,,,;
  77.  
  78. dxput.obj :  dxput.c
  79.         cl $(mscARGS) dxput,,,;
  80.  
  81. excldesc.obj : excldesc.c midicode.h
  82.         cl $(mscARGS) excldesc,,,;
  83.  
  84. mm.obj :  midicode.h mpu.h mm.c 
  85.         cl $(mscARGS) mm,,,;
  86.  
  87. moxc.obj :  mpu.h cmdline.h midicode.h moxc.c
  88.         cl $(mscARGS) moxc,,,;
  89.  
  90. moxcasci.obj : moxcasci.c
  91.         cl $(mscARGS) moxcasci,,,;
  92.  
  93. moxcbend.obj : moxcbend.c
  94.         cl $(mscARGS) moxcbend,,,;
  95.  
  96. moxcctrl.obj : moxcctrl.c
  97.         cl $(mscARGS) moxcctrl,,,;
  98.  
  99. moxckydn.obj : moxckydn.c
  100.         cl $(mscARGS) moxckydn,,,;
  101.  
  102. moxckyup.obj : moxckyup.c
  103.         cl $(mscARGS) moxckyup,,,;
  104.  
  105. moxcpddn.obj : moxcpddn.c
  106.         cl $(mscARGS) moxcpddn,,,;
  107.  
  108. moxcpdup.obj : moxcpdup.c
  109.         cl $(mscARGS) moxcpdup,,,;
  110.  
  111. moxcprgm.obj : moxcprgm.c
  112.         cl $(mscARGS) moxcprgm,,,;
  113.  
  114. moxctouc.obj : moxctouc.c
  115.         cl $(mscARGS) moxctouc,,,;
  116.  
  117. mpu.obj : mpu.c mpu.h atxt.h midicode.h cmdline.h userio.h pitch.h
  118.         cl $(mscARGS) mpu,,,;
  119.  
  120. noteoff.obj : adagio.h noteoff.c
  121.         cl $(mscARGS) noteoff,,,;
  122.  
  123. phase1.obj : adagio.h cmdline.h phase1.c
  124.         cl $(mscARGS) phase1,,,;
  125.  
  126. phase2.obj :  adagio.h mpu.h userio.h phase2.c
  127.         cl $(mscARGS) phase2,,,;
  128.  
  129. recmain.obj : adagio.h phase1.h phase2.h atxt.h userio.h cmdline.h recmain.c
  130.         cl $(mscARGS) recmain,,,;
  131.  
  132. record.obj :  mpu.h userio.h midicode.h record.c
  133.         cl $(mscARGS) record,,,;
  134.  
  135. recspace.obj : recspace.c
  136.         cl $(mscARGS) recspace,,,;
  137.  
  138. timdif.obj : timdif.asm timdif.h macsym.lib prcsym.lib
  139.     masm timdif $(masmARGS),,;
  140.  
  141. trans2.obj :  adagio.h mpu.h record.h userio.h trans2.c
  142.         cl $(mscARGS) trans2,,,;
  143.  
  144. transcri.obj : $(TRH) transcri.c
  145.         cl $(mscARGS) transcri,,,;
  146.  
  147. traspace.obj : traspace.c
  148.         cl $(mscARGS) traspace,,,;
  149.  
  150. tuning.obj : tuning.c pitch.h
  151.         cl $(mscARGS) tuning,,,;
  152.  
  153. userio.obj : userio.c userio.h
  154.         cl $(mscARGS) userio,,,;
  155.  
  156. cmt.lib : $(MUOBJ) cmt.lnk
  157.     lib @cmt.lnk
  158.  
  159. adagio.exe : $(ADOBJ) $(CMTLIB)
  160.     link $(COBJ) $(ADOBJ),adagio,,$(LIBS)
  161.  
  162. dxget.exe : $(DXGOBJ) $(CMTLIB)
  163.     link $(COBJ) $(DXGOBJ),dxget,,$(LIBS)
  164.  
  165. dxput.exe : $(DXPOBJ) $(CMTLIB)
  166.     link $(COBJ) $(DXPOBJ),dxput,,$(LIBS)
  167.  
  168. mm.exe : $(MMOBJ) $(CMTLIB)
  169.     link $(COBJ) $(MMOBJ),mm,,$(LIBS)
  170.  
  171. record.exe : $(RECOBJ) $(CMTLIB)
  172.     link $(COBJ) $(RECOBJ),record,,$(LIBS)
  173.  
  174. transcri.exe : $(TROBJ) $(CMTLIB)
  175.     link $(COBJ) $(TROBJ),transcri,,$(LIBS)
  176.  
  177. tuning.exe : tuning.obj $(CMTLIB)
  178.     link $(COBJ) tuning,tuning,,$(LIBS)
  179.  
  180. clean :
  181.     del *.map
  182.     del *.lst
  183.     del *.cod
  184.  
  185. # clean out all but moxc.obj (needed for cmtl.bat)
  186. cleanob : 
  187.     del adagio.obj
  188.     del adaspace.obj
  189.     del aintr.obj
  190.     del atxt.obj
  191.     del break.obj
  192.     del pekpok.obj
  193.     del cintr.obj
  194.     del cmdline.obj
  195.     del dxget.obj
  196.     del dxput.obj
  197.     del excldesc.obj
  198.     del mm.obj
  199.     del moxcasci.obj
  200.     del moxcbend.obj
  201.     del moxcctrl.obj
  202.     del moxckydn.obj
  203.     del moxckyup.obj
  204.     del moxcpddn.obj
  205.     del moxcpdup.obj
  206.     del moxcprgm.obj
  207.     del moxctouch.obj
  208.     del mpu.obj
  209.     del noteoff.obj
  210.     del phase1.obj
  211.     del phase2.obj
  212.     del recmain.obj
  213.     del record.obj
  214.     del recspace.obj
  215.     del timdif.obj
  216.     del trans2.obj
  217.     del transcri.obj
  218.     del traspace.obj
  219.     del tuning.obj
  220.     del userio.obj
  221.