home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / MN325SRC.ZIP / makenl-3.2.5 / src / Makefile < prev    next >
Makefile  |  2005-02-06  |  3KB  |  125 lines

  1. # MakeNL makefile for Watcom C/C++
  2. # Tested with OpenWatcom 1.2
  3. #
  4. # Based on makefile by by Alex Woick, 2:244/1351.
  5. #
  6. # $Id: makefile.watcom,v 1.9 2004/09/02 21:17:39 mbroek Exp $
  7. #
  8. # Build with:
  9. #
  10. # wmake -f makefile.watcom               (Win32 release)
  11. # wmake -f makefile.watcom OS=WIN        (Win32 release)
  12. # wmake -f makefile.watcom OS=DOS        (16-bit DOS release)
  13. # wmake -f makefile.watcom OS=D32        (32-bit DOS release)
  14. # wmake -f makefile.watcom OS=O16        (16-bit OS/2 release)
  15. # wmake -f makefile.watcom OS=OS2        (32-bit OS/2 release)
  16. #
  17. # wmake -f makefile.watcom DEBUG         (Win32 debug)
  18. # wmake -f makefile.watcom DEBUG OS=WIN  (Win32 debug)
  19. # wmake -f makefile.watcom DEBUG OS=DOS  (16-bit DOS debug)
  20. # wmake -f makefile.watcom DEBUG OS=D32  (32-bit DOS debug)
  21. # wmake -f makefile.watcom DEBUG OS=O16  (16-bit OS/2 debug)
  22. # wmake -f makefile.watcom DEBUG OS=OS2  (32-bit OS/2 debug)
  23. #
  24. # wmake -f makefile.watcom clean         (remove temp files)
  25.  
  26. !ifndef OS
  27. OS=WIN
  28. !endif
  29.  
  30. AC=wasm
  31. ACFLAGS+= -DWATCOM -zq
  32.  
  33. CFLAGS+= -zq -zp1 -wx -k8192
  34.  
  35. !ifeq OS DOS
  36. CC=wcl
  37. ACFLAGS+= -bt=dos -ml
  38. CFLAGS+= -bt=dos -l=dos -ml
  39. !endif
  40.  
  41. !ifeq OS D32
  42. CC=wcl386
  43. CFLAGS+= -bt=dos4g -l=dos4g
  44. !endif
  45.  
  46. !ifeq OS O16
  47. CC=wcl
  48. CFLAGS+= -bt=os2 -l=os2
  49. !endif
  50.  
  51. !ifeq OS OS2
  52. CC=wcl386
  53. CFLAGS+= -bt=os2v2 -l=os2v2
  54. !endif
  55.  
  56. !ifeq OS WIN
  57. CC=wcl386
  58. CFLAGS+= -bt=nt -l=nt
  59. !endif
  60.  
  61. !ifdef DEBUG
  62. ACFLAGS+= -d1
  63. CFLAGS+= -d2 -hw
  64. !endif
  65.  
  66. OBJS=    config.obj &
  67.     crc16.obj &
  68.     fileutil.obj &
  69.     fts5.obj &
  70.     lsttool.obj &
  71.     makenl.obj &
  72.     merge.obj &
  73.     mkdiff.obj &
  74.     mklog.obj &
  75.     msgtool.obj &
  76.     os.obj &
  77.     output.obj &
  78.     process.obj &
  79.     stack.obj &
  80.     strtool.obj &
  81.     upcont.obj
  82.  
  83. .c.obj:
  84.     $(CC) $(CFLAGS) -c $<
  85.  
  86. .asm.obj:
  87.     $(AC) $(ACFLAGS) $<
  88.  
  89. !ifeq OS WIN
  90. \src\makenl\bin\win32\makenl.exe: $(OBJS)
  91.     $(CC) $(CFLAGS) -fe=$@ $(OBJS)
  92. !endif
  93.  
  94. !ifeq OS DOS
  95. \src\makenl\bin\dos16\makenl.exe: $(OBJS)
  96.     $(CC) $(CFLAGS) -fe=$@ $(OBJS)
  97. !endif
  98.  
  99. !ifeq OS D32
  100. \src\makenl\bin\dos32\makenl.exe: $(OBJS)
  101.     $(CC) $(CFLAGS) -fe=$@ $(OBJS)
  102. !endif
  103.  
  104. !ifeq OS OS2
  105. \src\makenl\bin\os2\makenl.exe: $(OBJS)
  106.     $(CC) $(CFLAGS) -fe=$@ $(OBJS)
  107. !endif
  108.  
  109. !ifeq OS O16
  110. \src\makenl\bin\os2-16\makenl.exe: $(OBJS)
  111.     $(CC) $(CFLAGS) -fe=$@ $(OBJS)
  112. !endif
  113.  
  114. clean: .SYMBOLIC
  115.     del *.obj
  116.  
  117. cleanall: .SYMBOLIC
  118.     del *.obj
  119.     del \src\makenl\bin\dos16\makenl.exe
  120.     del \src\makenl\bin\dos32\makenl.exe
  121.     del \src\makenl\bin\os2\makenl.exe
  122.     del \src\makenl\bin\os2-16\makenl.exe
  123.     del \src\makenl\bin\win32\makenl.exe
  124.     
  125.