CC = gcc
INC_PG = /usr/include/postgresql/8.3/server 
LIB_PG = /usr/lib/postgresql/8.3/lib

INC = -I$(INC_PG) -I../../kts/include -I../include
LIBS = ../../kts/lib/libkts.a -lgdbm_compat
CFLAGS = -O3 $(INC) -Wall -DDEBUG
OBJS = pgkts.o encoding.o postgres.o debug.o
  
TARGET = pgkts.so

all : $(OBJS)
	$(CC) -shared -o $(TARGET) $(OBJS) $(LIBS)
clean:
	rm -rf $(OBJS) $(TARGET)
install:
	cp -f $(TARGET) $(LIB_PG)

