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

  1. # Makefile for GNU DIFF with Microsoft C 6.00 under DOS
  2. # produces real-mode-only versions
  3.  
  4. # This Makefile requires NMAKE !
  5.  
  6. # For C 5.10, you can remove -D__STDC__ from CFLAGS because it is
  7. # always defined in C 5.10 while only with -Za in C 6.00.
  8. # -Za cannot be used here because of the huge keyword which is used
  9. # instead of _huge for compatibility with C 5.10, _huge is also
  10. # available with -Za while huge only without -Za.
  11.  
  12. # change this as needed to find setargv.obj
  13. LIBDIR  = d:\msc\lib
  14.  
  15. # be careful when changing anything below
  16. CC      = cl
  17. DEFS    = -D__STDC__ -DUSG -DPROTO
  18. CFLAGS  = -nologo -AC -Zp -J -G2s -Ocegit -I. $(DEFS)
  19. LD      = link
  20. LDFLAGS = /nologo /noe /noi /st:0x8000
  21.  
  22. OBJ1 =    diff.obj analyze.obj io.obj context.obj ed.obj normal.obj
  23. OBJ2 =    util.obj dir.obj ifdef.obj version.obj getopt.obj getopt1.obj
  24. OBJ3 =  regex.obj merged.obj hrealloc.obj pipe.obj
  25. OBJ =    diff3.obj version.obj getopt.obj getopt1.obj pipe.obj
  26. OTHER = $(LIBDIR)\setargv.obj
  27.  
  28. .c.obj:
  29.         $(CC) $(CFLAGS) -Fo$*.obj -c $*.c
  30.  
  31. all: diff.exe diff3.exe
  32.  
  33. diff.exe: $(OBJ1) $(OBJ2) $(OBJ3)
  34.     $(LD) @<<diff.lnk
  35.     $(LDFLAGS) +
  36.     $(OBJ1) +
  37.     $(OBJ2) +
  38.     $(OBJ3) +
  39.     $(OTHER)
  40.     $@;
  41. <<
  42.  
  43. diff3.exe: $(OBJ)
  44.     $(LD) @<<diff3.lnk
  45.     $(LDFLAGS) +
  46.     $(OBJ) +
  47.     $(OTHER)
  48.     $@;
  49. <<
  50.  
  51. $(OBJ1) $(OBJ2) $(OBJ3): diff.h
  52.  
  53. context.obj diff.obj: regex.h
  54.  
  55. diff3.obj: diff3.c
  56.     $(CC) $(CFLAGS) -c -DDIFF_PROGRAM=\"diff.exe\" $*.c
  57.  
  58. clean:
  59.     del *.obj
  60.