home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-09-29 | 1.5 KB | 63 lines |
- # Makefile for GNU DIFF with Microsoft C 6.00 under DOS
- # produces real-mode-only versions
-
- # This Makefile requires NMAKE !
-
- # For C 5.10, you can remove -D__STDC__ from CFLAGS because it is
- # always defined in C 5.10 while only with -Za in C 6.00.
- # -Za cannot be used here because of the huge keyword which is used
- # instead of _huge for compatibility with C 5.10, _huge is also
- # available with -Za while huge only without -Za.
-
- # change this as needed to find setargv.obj
- LIBDIR = c:\ms\lib
-
- # be careful when changing anything below
- CC = cl
- DEFS = -D__STDC__ -DUSG -DPROTO
- CFLAGS = -nologo -AC -Zp -J -G2s -Ocegit -Ipc-files -I. $(DEFS)
- LD = link
- LDFLAGS = /nologo /noe /noi /st:0x8000
-
- OBJ1 = diff.obj analyze.obj io.obj context.obj ed.obj normal.obj
- OBJ2 = util.obj dir.obj ifdef.obj version.obj getopt.obj getopt1.obj
- OBJ3 = pc-files\regex.obj pc-files\merged.obj
- OBJ4 = pc-files\hrealloc.obj pc-files\pipe.obj
- OBJ = diff3.obj version.obj getopt.obj getopt1.obj pc-files\pipe.obj
- OTHER = $(LIBDIR)\setargv.obj
-
- .c.obj:
- $(CC) $(CFLAGS) -Fo$*.obj -c $*.c
-
- all: diff.exe diff3.exe
-
- diff.exe: $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
- $(LD) @<<diff.lnk
- $(LDFLAGS) +
- $(OBJ1) +
- $(OBJ2) +
- $(OBJ3) +
- $(OBJ4) +
- $(OTHER)
- $@;
- <<
-
- diff3.exe: $(OBJ)
- $(LD) @<<diff3.lnk
- $(LDFLAGS) +
- $(OBJ) +
- $(OTHER)
- $@;
- <<
-
- $(OBJ1) $(OBJ2) $(OBJ3): diff.h
-
- context.obj diff.obj: pc-files\regex.h
-
- diff3.obj: diff3.c
- $(CC) $(CFLAGS) -c -DDIFF_PROGRAM=\"diff.exe\" $*.c
-
- clean:
- del *.obj
- del pc-files\*.obj
-