summaryrefslogtreecommitdiff
path: root/inc.mak
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-24 08:39:22 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-24 08:39:22 +0200
commite1669b74ddec239ce2b987180bb6b81bb4fb0580 (patch)
tree182c3a48802746eff6438c28de133ca0173f4303 /inc.mak
parent85b2ec441def308a9fbb8c54e9dc14d2f1427dfb (diff)
downloadpgfuse-e1669b74ddec239ce2b987180bb6b81bb4fb0580.tar.gz
pgfuse-e1669b74ddec239ce2b987180bb6b81bb4fb0580.tar.bz2
updated developer documentation
moved tests into their own subdirectory, added inc.mak for common makefilen stuff
Diffstat (limited to 'inc.mak')
-rw-r--r--inc.mak28
1 files changed, 28 insertions, 0 deletions
diff --git a/inc.mak b/inc.mak
new file mode 100644
index 0000000..a26cc19
--- /dev/null
+++ b/inc.mak
@@ -0,0 +1,28 @@
+CC=gcc
+
+# for debugging
+CFLAGS = -Wall -Werror -g -O0 -pthread
+# for releasing
+#CFLAGS = -Wall -O2
+
+# redhat has libpq-fe.h and fuse.h in /usr/include, ok
+
+# suse has libpq-fe.h in
+CFLAGS += -I/usr/include/pgsql
+
+# debianish systems have libpg-fe.h in
+CFLAGS += -I/usr/include/postgresql
+
+# declare version of FUSE API we want to program against
+CFLAGS += -DFUSE_USE_VERSION=26
+
+CFLAGS += -D_FILE_OFFSET_BITS=64
+
+# debug
+#CFLAGS += -I/usr/local/include/fuse
+#LDFLAGS = -lpq /usr/local/lib/libfuse.a -pthread -ldl -lrt
+
+# release
+# use pkg-config to detemine compiler/linker flags for libfuse
+CFLAGS += `pkg-config fuse --cflags`
+LDFLAGS = `pkg-config fuse --libs` -lpq -pthread