AUDIO2.MAK 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. adlibfx.obj &
  30. al_midi.obj &
  31. awe32.obj &
  32. blaster.obj &
  33. debugio.obj &
  34. dma.obj &
  35. dpmi.obj &
  36. fx_man.obj &
  37. gus.obj &
  38. gusmidi.obj &
  39. guswave.obj &
  40. irq.obj &
  41. ll_man.obj &
  42. midi.obj &
  43. mpu401.obj &
  44. multivoc.obj &
  45. mv_mix.obj &
  46. music.obj &
  47. pas16.obj &
  48. pcfx.obj &
  49. pitch.obj &
  50. sndscape.obj &
  51. sndsrc.obj &
  52. task_man.obj &
  53. user.obj
  54. offobject_files = adlibfx.obj &
  55. blaster.obj &
  56. debugio.obj &
  57. dma.obj &
  58. dpmi.obj &
  59. fx_man.obj &
  60. gus.obj &
  61. guswave.obj &
  62. irq.obj &
  63. ll_man.obj &
  64. multivoc.obj &
  65. mv_mix.obj &
  66. pas16.obj &
  67. pcfx.obj &
  68. pitch.obj &
  69. sndscape.obj &
  70. sndsrc.obj &
  71. task_man.obj &
  72. user.obj
  73. msg_debugging = Creating debugging library...
  74. tasm_debugging = /t /zi /p /mx /w2 $(tasm_include_dir)
  75. wcc_debugging = /zq /w4 /d2 /i=$(header_dir)
  76. wlink_debugging =
  77. gus_debugging = /zq /w4 /d2 /i=$(header_dir)
  78. gusmidi_debugging = /zq /w4 /d2 /i=$(header_dir)
  79. multivoc_debugging = /zq /w4 /d1 /omaxne /zp4 /5r /zu /d2 /i=$(header_dir)
  80. pas16_debugging = /zq /w4 /d1 /omaxnet /zp4 /5r /i=$(header_dir)
  81. task_man_debugging = /zq /w4 /d1 /omaxnet /zp4 /5r /i=$(header_dir)
  82. midi_debugging = /zq /w4 /d2 /zu /i=$(header_dir)
  83. al_midi_debugging = /zq /w4 /d2 /zu /i=$(header_dir)
  84. msg_production = Creating production library...
  85. tasm_production = /t /zi /p /mx /w2 $(tasm_include_dir)
  86. wcc_production = /zq /w4 /d1 /omaxnet /zp4 /5r /i=$(header_dir)
  87. wlink_production =
  88. gus_production = /zq /w4 /d2 /i=$(header_dir)
  89. gusmidi_production = /zq /w4 /d2 /i=$(header_dir)
  90. multivoc_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 ******************************************************************
  99. echo
  100. echo $(msg_$(version))
  101. echo
  102. echo ******************************************************************
  103. %create temp.lnk
  104. for %i in ($(object_files)) do %append temp.lnk -+$(obj_dir)\%i
  105. for %i in ($(lib_files)) do %append temp.lnk -+$(lib_dir)\%i
  106. wlib $^@ /n /b @temp.lnk
  107. del temp.lnk
  108. .asm.obj :
  109. tasm $(tasm_$(version)) $[* $(obj_dir)\$^&
  110. .c.obj :
  111. wcc386 $(wcc_$(version)) $[* /fo=$(obj_dir)\$^&
  112. adlibfx.obj : adlibfx.c dpmi.h task_man.h interrupt.h al_midi.h adlibfx.h
  113. 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
  114. wcc386 $(al_midi_$(version)) $[* /fo=$(obj_dir)\$^&
  115. awe32.obj : awe32.c dpmi.h blaster.h ctaweapi.h awe32.h
  116. blaster.obj : blaster.c dpmi.h dma.h irq.h blaster.h _blaster.h
  117. debugio.obj : debugio.c debugio.h
  118. dma.obj : dma.c dma.h
  119. dpmi.obj : dpmi.c dpmi.h
  120. fx_man.obj : fx_man.c ll_man.h sndcards.h multivoc.h blaster.h pas16.h &
  121. sndscape.h guswave.h sndsrc.h adlibfx.h pcfx.h user.h fx_man.h
  122. $(timbre_file).obj : $(timbre_file).c
  123. gus.obj : gus.c usrhooks.h interrupt.h gusmidi.h guswave.h _guswave.h newgf1.h
  124. wcc386 $(gus_$(version)) $[* /fo=$(obj_dir)\$^&
  125. gusmidi.obj : gusmidi.c usrhooks.h interrupt.h gusmidi.h newgf1.h
  126. wcc386 $(gusmidi_$(version)) $[* /fo=$(obj_dir)\$^&
  127. guswave.obj : guswave.c debugio.h interrupt.h ll_man.h pitch.h user.h _guswave.h guswave.h newgf1.h multivoc.h
  128. irq.obj : irq.c irq.h
  129. ll_man.obj : ll_man.c dpmi.h ll_man.h
  130. midi.obj : midi.c interrupt.h dpmi.h standard.h task_man.h ll_man.h usrhooks.h _midi.h midi.h
  131. wcc386 $(midi_$(version)) $[* /fo=$(obj_dir)\$^&
  132. mpu401.obj : mpu401.c dpmi.h user.h mpu401.h
  133. multivoc.obj : multivoc.c usrhooks.h interrupt.h dpmi.h ll_man.h sndcards.h &
  134. blaster.h sndscape.h pas16.h sndsrc.h pitch.h multivoc.h _multivc.h dma.h
  135. wcc386 $(multivoc_$(version)) $[* /fo=$(obj_dir)\$^&
  136. mv_mix.obj : mv_mix.asm
  137. 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
  138. pas16.obj : pas16.c dpmi.h dma.h interrupt.h irq.h pas16.h _pas16.h
  139. wcc386 $(pas16_$(version)) $[* /fo=$(obj_dir)\$^&
  140. pcfx.obj : pcfx.c dpmi.h task_man.h interrupt.h pcfx.h
  141. pitch.obj : pitch.c dpmi.h standard.h pitch.h
  142. sndscape.obj : sndscape.c interrupt.h dpmi.h dma.h irq.h sndscape.h _sndscap.h
  143. sndsrc.obj : sndsrc.c dpmi.h task_man.h sndcards.h user.h sndsrc.h
  144. task_man.obj : task_man.c dpmi.h interrupt.h linklist.h usrhooks.h task_man.h
  145. wcc386 $(task_man_$(version)) $[* /fo=$(obj_dir)\$^&
  146. user.obj : user.c user.h
  147. #myprint.obj : myprint.c myprint.h