CC=g++
# where are your libraries (tcl/tk and X)?
LIBS=-L/usr/tcl/tcl7/lib -ltk -ltcl  -L/usr/X11/lib -lX11 -lm -lXpm
# where are your tcl-include-files
CFLAGS=-I/usr/tcl/tcl7/include
OFILES=tcltest.o Tcl_Object.o
CFILES=tcltest.C Tcl_Object.C

tcltest: $(OFILES)
	$(CC) $(OFILES) $(LIBS) -o tcltest
tcltest.o: tcltest.C Tcl_Object.h
	$(CC) $(CFLAGS) -c tcltest.C -o tcltest.o
Tcl_Object.o: Tcl_Object.C Tcl_Object.h
	$(CC) $(CFLAGS) -c Tcl_Object.C -o Tcl_Object.o

clean: 
	rm -f *.o tcltest
