#
# Makefile for GCC
#

#
# NOTE: -lgpp maybe -lg++ on your system
#

CC=gcc-2.6.3
CCFLAGS= -g -fno-implicit-templates -I..

.c.o:
	$(CC) -c $(CCFLAGS) $*.c

.cc.o:
	$(CC) $(CCFLAGS) -c $*.cc


splash.o: ../regexp.h ../splash.h
	$(CC) $(CCFLAGS) -c -o splash.o ../splash.cc

regex.o: ../regex.c
	$(CC) $(CCFLAGS) -c -o regex.o ../regex.c 

chgfnt: chgfnt.o splash.o regex.o
	$(CC) $(CCFLAGS) -DTESTCHGFNT -o chgfnt chgfnt.o splash.o regex.o -lg++

chgfnt.o: chgfnt.cc
	$(CC) -c $(CCFLAGS) -DTESTCHGFNT chgfnt.cc

cislog: cislog.o splash.o regex.o
	$(CC) $(CCFLAGS) -DTESTcislog -o cislog cislog.o splash.o regex.o  -lg++

cislog.o: cislog.cc
	$(CC) -c $(CCFLAGS) cislog.cc

xcl: xcl.o splash.o regex.o tracer.o
	$(CC) $(CCFLAGS) -o xcl xcl.o splash.o regex.o tracer.o  -lg++

xcl.o: xcl.cc
	$(CC) $(CCFLAGS) -DDOTRACER -c xcl.cc

justify: justify.o splash.o regex.o tracer.o
	$(CC) $(CCFLAGS) -o justify justify.o splash.o regex.o tracer.o  -lg++

justify.o: justify.cc
	$(CC) $(CCFLAGS) -DDOTRACER -c justify.cc

tstio: tstio.o splash.o regex.o
	$(CC) $(CCFLAGS) -o tstio tstio.o splash.o regex.o -lg++

tstio.o: tstio.cc
	$(CC) -c $(CCFLAGS) -DTSTIO tstio.cc

setini: setini.o splash.o regex.o
	$(CC) $(CCFLAGS) -o setini setini.o splash.o regex.o -lg++

assoc: assoc.o splash.o regex.o
	$(CC) $(CCFLAGS) -DTESTASSOC -o assoc assoc.o splash.o regex.o -lg++

assoc.o: assoc.cc
	$(CC) $(CCFLAGS) -c -DTESTASSOC assoc.cc

tstiter: tstiter.o splash.o regex.o
	$(CC) $(CCFLAGS) -o tstiter tstiter.o splash.o regex.o  -lg++



