home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / unix / dgrep.arc / MAKEFILE.OS2 < prev    next >
Encoding:
Text File  |  1990-01-15  |  1.1 KB  |  48 lines

  1. ######################################################################
  2. #
  3. #    Makefile for dgrep and test programs in OS/2
  4. #
  5. ######################################################################
  6.  
  7. dgrep:    dgrep.exe
  8. try:    try.exe
  9.  
  10. MDL    = S
  11.  
  12. WILDARG    = c:\cc\lib\setargv.obj
  13.  
  14. CC    = cl
  15. CFLAGS    = -Ox -J -I\os2src\include -c -A$(MDL) -DECTYPE -W3 -DOS2
  16.  
  17. LINK    = cl
  18. LFLAGS    = #-A$(MDL)
  19. LIBS    = -link c$(MDL)os2.lib /NOE    # for getopt
  20.  
  21. DFAOBJ    = dfaregex.obj dfa.obj calcpos.obj dfatree.obj regmust.obj set.obj clib.obj
  22.       
  23. DGREPOBJ = dgrep.obj bm.obj $(DFAOBJ)
  24.  
  25. dgrep.exe: $(DGREPOBJ)
  26.     $(LINK) $(LFLAGS) $(DGREPOBJ) $(WILDARG) $(LIBS)
  27.  
  28. TRYOBJ = try.obj $(DFAOBJ)
  29.  
  30. try.exe: $(TRYOBJ)
  31.     $(LINK) $(LFLAGS) $(TRYOBJ) $(LIBS)
  32.  
  33. .c.obj:
  34.     $(CC) $(CFLAGS) $<
  35.  
  36. dfa.h:        set.h
  37.  
  38. dgrep.obj:    dgrep.c dfaregex.h dfa.h system.h
  39. bm.obj:        bm.c dfa.h system.h
  40. dfaregex.obj:    dfaregex.c dfaregex.h dfa.h system.h
  41. dfa.obj:    dfa.c dfa.h system.h
  42. calcpos.obj:    calcpos.c dfa.h system.h
  43. dfatree.obj:    dfatree.c dfa.h system.h
  44. regmust.obj:    regmust.c dfa.h system.h
  45. set.obj:    set.c set.h system.h
  46. clib.obj:    clib.c system.h
  47. try.obj:    try.c dfaregex.h
  48.