# This Makefile was created for use with a version of PostgreSQL created # from RPMs with libraries located in the standard Linux directories. If an # RFC has installed the libraries in a different location, change the # "LIBDIR" library directory path below as necessary. TARGET = getrvfdates OBJECTS = getrvfdates.o CC = gcc CFLAGS = LIBS = -lm -lutil_gen1_r -lpq -lecpg LIBDIR = -L/usr/local/lib INCDIR = INCLUDES_ALL = checkfis.h #Rule to make a .c file from a .pgc file %c: %.pgc ecpg -t -r no_indicator -o $@ $< #Rule to make an object file from a .c file %o: %.c $(CC) -c $(CFLAGS) $(INCLUDES_ALL) -o $@ $< $(TARGET): $(OBJECTS) $(CC) -o $(TARGET) $(OBJECTS) $(LIBDIR) $(LIBS) clean: rm $(OBJECTS) $(TARGET)