home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / ntcode / gd25s / ms / makefile.bcc < prev    next >
Encoding:
Makefile  |  1995-05-19  |  2.1 KB  |  81 lines

  1. # Borland C++ 3.1 Makefile
  2.  
  3. BCCBASE    = d:\borlandc
  4.  
  5. !if "$(DEBUG)"=="Y"
  6. DBGFLAG    = -v
  7. !endif
  8.  
  9. CFG    = borlandc.cfg
  10. DEFS    = -DUSG=1 -DHAVE_CONFIG_H=1 -DHAVE_STRING_H=1 -DPR_FILE_NAME="pr" -DDIFF_PROGRAM="diff"
  11. CFLAGS    = -ml -Ox -w-pro -I. $(DBGFLAG)
  12. LDFLAGS    = -ml $(DBGFLAG)
  13.  
  14. .c.obj:
  15.     $(CC) +$(CFG) -c $(DBGFLAG) {$< }
  16.  
  17. all:        $(CFG) config.h diff.exe diff3.exe
  18.  
  19. $(CFG):        ms\makefile.bcc
  20.     copy &&|
  21. $(CFLAGS)
  22. $(DEFS)
  23. -I$(BCCBASE)\include
  24. -L$(BCCBASE)\lib
  25. | $<
  26.  
  27. config.h:    ms/config.h
  28.     copy ms\config.h .
  29.  
  30. diff.exe:    diff.obj analyze.obj io.obj context.obj ed.obj normal.obj \
  31.         util.obj dir.obj fnmatch.obj regex.obj side.obj ifdef.obj \
  32.         version.obj getopt.obj getopt1.obj cmpbuf.obj popen.obj \
  33.         stack.obj
  34.     $(CC) $(LDFLAGS) -e$< @&&|
  35. $** $(BCCBASE)\lib\wildargs.obj
  36. |
  37.  
  38. cmp.exe:    cmp.obj getopt.obj getopt1.obj cmpbuf.obj error.obj xmalloc.obj
  39.     $(CC) $(LDFLAGS) -e$< @&&|
  40. $** $(BCCBASE)\lib\wildargs.obj
  41. |
  42.  
  43. diff3.exe:    diff3.obj getopt.obj getopt1.obj version.obj popen.obj
  44.     $(CC) $(LDFLAGS) -e$< @&&|
  45. $** $(BCCBASE)\lib\wildargs.obj
  46. |
  47.  
  48. sdiff.exe:    sdiff.obj getopt.obj getopt1.obj version.obj
  49.     $(CC) $(LDFLAGS) -e$< @&&|
  50. $** $(BCCBASE)\lib\wildargs.obj
  51. |
  52.  
  53. popen.obj:    ms\popen.c
  54.     $(CC) $(CFLAGS) -c ms\popen.c
  55. stack.obj:    $(CFG) ms\stack.c
  56.     $(CC) $(CFLAGS) -c ms\stack.c
  57.  
  58. analyze.obj:    $(CFG) diff.h system.h
  59. cmp.obj:    $(CFG) system.h getopt.h
  60. cmpbuf.obj:    $(CFG) system.h cmpbuf.h
  61. context.obj:    $(CFG) diff.h system.h regex.h
  62. diff.obj:    $(CFG) diff.h system.h regex.h getopt.h fnmatch.h
  63. diff3.obj:    $(CFG) system.h getopt.h
  64. dir.obj:    $(CFG) diff.h system.h
  65. error.obj:    $(CFG)
  66. ed.obj:        $(CFG) diff.h system.h
  67. fnmatch.obj:    $(CFG) diff.h system.h fnmatch.h
  68. getopt.obj:    $(CFG) diff.h system.h getopt.h
  69. getopt1.obj:    $(CFG) diff.h system.h getopt.h
  70. ifdef.obj:    $(CFG) diff.h system.h
  71. io.obj:        $(CFG) diff.h system.h
  72. normal.obj:    $(CFG) diff.h system.h
  73. regex.obj:    $(CFG) diff.h system.h regex.h
  74. sdiff.obj:    $(CFG) system.h getopt.h
  75. side.obj:    $(CFG) diff.h system.h
  76. util.obj:    $(CFG) diff.h system.h
  77. version.obj:    $(CFG) diff.h system.h
  78.  
  79. clean:
  80.     rm -f $(CFG) config.h *.obj diff.exe cmp.exe diff3.exe sdiff.exe
  81.