# $Id$

CC=gcc
CFLAGS=-O2 -fpic -I/usr/local/pgsql/include/server \
	-Wall -Wmissing-prototypes -Wmissing-declarations
#	-g

all : trg_xorder.so

trg_xorder.so : trg_xorder.o
	$(CC) -o trg_xorder.so trg_xorder.o -shared $(LDLIBS) $(LDFLAGS)

trg_xorder.o : trg_xorder.c
	$(CC) -c trg_xorder.c -o trg_xorder.o $(CFLAGS)

clean :
	rm -f *.o *.so

up:
	/bin/sh install.sh



