home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / cthugha5 / cthu5src / makefile < prev    next >
Makefile  |  1994-08-19  |  3KB  |  100 lines

  1. #   Cthugha 4.0 Make file
  2. #   This make file is for MSC - tested with MSVC++ 1.0
  3. #
  4. #   I've left in alot of commented stuff, so you can see the evolution
  5. #   since it could help you when you get stuck...
  6. #
  7. #
  8. #
  9. #----------------------
  10. # HM = \torps\cthugha
  11. #
  12. #
  13.  
  14. HM = .
  15.  
  16. #CC=cl -AL -c -G3 -W3 -Zp2 /f-
  17. #CC=cl -AL -c -G3 -W3 -Zp2 /f- /Ozaxb2
  18. #CC=cl -AL -c -G3 -W3 -Zp2 /f- /Ozaxb2 /J
  19. #CC=cl -AL -c -G3 -W3 -Zp2 /f- /Oxzab2 /J
  20. #CC=cl -AL -c -G3 -W3 -Zp2 /f- /J
  21. #CC=cl -AL -c -G3 -W3 -Zp2 /f- /J /Od
  22. #CC=cl -AL -c -G3 -W3 -Zp /f- /Oxb2n /J /Gy
  23. #CC=cl -AL -c -G3 -W3 -Zp /f- /Ozaxb2 /J /Gy
  24. #CC=cl -AL -c -G3 -W3 -Zp /f- /Ozaxb2 /J
  25. CC=cl -AL -c -G3 -W3 -Zp /f- /Ozaxb2 /J /Gy
  26. # LINK=link /nod /NOI
  27. LINK=link /STACK:4000
  28. #LIBS    = \sbpro\msc\lib\embed\sbcl.lib ultra0LM.lib sb_msc.lib
  29. #LIBS    = \sbpro\msc\lib\alone\sbclr.lib
  30. #LIBS    = sb.lib
  31. #LIBS=
  32. #LIBS    = ultra0LM.lib sb_msc.lib cd_msc.lib
  33. LIBS    = ultra0LM.lib dma.lib mvllib.lib \sbpro\msc\lib\embed\sbcl.lib
  34. C7    = 1
  35. LOPT    = /MAP
  36. DEF    =
  37. DDEF    =
  38. ASM = masm -ml
  39.  
  40. SRCS1 = cthugha.c modes.c audio.c \
  41.         initscrn.c getopt.c charset.c \
  42.         pete.c patch.c cdrom.c cdmaster.c
  43. SRCS2 = zorilkey.c flames.c display.c \
  44.         maps.c mouse.c audiogus.c audiosbp.c \
  45.         cdplyr.c sb_drive.c translat.c
  46. SRCS3 = audiosdk.c
  47.  
  48. INCLS    = cthugha.h
  49.  
  50. #──────────────────────────────────────── Tool Macros #####
  51. ##### Inference Rules #####
  52. .c.obj:
  53.     cd $(@D)
  54.     $(CC) $*.c > $*.err
  55.     type $*.err
  56.  
  57. .asm.obj:
  58.     cd $(@D)
  59.     $(ASM) $*.asm
  60.  
  61. goal: cthugha.exe
  62.  
  63. audio.obj: audio.c cthugha.h
  64. audiogus.obj: audiogus.c cthugha.h forte.h gf1proto.h audio.h
  65. audiosbp.obj: audiosbp.c cthugha.h sb_drive.h
  66. cdmaster.obj: cdmaster.c cdmaster.h
  67. cdplyr.obj:   cdplyr.c zorilkey.h mouse.h cdmixrg.c sb_drive.h \
  68.               initscrn.h patch.h cthugha.h
  69. cdrom.obj:    cdrom.c cdrom.h
  70. cthugha.obj:  cthugha.c sb.h charset.h zorilkey.h initscrn.h \
  71.               maps.h audio.h mouse.h cthugha.h translat.h
  72. display.obj:  display.c cthugha.h charset.h zorilkey.h
  73. flames.obj:   flames.c cthugha.h charset.h zorilkey.h audio.h \
  74.               translat.h
  75. initscrn.obj: initscrn.c patch.h banner.c cthu_hlp.c cdmix.c \
  76.               cthugha.h credits.c
  77. maps.obj:     maps.c sb.h cthugha.h charset.h zorilkey.h
  78. modes.obj:    modes.c cthugha.h charset.h zorilkey.h
  79. patch.obj:    patch.c patch.h
  80. pete.obj:     pete.c pete.h cthugha.h charset.h
  81. zorilkey.obj: zorilkey.c zorilkey.h
  82. sb_drive.obj: sb_drive.c sb_drive.h dma.h patch.h
  83. translat.obj:    translat.c cthugha.h translat.h
  84.  
  85. #────────────────────#### Main (default) Target #####
  86.  
  87.  
  88. ##### Dependents For Goal and Command Line #####
  89. cthugha.exe: $(SRCS1:.c=.obj) $(SRCS2:.c=.obj) $(SRCS3:.c=.obj)
  90.     $(LINK) @<<
  91.     $(SRCS1:.c=.obj) +
  92.     $(SRCS2:.c=.obj) +
  93.     $(SRCS3:.c=.obj),
  94.     cthugha.exe,
  95.     NUL,
  96.     $(LIBS),
  97.     NUL
  98. <<
  99.  
  100.