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

  1. #
  2. # NMAKE Makefile for GNU [ef]?grep
  3. #
  4.  
  5. CFLAGS    = -Ox -DUSG -D__MSC__ -D__NT__
  6. GREP    = -Fogrep -DPROGNAME=\"grep\"
  7. EGREP    = -Foegrep -DPROGNAME=\"egrep\"
  8.  
  9. #  the objects
  10. EOBJS    = egrep.obj dfa.obj regex.obj getopt.obj setargv.obj
  11. FOBJS    = fgrep.obj kwset.obj obstack.obj getopt.obj setargv.obj
  12. GOBJS    = grep.obj dfa.obj regex.obj getopt.obj setargv.obj
  13.  
  14. #  the good things to make
  15. all:    egrep.exe fgrep.exe grep.exe
  16.  
  17. clean:
  18.     -rm -f egrep.exe fgrep.exe grep.exe *.obj
  19.  
  20. install:    egrep.exe fgrep.exe grep.exe
  21.     @cp egrep.exe fgrep.exe grep.exe $(BINDIR)
  22.  
  23. egrep.exe:    $(EOBJS)
  24.     cl -Fe$@ $(EOBJS)
  25.  
  26. fgrep.exe:    $(FOBJS)
  27.     cl -Fe$@ $(FOBJS)
  28.  
  29. grep.exe:    $(GOBJS)
  30.     cl -Fe$@ $(GOBJS)
  31.  
  32. grep.obj:    grep.c
  33.     $(CC) $(CFLAGS) $(GREP) -c grep.c
  34.  
  35. egrep.obj:    grep.c
  36.     $(CC) $(CFLAGS) $(EGREP) -c grep.c
  37.  
  38. setargv.obj:    setargv.c
  39.     $(CC) $(CFLAGS) -DFIXARG0 -DGLOB -DSORTARGS -DUPPERCASE -DLCFAT -c setargv.c
  40.  
  41. dfa.obj grep.obj egrep.obj:    dfa.h
  42. grep.obj egrep.obj regex.obj:    regex.h
  43. kwset.obj fgrep.obj:        kwset.h obstack.h
  44. obstack.obj:            obstack.h
  45.