home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / rcs / sources / makefile.msc < prev    next >
Makefile  |  1991-09-29  |  2KB  |  63 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  = c:\ms\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 -Ipc-files -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 =  pc-files\regex.obj pc-files\merged.obj
  25. OBJ4 =  pc-files\hrealloc.obj pc-files\pipe.obj
  26. OBJ =    diff3.obj version.obj getopt.obj getopt1.obj pc-files\pipe.obj
  27. OTHER = $(LIBDIR)\setargv.obj
  28.  
  29. .c.obj:
  30.         $(CC) $(CFLAGS) -Fo$*.obj -c $*.c
  31.  
  32. all: diff.exe diff3.exe
  33.  
  34. diff.exe: $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
  35.     $(LD) @<<diff.lnk
  36.     $(LDFLAGS) +
  37.     $(OBJ1) +
  38.     $(OBJ2) +
  39.     $(OBJ3) +
  40.     $(OBJ4) +
  41.     $(OTHER)
  42.     $@;
  43. <<
  44.  
  45. diff3.exe: $(OBJ)
  46.     $(LD) @<<diff3.lnk
  47.     $(LDFLAGS) +
  48.     $(OBJ) +
  49.     $(OTHER)
  50.     $@;
  51. <<
  52.  
  53. $(OBJ1) $(OBJ2) $(OBJ3): diff.h
  54.  
  55. context.obj diff.obj: pc-files\regex.h
  56.  
  57. diff3.obj: diff3.c
  58.     $(CC) $(CFLAGS) -c -DDIFF_PROGRAM=\"diff.exe\" $*.c
  59.  
  60. clean:
  61.     del *.obj
  62.         del pc-files\*.obj
  63.