home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
prgramer
/
rcs
/
sources
/
makefile.tc
< prev
next >
Wrap
Makefile
|
1991-09-29
|
1KB
|
45 lines
# Makefile for GNU DIFF with Turbo C 2.0 under DOS
# produces real-mode-only versions
# change this as needed to find wildargs.obj
LIBDIR = c:\tc\lib
# be careful when changing anything below
CC = tcc
DEFS = -DMSDOS -DUSG -DPROTO -D__STDC__=0
CFLAGS = -mc -A- -w- -a- -K -1 -N- -Ipc-files -I. $(DEFS)
LD = tlink
LDFLAGS = /e /c
AS = masm
AFLAGS = -T -Ml
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 pc-files\pipe.obj
OBJ = diff3.obj version.obj getopt.obj getopt1.obj pc-files\pipe.obj
OBJA = alloca.obj
OTHER = $(LIBDIR)\wildargs.obj
.c.obj:
$(CC) $(CFLAGS) -o$*.obj -c $<
all: diff.exe diff3.exe
diff.exe: $(OBJ1) $(OBJ2) $(OBJ3) $(OBJA)
$(LD) $(LDFLAGS) @pc-files\tdiff.lnk
diff3.exe: $(OBJ) $(OBJA)
$(LD) $(LDFLAGS) @pc-files\tdiff3.lnk
$(OBJ1) $(OBJ2) $(OBJ3): diff.h
diff3.obj: diff3.c
$(CC) $(CFLAGS) -c -DDIFF_PROGRAM="diff.exe" $*.c
alloca.obj: pc-files\alloca.asm
$(AS) $(AFLAGS) pc-files\alloca.asm;
clean:
del *.obj
del pc-files\*.obj