#:ts=8
#
# $Id: Makefile,v 1.5 1995/09/05 16:24:23 steppler Exp $
#
# Makefile CNCL lib/test
#
TOPDIR	= ../..

include $(TOPDIR)/make.conf

TEMPLDIR= $(TOPDIR)/lib

OBJS	= tbasic.o Test.o TestTest.o

TESTS	= tbasic tmath tmem

TEMPL	= Test.c Test.h TestTest.c TestTest.h

FILES = Makefile tbasic.c tmath.c tmem.c $(TEMPL)

all:	$(TESTS)

Test.c Test.h:		$(TEMPLDIR)/Template.hP $(TEMPLDIR)/Template.cP
	$(TOPDIR)/bin/CNgenclass -t $(TEMPLDIR) Test CNObject

TestTest.c TestTest.h:	$(TEMPLDIR)/Template.hP $(TEMPLDIR)/Template.cP
	$(TOPDIR)/bin/CNgenclass -l -t $(TEMPLDIR) TestTest Test

tbasic:	$(OBJS)
	$(CC) $(LFLAGS) -o tbasic $(OBJS) $(LIBS)

tmath:	tmath.o
	$(CC) $(LFLAGS) -o tmath tmath.o $(LIBS)

tmem:	tmem.o
	$(CC) $(LFLAGS) -o tmem tmem.o $(LIBS)

clean veryclean distclean::
	rm -f $(TEMPL)

veryclean distclean::
	rm -f $(TESTS)


templates::	$(TEMPL)

# Common stuff
include $(TOPDIR)/make.common
