AUDIO.MAK 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. .OPTIMIZE
  2. version = production
  3. #version = debugging
  4. timbre_file = gmtimbre
  5. #timbre_file = leetimbr
  6. prg_dir = .
  7. obj_debugging = $(prg_dir)\objdb
  8. obj_production = $(prg_dir)\obj
  9. obj_dir = $(obj_$(version))
  10. lib_dir = $(prg_dir)\lib
  11. output_dir = $(prg_dir)
  12. main_dir = $(prg_dir)\source
  13. header_dir = $(main_dir)
  14. tasm_include_dir = /i$(main_dir)
  15. model = f
  16. compiler = w
  17. lib_filename = audio_$(compiler)$(model).lib
  18. lib_name = $(obj_dir)\$(lib_filename)
  19. final_lib = $(output_dir)\$(lib_filename)
  20. .h : $(header_dir)
  21. .c : $(header_dir)
  22. .asm : $(header_dir)
  23. .obj : $(obj_dir)
  24. offlib_files = gf1_osf.lib
  25. lib_files = gf1_osf.lib &
  26. pawe32.lib
  27. #object_files = &
  28. object_files = $(timbre_file).obj &
  29. al_midi.obj &
  30. awe32.obj &
  31. blaster.obj &
  32. debugio.obj &
  33. dma.obj &
  34. dpmi.obj &
  35. fx_man.obj &
  36. gus.obj &
  37. gusmidi.obj &
  38. guswave.obj &
  39. irq.obj &
  40. ll_man.obj &
  41. midi.obj &
  42. mpu401.obj &
  43. multivoc.obj &
  44. mv_mix.obj &
  45. mv_mix16.obj &
  46. mvreverb.obj &
  47. music.obj &
  48. pas16.obj &
  49. pitch.obj &
  50. sndscape.obj &
  51. sndsrc.obj &
  52. task_man.obj &
  53. user.obj
  54. offobject_files = blaster.obj &
  55. debugio.obj &
  56. dma.obj &
  57. dpmi.obj &
  58. fx_man.obj &
  59. gus.obj &
  60. guswave.obj &
  61. irq.obj &
  62. ll_man.obj &
  63. multivoc.obj &
  64. mv_mix.obj &
  65. pas16.obj &
  66. pitch.obj &
  67. sndscape.obj &
  68. sndsrc.obj &
  69. task_man.obj &
  70. user.obj
  71. msg_debugging = Creating debugging library...
  72. tasm_debugging = /t /zi /p /mx /w2 $(tasm_include_dir)
  73. wcc_debugging = /zq /w4 /d2 /i=$(header_dir)
  74. wlink_debugging =
  75. gus_debugging = /zq /w4 /d2 /i=$(header_dir)
  76. gusmidi_debugging = /zq /w4 /d2 /i=$(header_dir)
  77. multivoc_debugging = /zq /w4 /d1 /omaxne /zp4 /5r /zu /d2 /i=$(header_dir)
  78. pas16_debugging = /zq /w4 /d1 /omaxnet /zp4 /5r /i=$(header_dir)
  79. task_man_debugging = /zq /w4 /d1 /omaxnet /zp4 /5r /i=$(header_dir)
  80. midi_debugging = /zq /w4 /d2 /zu /i=$(header_dir)
  81. al_midi_debugging = /zq /w4 /d2 /zu /i=$(header_dir)
  82. msg_production = Creating production library...
  83. tasm_production = /t /zi /p /mx /w2 $(tasm_include_dir)
  84. #tasm_production = /m /oi /zi $(tasm_include_dir)
  85. wcc_production = /zq /w4 /d1 /omaxnet /zp4 /5r /i=$(header_dir)
  86. wlink_production =
  87. gus_production = /zq /w4 /d2 /i=$(header_dir)
  88. gusmidi_production = /zq /w4 /d2 /i=$(header_dir)
  89. multivoc_production = /zq /w4 /d1 /omaxne /zp4 /5r /zu /i=$(header_dir)
  90. music_production = /zq /w4 /d1 /omaxne /zp4 /5r /zu /i=$(header_dir)
  91. pas16_production = /zq /w4 /d1 /omaxnet /zp4 /5r /i=$(header_dir)
  92. task_man_production = /zq /w4 /d1 /omaxnet /zp4 /5r /i=$(header_dir)
  93. midi_production = /zq /w4 /d1 /omaxnet /zp4 /5r /zu /i=$(header_dir)
  94. al_midi_production = /zq /w4 /d1 /omaxnet /zp4 /5r /zu /i=$(header_dir)
  95. $(final_lib) : $(lib_name)
  96. copy $(lib_name) $(final_lib)
  97. $(lib_name) : $(object_files) audio.mak
  98. @echo $(msg_$(version))
  99. %create temp.lnk
  100. for %i in ($(object_files)) do %append temp.lnk -+$(obj_dir)\%i
  101. for %i in ($(lib_files)) do %append temp.lnk -+$(lib_dir)\%i
  102. wlib $^@ /n /b @temp.lnk
  103. del temp.lnk
  104. .asm.obj :
  105. tasm $(tasm_$(version)) $[* $(obj_dir)\$^&
  106. .c.obj :
  107. wcc386 $(wcc_$(version)) $[* /fo=$(obj_dir)\$^&
  108. al_midi.obj : al_midi.c dpmi.h interrupt.h sndcards.h blaster.h user.h al_midi.h _al_midi.h ll_man.h
  109. wcc386 $(al_midi_$(version)) $[* /fo=$(obj_dir)\$^&
  110. awe32.obj : awe32.c dpmi.h blaster.h ctaweapi.h awe32.h
  111. blaster.obj : blaster.c dpmi.h dma.h irq.h blaster.h _blaster.h
  112. debugio.obj : debugio.c debugio.h
  113. dma.obj : dma.c dma.h
  114. dpmi.obj : dpmi.c dpmi.h
  115. fx_man.obj : fx_man.c ll_man.h sndcards.h multivoc.h blaster.h pas16.h &
  116. sndscape.h guswave.h sndsrc.h user.h fx_man.h
  117. $(timbre_file).obj : $(timbre_file).c
  118. gus.obj : gus.c usrhooks.h interrupt.h gusmidi.h guswave.h _guswave.h newgf1.h
  119. wcc386 $(gus_$(version)) $[* /fo=$(obj_dir)\$^&
  120. gusmidi.obj : gusmidi.c usrhooks.h interrupt.h gusmidi.h newgf1.h
  121. wcc386 $(gusmidi_$(version)) $[* /fo=$(obj_dir)\$^&
  122. guswave.obj : guswave.c debugio.h interrupt.h ll_man.h pitch.h user.h _guswave.h guswave.h newgf1.h multivoc.h
  123. irq.obj : irq.c irq.h
  124. ll_man.obj : ll_man.c dpmi.h ll_man.h
  125. midi.obj : midi.c interrupt.h dpmi.h standard.h task_man.h ll_man.h usrhooks.h music.h _midi.h midi.h sndcards.h
  126. wcc386 $(midi_$(version)) $[* /fo=$(obj_dir)\$^&
  127. mpu401.obj : mpu401.c dpmi.h user.h mpu401.h
  128. multivoc.obj : multivoc.c usrhooks.h interrupt.h dpmi.h ll_man.h sndcards.h &
  129. blaster.h sndscape.h pas16.h sndsrc.h pitch.h multivoc.h _multivc.h dma.h
  130. wcc386 $(multivoc_$(version)) $[* /fo=$(obj_dir)\$^&
  131. mv_mix.obj : mv_mix.asm
  132. mv_mix16.obj : mv_mix16.asm
  133. mvreverb.obj : mvreverb.asm
  134. music.obj : music.c ll_man.h task_man.h sndcards.h midi.h al_midi.h pas16.h blaster.h gusmidi.h mpu401.h awe32.h sndscape.h user.h music.h
  135. wcc386 $(music_$(version)) $[* /fo=$(obj_dir)\$^&
  136. pas16.obj : pas16.c dpmi.h dma.h interrupt.h irq.h pas16.h _pas16.h
  137. wcc386 $(pas16_$(version)) $[* /fo=$(obj_dir)\$^&
  138. pitch.obj : pitch.c dpmi.h standard.h pitch.h
  139. sndscape.obj : sndscape.c interrupt.h dpmi.h dma.h irq.h sndscape.h _sndscap.h
  140. sndsrc.obj : sndsrc.c dpmi.h task_man.h sndcards.h user.h sndsrc.h
  141. task_man.obj : task_man.c dpmi.h interrupt.h linklist.h usrhooks.h task_man.h
  142. wcc386 $(task_man_$(version)) $[* /fo=$(obj_dir)\$^&
  143. user.obj : user.c user.h
  144. #myprint.obj : myprint.c myprint.h