# # Make file to build the Postgresql example applications for the DBConnect API # Copyright (c) Johnathan Ingram 2004 # ##################################################################### SHELL = /bin/sh top_srcdir = ../.. CC = gcc CXX = g++ CPPFLAGS = CFLAGS = -fPIC $(CPPFLAGS) -g -O2 IFLAGS = -I../../include LFLAGS = -lstdc++ -ldl -L../../lib -ldbconnect -lpthread all: pgsql_types pgsql_function pgsql_types: pgsql_types.cpp $(CC) -c pgsql_types.cpp $(CFLAGS) $(IFLAGS) -o pgsql_types.o $(CC) -o pgsql_types $(CFLAGS) $(IFLAGS) pgsql_types.o $(LFLAGS) pgsql_function: pgsql_function.cpp $(CC) -c pgsql_function.cpp $(CFLAGS) $(IFLAGS) -o pgsql_function.o $(CC) -o pgsql_function $(CFLAGS) $(IFLAGS) pgsql_function.o $(LFLAGS) clean: rm -f ./*.o rm -f ./pgsql_types rm -f ./pgsql_function