X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fmakefile.pc;h=8ac1e781353a3c186cc1c3f1b5a1c74f122df263;hb=c930802f313aa29b479edc6f9782897db608ce64;hp=22abe527a422c7fd3355c694804010a2cfaea008;hpb=c086e08a4bb931721b2bc8db545ecb3eeaa431dd;p=chaz%2Ftar diff --git a/src/makefile.pc b/src/makefile.pc index 22abe52..8ac1e78 100644 --- a/src/makefile.pc +++ b/src/makefile.pc @@ -1,4 +1,4 @@ -# Makefile for GNU tar on MS-DOS. +# Makefile for GNU tar on MS-DOS using Turbo C 2.0. # Copyright (C) 1991 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify @@ -15,18 +15,22 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -CC = bcc +CC = tcc RM = rm -f MODEL = m -DEFS = -DNONAMES -DNO_REMOTE -DSTDC_HEADERS=1 -m$(MODEL) -Dmain=_main +DEFS = -DNONAMES -DNO_REMOTE -DNO_MTIO -DSTDC_HEADERS -m$(MODEL) -Dmain=_main LIBS = +DEF_AR_FILE = tar.out +DEFBLOCKING = 20 -CFLAGS = $(DEFS) +CFLAGS = -I. $(DEFS) \ + -DDEF_AR_FILE="$(DEF_AR_FILE)" \ + -DDEFBLOCKING=$(DEFBLOCKING) LDFLAGS = -m$(MODEL) OBJ1 = tar.obj create.obj extract.obj buffer.obj getoldopt.obj update.obj gnu.obj mangle.obj -OBJ2 = version.obj list.obj names.obj diffarch.obj port.obj fnmatch.obj getopt.obj +OBJ2 = version.obj list.obj names.obj diffarch.obj port.obj wildmat.obj getopt.obj OBJ3 = getopt1.obj regex.obj getdate.obj alloca.obj tcexparg.obj msd_dir.obj OBJS = $(OBJ1) $(OBJ2) $(OBJ3) @@ -39,11 +43,6 @@ tar: testpad.h getdate.c $(OBJS) .c.obj: $(CC) -c $(CFLAGS) $< -# For some reason, Borland C++ 3.1 chokes on this file when given -# the full set of -D options. -getoldopt.obj: getoldopt.c - $(CC) -c -m$(MODEL) -DSTDC_HEADERS getoldopt.c - testpad.h: testpad.exe testpad @@ -53,8 +52,6 @@ testpad.exe: testpad.c clean: $(RM) errs *.obj tar testpad testpad.h -mostlyclean: clean - distclean: clean realclean: clean