Makefile 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #
  2. # You need TASM 3.0 and Borland C++ 3.0 to use this Makefile.
  3. #
  4. # Please note that in these old versions of MegaZeux, the source
  5. # for the robot editor was lost. Therefore this file just hacks
  6. # in robo_ed.obj when required.
  7. #
  8. .AUTODEPEND
  9. INCPATH=C:\BORLANDC\INCLUDE;.
  10. LIBPATH=C:\BORLANDC\LIB;.
  11. CC = bcc +megazeux.cfg -I$(INCPATH) -L$(LIBPATH)
  12. TASM = tasm
  13. TLIB = tlib
  14. TLINK = tlink
  15. .c.obj:
  16. @$(CC) -c {$< }
  17. .cpp.obj:
  18. @$(CC) -c {$< }
  19. .asm.obj:
  20. @$(TASM) /jWARN /MX /M5 /ZI /O /T $<,$@
  21. obj = admath.obj arrowkey.obj beep.obj blink.obj block.obj boardmem.obj \
  22. ceh.obj charset.obj char_ed.obj comp_chk.obj counter.obj cursor.obj \
  23. data.obj data2.obj detect.obj dt_data.obj edit.obj edit_di.obj egacode.obj \
  24. ems.obj error.obj ezboard.obj fill.obj game.obj game2.obj getkey.obj \
  25. graphics.obj helpsys.obj hexchar.obj idarray.obj idput.obj intake.obj \
  26. main.obj meminter.obj meter.obj mouse.obj new_mod.obj palette.obj \
  27. pal_ed.obj param.obj password.obj random.obj retrace.obj roballoc.obj \
  28. runrobot.obj runrobo2.obj saveload.obj scrdisp.obj scrdump.obj sfx.obj \
  29. sfx_edit.obj string.obj timer.obj window.obj
  30. #
  31. # I'd rather this wasn't necessary, but I can't think of a way either in
  32. # Make or DOS to convert the space separated list above into a + separated
  33. # list. So it's just copy/pasted. This tr command helps:
  34. # tr ' ' '+' << "EOF"
  35. #
  36. lobj = admath.obj+arrowkey.obj+beep.obj+blink.obj+block.obj+boardmem.obj+\
  37. ceh.obj+charset.obj+char_ed.obj+comp_chk.obj+counter.obj+cursor.obj+\
  38. data.obj+data2.obj+detect.obj+dt_data.obj+edit.obj+edit_di.obj+egacode.obj+\
  39. ems.obj+error.obj+ezboard.obj+fill.obj+game.obj+game2.obj+getkey.obj+\
  40. graphics.obj+helpsys.obj+hexchar.obj+idarray.obj+idput.obj+intake.obj+\
  41. main.obj+meminter.obj+meter.obj+mouse.obj+new_mod.obj+palette.obj+\
  42. pal_ed.obj+param.obj+password.obj+random.obj+retrace.obj+roballoc.obj+\
  43. runrobot.obj+runrobo2.obj+saveload.obj+scrdisp.obj+scrdump.obj+sfx.obj+\
  44. sfx_edit.obj+string.obj+timer.obj+window.obj
  45. all: megazeux.exe fix.exe getpw.exe killgbl.exe txt2hlp.exe ver1to2.exe
  46. megazeux.exe: $(obj)
  47. @$(TLINK) /m/c/d/P-/L$(LIBPATH) @&&|
  48. c0l.obj+$(lobj)+robo_ed.obj,megazeux,megazeux,mse_cl.lib+cl.lib
  49. |
  50. #
  51. # Other external binaries that might be useful
  52. #
  53. fix.exe: fix.obj
  54. @$(TLINK) /m/c/d/P-/L$(LIBPATH) @&&|
  55. c0l.obj+fix.obj,fix,fix,cl.lib
  56. |
  57. getpw.exe: getpw.obj
  58. @$(TLINK) /m/c/d/P-/L$(LIBPATH) @&&|
  59. c0l.obj+getpw.obj,getpw,getpw,cl.lib
  60. |
  61. killgbl.exe: killgbl.obj
  62. @$(TLINK) /m/c/d/P-/L$(LIBPATH) @&&|
  63. c0l.obj+killgbl.obj,killgbl,killgbl,cl.lib
  64. |
  65. txt2hlp.exe: txt2hlp.obj
  66. @$(TLINK) /m/c/d/P-/L$(LIBPATH) @&&|
  67. c0l.obj+txt2hlp.obj,txt2hlp,txt2hlp,cl.lib
  68. |
  69. ver1to2.exe: ver1to2.obj
  70. @$(TLINK) /m/c/d/P-/L$(LIBPATH) @&&|
  71. c0l.obj+ver1to2.obj,ver1to2,ver1to2,cl.lib
  72. |
  73. clean:
  74. @ren robo_ed.obj robo_ed.bak
  75. @del *.obj
  76. @ren robo_ed.bak robo_ed.obj
  77. @del *.exe
  78. @del *.map