# makefile to test with Turbo C
#
# Tested with Turbo C++ v1.0 and GNU make (works with tc make too).
# Also tested with Turbo C 1.5, and Borland C++ v2.0.
#
#  W. Metzenthen   2nd March 1992
#


################ Start of Turbo C version-dependent part ###############

# -v can't be used with Turbo C v1.0, v1.5 (or with v2.0 ?)
#DEBUG	= -v
DEBUG	=

# Use this if you have Turbo C v1.0 or v1.5 (or with v2.0 ?):
#LDFLAGS	= -M
# Use this for Turbo C++ v1.0 or later:
LDFLAGS	= -ls

################ End of Turbo C version-dependent part ###############

SHELL	= command.com

MODEL	= s
CC	= tcc
OBJS	= test2.obj close.obj

CFLAGS	= -O -m$(MODEL) $(DEBUG) -w


test2.exe:	$(OBJS) makefile
	$(CC) -m$(MODEL) $(DEBUG) $(LDFLAGS) -e$* $(OBJS)

clean:
	del fd_*.$$$$$$
	del str_*.$$$$$$


# The following are needed for Turbo C make.
# GNU make does have its advantages!
test2.obj:	test2.c makefile
	$(CC) -c $(CFLAGS) test2.c

close.obj:	close.c makefile
	$(CC) -c $(CFLAGS) close.c
