home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / BBS / NETMAIL / MSGD2SRC.ZIP / MAKEFILE < prev    next >
Encoding:
Text File  |  1990-08-07  |  2.9 KB  |  113 lines

  1. #
  2. # MKMF template makefile for executables.
  3. #
  4.  
  5. cc              = ztc
  6. debug        = 1
  7.  
  8. !if $(debug)
  9. linkopt         += /co /li
  10. cflags          = -g $w $u $a -b 
  11. !else
  12. cflags      = $w $u $a $o -R -b
  13. linkopt     = /pac /f
  14. !endif
  15.  
  16. dest        = c:\bin\
  17. exthdrs        =
  18. hdrs        = bmg.h date.h editmail.h fido.h maincmds.h menu.h mkfp.h \
  19.           msged.h nedit.h quick.h screen.h screen2.h vfossil.h
  20. linker        = blink
  21. makefile    = makefile
  22. model           = v
  23. lobjs        = (areas.obj) (bmg.obj) (config.obj) (date.obj) (dir.obj) \
  24.           (editmail.obj) (fido.obj) (maintmsg.obj) (makemsg.obj) \
  25.           menu.obj msged.obj normal.obj (quick.obj) \
  26.           (readmail.obj) screen.obj screen2.obj (settings.obj) \
  27.           (showmail.obj) string.obj (textfile.obj) (userlist.obj) 
  28. objs        = areas.obj bmg.obj config.obj date.obj dir.obj editmail.obj \
  29.           fido.obj maintmsg.obj makemsg.obj menu.obj \
  30.           msged.obj normal.obj quick.obj readmail.obj \
  31.           screen.obj screen2.obj settings.obj showmail.obj \
  32.           string.obj textfile.obj userlist.obj 
  33. program        = msged.exe
  34. srcs        = areas.c bmg.c config.c date.c dir.c editmail.c fido.c \
  35.           maintmsg.c makemsg.c menu.c msged.c \
  36.           normal.asm quick.c readmail.c screen.c screen2.asm \
  37.           settings.c showmail.c string.c textfile.c userlist.c
  38. startup     = $(swap) $(lib)\int.obj
  39. ulibs        =
  40.  
  41. !if $(model) != v
  42. lobjs = $(objs)
  43. !endif
  44.  
  45. all:        $(program)
  46.  
  47. $(program):    $(objs) $(ulibs) $(makefile)
  48.         $(link)
  49.  
  50. $(program,B).lzh: $(srcs) $(hdrs) $(makefile)
  51.         !foreach f $?
  52.             lharc u $(program,B) $f
  53.         !end
  54.  
  55. archive:    $(program,B).lzh
  56.             exp
  57.  
  58. clean:;        @rm -f $(objs)
  59.  
  60. depend:;    @mkmf -f $(makefile) program=$(program) dest=$(dest)
  61.  
  62. .PRECIOUS:    msged.tag
  63.  
  64. msged.tag:      $(obj) 
  65. !if $(debug)
  66.         ztag /I $(objs),$(program,B)
  67. !endif
  68.  
  69. install:    $(program)
  70.         @echo installing $(program) in $(dest)
  71.         @if not $(dest)x==.x copy $(program) $(dest)
  72.  
  73. !if $(debug)
  74. .asm.obj :
  75.     masm /mx /zi $*;
  76. !endif
  77.  
  78. ### OPUS MKMF:  Do not remove this line!  Automatic dependencies follow.
  79.  
  80. areas.obj: fido.h msged.h nedit.h quick.h screen.h
  81.  
  82. bmg.obj: bmg.h
  83.  
  84. config.obj: fido.h msged.h nedit.h quick.h screen.h
  85.  
  86. date.obj: date.h fido.h msged.h nedit.h quick.h screen.h
  87.  
  88. editmail.obj: editmail.h fido.h msged.h nedit.h quick.h screen.h
  89.  
  90. fido.obj: date.h fido.h msged.h nedit.h quick.h screen.h
  91.  
  92. maintmsg.obj: date.h fido.h msged.h nedit.h quick.h screen.h
  93.  
  94. makemsg.obj: date.h fido.h msged.h nedit.h quick.h screen.h
  95.  
  96. menu.obj: menu.h screen.h
  97.  
  98. msged.obj: bmg.h fido.h maincmds.h msged.h nedit.h quick.h screen.h
  99.  
  100. quick.obj: date.h fido.h msged.h nedit.h quick.h screen.h
  101.  
  102. readmail.obj: bmg.h date.h fido.h msged.h nedit.h quick.h screen.h
  103.  
  104. screen.obj: mkfp.h screen.h screen2.h vfossil.h
  105.  
  106. settings.obj: fido.h menu.h msged.h nedit.h quick.h screen.h
  107.  
  108. showmail.obj: date.h fido.h msged.h nedit.h quick.h screen.h
  109.  
  110. textfile.obj: date.h fido.h msged.h nedit.h quick.h screen.h
  111.  
  112. userlist.obj: fido.h msged.h nedit.h quick.h screen.h
  113.