# makefile for Borland C++

#$Id: makefile 1.4 1995/11/22 10:54:51 ASR Exp $
#$Log: makefile $
#Revision 1.4  1995/11/22 10:54:51  ASR
#First version under RCS
#

CC=bcc
LINK=tlink
CC_OPTS=-c -ml -w -d -O -A -P-c
LINK_OPTS=/c /x
OBJS=c0l
LIBS=cl

all: lingua.exe lingdemo.exe etftest.exe

test:
	lingdemo
	lingdemo english
	lingdemo francais
	lingdemo deutsch
	lingdemo nl
	etftest english
	etftest francais
	etftest deutsch
	etftest nl

clean:
	del *.obj
	del *.exe
	del *.etf
	del ui_text.h
	del *.bak

lingua.exe: lingua.obj
	$(LINK) $(LINK_OPTS) @&&!
$(OBJS)+
lingua.obj
$*, ,$(LIBS)
!

lingdemo.exe: lingdemo.obj ui_text.obj
	$(LINK) $(LINK_OPTS) @&&!
$(OBJS)+
lingdemo.obj+
ui_text.obj
$*, ,$(LIBS)
!

etftest.exe: etftest.obj ui_text.obj
	$(LINK) $(LINK_OPTS) @&&!
$(OBJS)+
etftest.obj+
ui_text.obj
$*, ,$(LIBS)
!

lingua.obj: lingua.c lingua.h

lingdemo.obj: lingdemo.c ui_text.h

ui_text.obj: ui_text.c lingua.h files.inc

etftest.obj: etftest.c ui_text.h

ui_text.h: english.txt
	lingua english
	lingua francais
	lingua deutsch
	lingua nl

.c.obj:
	$(CC) $(CC_OPTS) {$< }

