home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
rcs567s.zip
/
diff16
/
Makefile.os2
< prev
next >
Wrap
Makefile
|
1994-06-24
|
1KB
|
42 lines
# Makefile for GNU DIFF with Microsoft C 6.00 under OS/2
# produces family mode versions that run under real mode too
# This Makefile requires NMAKE !
# change this as needed to find setargv.obj
LIBDIR = d:\msc\lib
# be careful when changing anything below
CC = cl
STRIP = bind
DEFS = -D__STDC__ -DUSG -DPROTO -DOS2
CFLAGS = -nologo -AC -Zp -J -G2s -Ocegit -I. $(DEFS)
LDFLAGS = -nologo -AC -Lp -link /st:0x8000 /noi /noe /bat
LIBS = $(LIBDIR)\setargv.obj
OBJ = diff.obj analyze.obj io.obj context.obj ed.obj normal.obj \
util.obj dir.obj ifdef.obj version.obj getopt.obj getopt1.obj \
regex.obj merged.obj hrealloc.obj pipe.obj
OBJ3 = diff3.obj version.obj getopt.obj getopt1.obj pipe.obj
.c.obj:
$(CC) $(CFLAGS) -Fo$*.obj -c $*.c
all: diff.exe diff3.exe
diff.exe: $(OBJ) diff.def
$(CC) $(OBJ) diff.def -o $@ $(LIBS) $(LDFLAGS)
diff3.exe: $(OBJ3) diff.def
$(CC) $(OBJ3) diff.def -o $@ $(LIBS) $(LDFLAGS)
$(OBJ): diff.h
context.obj diff.obj: regex.h
diff3.obj: diff3.c
$(CC) $(CFLAGS) -c -DDIFF_PROGRAM=\"diff.exe\" $*.c
clean:
del *.obj