home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / unix / dgrep.arc / MAKEFILE.BSD < prev    next >
Encoding:
Text File  |  1990-01-15  |  995 b   |  42 lines

  1. ######################################################################
  2. #
  3. #    Makefile for dgrep and test programs for BSD UNIX
  4. #    You propably need GNU make for this.
  5. #
  6. ######################################################################
  7.  
  8. CC    = gcc
  9. CFLAGS    = -O -DBSD -funsigned-char -DFAST
  10.  
  11. LINK    = gcc
  12. LFLAGS    = $(CFLAGS)
  13. LIBS    = 
  14.  
  15. DFAOBJ    = dfaregex.o dfa.o calcpos.o dfatree.o regmust.o set.o clib.o
  16.       
  17. DGREPOBJ = dgrep.o bm.o $(DFAOBJ)
  18.  
  19. dgrep: $(DGREPOBJ)
  20.     $(LINK) $(LFLAGS) -o dgrep $(DGREPOBJ)
  21.  
  22. TRYOBJ = try.o $(DFAOBJ)
  23.  
  24. try: $(TRYOBJ)
  25.     $(LINK) $(LFLAGS) -o try $(TRYOBJ)
  26.  
  27. .c.o:
  28.     $(CC) -c $(CFLAGS) $<
  29.  
  30. dfa.h:        set.h
  31.  
  32. dgrep.o:    dgrep.c dfaregex.h dfa.h system.h
  33. bm.o:        bm.c dfa.h system.h
  34. dfaregex.o:    dfaregex.c dfaregex.h dfa.h system.h
  35. dfa.o:        dfa.c dfa.h system.h
  36. calcpos.o:    calcpos.c dfa.h system.h
  37. dfatree.o:    dfatree.c dfa.h system.h
  38. regmust.o:    regmust.c dfa.h system.h
  39. set.o:        set.c set.h system.h
  40. clib.o:        clib.c system.h
  41. try.o:        try.c dfaregex.h
  42.