#:ts=8
#
# $Id$
#
# 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

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::
	rm -f $(TESTS)

veryclean::
	rm -f $(TESTS) $(TEMPL)

templates::	$(TEMPL)

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