home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / cawf407.zip / src / makefile.bcc < prev    next >
Makefile  |  1993-12-28  |  2KB  |  89 lines

  1. # Borland C++ 3.1 makefile for cawf
  2.  
  3. # Compiler
  4.  
  5. CL=    bcc $(CFLAGS)
  6.  
  7. # Memory model
  8.  
  9. M=    s
  10.  
  11. # Special definitions
  12. #
  13. #    _ANSI   -- force ANSI prototypes (see "ansi.h")
  14. #    _BCC    -- use Borland C++ 3.1 specifics
  15. #    _STDLIB -- use <stdlib.h>
  16.  
  17. D=    -D_ANSI -D_BCC -DSTDLIB
  18.  
  19. # All compiler flags
  20.  
  21. CFLAGS=    -Ic:\borlandc\include $(D) -w -Og -m$(M)
  22.  
  23. # Loader flags
  24.  
  25. LFLAGS=    -Lc:\borlandc\lib
  26.  
  27. # Object and source strings for bsfilt.exe
  28.  
  29. BOBJ=    bsfilt.obj
  30. BSRC=    bsfilt.c
  31.  
  32. # Header, object, and  source strings for cawf.exe
  33.  
  34. CHDR=    ansi.h cawf.h cawflib.h proto.h regexp.h regmagic.h
  35. COBJ=    cawf.obj device.obj error.obj expand.obj expr.obj getopt.obj \
  36.     macsup.obj nreq.obj output.obj pass2.obj pass3.obj regerror.obj \
  37.     regexp.obj store.obj string.obj
  38. CSRC=    cawf.c device.c error.c expand.c expr.c getopt.c macsup.c \
  39.         nreq.c output.c pass2.c pass3.c regerror.c regexp.c store.c \
  40.     string.c
  41.  
  42. all: bsfilt.exe cawf.exe
  43.  
  44. bsfilt.exe: $(BOBJ)
  45.     $(CL) -m$(M) -2 $(LFLAGS) $(BOBJ)
  46.  
  47. .C.OBJ:
  48.     $(CL) -c $(CFLAGS) $*.c
  49.  
  50. cawf.exe: $(COBJ)
  51.     $(CL) -m$(M) -2 $(LFLAGS) @&&!
  52. $(COBJ)
  53. !
  54.  
  55. cawf.obj: $(CHDR) cawf.c
  56.  
  57. clean:
  58.     del *.obj
  59.     del bsfilt.exe
  60.     del cawf.exe
  61.  
  62. device.obj: $(CHDR) device.c
  63.  
  64. error.obj: $(CHDR) error.c
  65.  
  66. expand.obj: $(CHDR) expand.c
  67.  
  68. expr.obj: $(CHDR) expr.c
  69.  
  70. getopt.obj: $(CHDR) getopt.c
  71.  
  72. macsup.obj: $(CHDR) macsup.c
  73.  
  74. nreq.obj: $(CHDR) nreq.c
  75.  
  76. output.obj: $(CHDR) output.c
  77.  
  78. pass2.obj: $(CHDR) pass2.c
  79.  
  80. pass3.obj: $(CHDR) pass3.c
  81.  
  82. regerror.obj: $(CHDR) regerror.c
  83.  
  84. regexp.obj: $(CHDR) regexp.c
  85.  
  86. store.obj: $(CHDR) store.c
  87.  
  88. string.obj: $(CHDR) string.c
  89.