CFLAGS += -Wall -g -std=c99 LIB_OBJS = movements.o utils.o OBJS = postgastro.o $(LIB_OBJS) MODULE_big=postgastro DATA=postgastro.sql EXTRA_CLEAN=libxpa.a PGXS := $(shell pg_config --pgxs) include $(PGXS) libxpa.a: $(LIB_OBJS) ar rc $@ $^ test: -createdb xpa_test psql xpa_test -c '\i postgastro.sql' psql xpa_test -c '\i tests/maketables.sql' psql xpa_test < tests/movePm.sql > test.out diff test.out tests/movePm.out rm test.out dropdb xpa_test