
# You will probably have to change the Tk and Tcl pathnames and the
# wish pathname in "objectify".

LIBS = -ltk -ltcl -lX11 -lm
LDFLAGS = -L/usr/sww/lib -L/usr/sww/X11/lib
CFLAGS = -I/usr/sww/include/tcl -I/usr/sww/include/tk

test: test.o test_main.o test_objects.o objConfig.o
	gcc test.o test_main.o test_objects.o objConfig.o \
		-o test $(LIBS) $(LDFLAGS)

test.o: test.cc test.h
	gcc -c $(CFLAGS) test.cc

test_main.o: test_main.cc
	gcc -c $(CFLAGS) test_main.cc

test_objects.o: test_objects.cc
	gcc -c $(CFLAGS) test_objects.cc

test_objects.cc: test.h objectify
	./objectify test.h

objConfig.o: objConfig.c
	gcc -c $(CFLAGS) objConfig.c
