# file: Makefile
# for MSTS project
# Andrew Jarcho
# modified: 4/20/2007 4:15a


test001: testMain.o test_get_involved.o callProcsViaC.o
	g++ -g -o test001 testMain.o test_get_involved.o callProcsViaC.o -lclntsh -lsocket -lnsl -lpthread -lpq -lecpg

testMain.o: testMain.c
	gcc -g -c testMain.c

test_get_involved.o: test_get_involved.c
	gcc -c -g -I /opt/pgsql/include/ test_get_involved.c

callProcsViaC.o: callProcsViaC.c
	gcc -g -c -I /opt/pgsql/include/ callProcsViaC.c

test_get_involved.c: test_get_involved.pgc
	ecpg test_get_involved.pgc

callProcsViaC.c: callProcsViaC.pgc
	ecpg callProcsViaC.pgc

clean:
	-rm *.o *~

