home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / rcs567s.zip / diff16 / Makefile.os2 < prev    next >
Makefile  |  1994-06-24  |  1KB  |  42 lines

  1. # Makefile for GNU DIFF with Microsoft C 6.00 under OS/2
  2. # produces family mode versions that run under real mode too
  3.  
  4. # This Makefile requires NMAKE !
  5.  
  6. # change this as needed to find setargv.obj
  7. LIBDIR  = d:\msc\lib
  8.  
  9. # be careful when changing anything below
  10. CC      = cl
  11. STRIP    = bind
  12. DEFS    = -D__STDC__ -DUSG -DPROTO -DOS2
  13. CFLAGS  = -nologo -AC -Zp -J -G2s -Ocegit -I. $(DEFS)
  14. LDFLAGS = -nologo -AC -Lp -link /st:0x8000 /noi /noe /bat
  15. LIBS    = $(LIBDIR)\setargv.obj
  16.  
  17. OBJ =    diff.obj analyze.obj io.obj context.obj ed.obj normal.obj \
  18.     util.obj dir.obj ifdef.obj version.obj getopt.obj getopt1.obj \
  19.     regex.obj merged.obj hrealloc.obj pipe.obj
  20. OBJ3 =    diff3.obj version.obj getopt.obj getopt1.obj pipe.obj
  21.  
  22. .c.obj:
  23.         $(CC) $(CFLAGS) -Fo$*.obj -c $*.c
  24.  
  25. all: diff.exe diff3.exe
  26.  
  27. diff.exe: $(OBJ) diff.def
  28.     $(CC) $(OBJ) diff.def -o $@ $(LIBS) $(LDFLAGS)
  29.  
  30. diff3.exe: $(OBJ3) diff.def
  31.     $(CC) $(OBJ3) diff.def -o $@ $(LIBS) $(LDFLAGS)
  32.  
  33. $(OBJ): diff.h
  34.  
  35. context.obj diff.obj: regex.h
  36.  
  37. diff3.obj: diff3.c
  38.     $(CC) $(CFLAGS) -c -DDIFF_PROGRAM=\"diff.exe\" $*.c
  39.  
  40. clean:
  41.     del *.obj
  42.