#
#	Configuration parameters for Borland Turbo C
#
INC	= $(TCCINC)
CSLIB	= $(TCCLIB)\CS.LIB
TCCSTART = $(TCCLIB)\C0S.OBJ+
TCCW	= -w-par -w-pia

.c.obj:
	$(TCC) $(TCCFLG) $(TCCW) -I$(APPS) -o$@ $*.c 


all:	install

install:	$(MSG)\install.exe

$(MSG)\install.exe:	install.obj scrnutil.obj screens.obj sfuncs.obj
$(MSG)\install.exe:	setup.obj
$(MSG)\install.exe:	$(MSG)\scrtext.obj fsubs.obj $(APPS)\appslib.lib
	$(LINK) /MAP/EXEPACK @<<(install.arf)
$(TCCSTART)install+scrnutil+screens+sfuncs+setup+$(MSG)\scrtext+fsubs
$@

$(APPS)\appslib.lib+$(CSLIB)
<

temp:	temp.exe
temp.exe:	temp.obj
	$(LINK) @<<(temp.arf)
$(TCCSTART)temp
$@

$(APPS)\appslib.lib+$(CSLIB)
<

temp.obj:	temp.c

test:	test.exe

test.exe:	test.obj $(APPS)\appslib.lib
	$(LINK) /MAP/EXEPACK @<<(test.arf)
$(TCCSTART)test
$@

$(APPS)\appslib.lib+$(CSLIB)
<

install.obj:	install.c i:portab.h screens.h scrtext.h country.h printer.h
install.obj:	defaults.h 

scrnutil.obj:	scrnutil.a86

screens.obj:	screens.c i:portab.h screens.h scrtext.h sfuncs.h defaults.h
screens.obj:	country.h printer.h

sfuncs.obj:	sfuncs.c i:portab.h screens.h country.h printer.h defaults.h
sfuncs.obj:	scrtext.h errors.h

setup.obj:	setup.c i:portab.h defaults.h country.h printer.h errors.h

$(MSG)\scrtext.obj:	$(MSG)\scrtext.c country.h printer.h defaults.h 
$(MSG)\acrtext.obj:	i:portab.h

fsubs.obj:	fsubs.a86

test.obj:	test.c

######################   E N D   O F   M A K E F I L E    #####################
