From 85b434ffc8870a592044b29686f6d2f352fe7c45 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 4 Jul 2013 18:53:30 +0200 Subject: o Initial import of my PostgreSQL background worker + HTTP experiment. --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3f82144 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +POSTGRESQL ?= $(HOME)/opt/postgresql-git + +PG_CPPFLAGS = -Imongoose -Ilibebb +SHLIB_LINK = -lev + +MODULE_big = httpd +OBJS=httpd.o libebb/libebb.a +# mongoose/mongoose.o + +PG_CONFIG = $(POSTGRESQL)/bin/pg_config +PGXS := $(shell $(PG_CONFIG) --pgxs) +include $(PGXS) + +httpd.o: httpd.c +libebb/libebb.a: + $(MAKE) -C libebb LIBS=-lev + +# Utility targets + +reinitdb: + rm -rf data + $(MAKE) initdb + +initdb: + $(POSTGRESQL)/bin/initdb -D data -E utf8 + echo "port=5433" >> data/postgresql.conf + echo "shared_preload_libraries='httpd'" >> data/postgresql.conf + +run: + $(POSTGRESQL)/bin/postgres -D data -- cgit v1.2.3