summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-20 16:21:54 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-20 16:21:54 +0200
commitc08ff230bc1af97e10251d10731da9c874e79c1f (patch)
tree79dad45385cfc2d9869d3769e3b75776789c76fc /Makefile
parent5eb7fb4387f431b03c69a726a00b357e332b0455 (diff)
downloadpgfuse-c08ff230bc1af97e10251d10731da9c874e79c1f.tar.gz
pgfuse-c08ff230bc1af97e10251d10731da9c874e79c1f.tar.bz2
fixed compile issues on debian and suse
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3fd0c64..7072c4d 100644
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,17 @@ bindir=$(execdir)/bin
datadir=$(execdir)/share
# for debugging
-CFLAGS = -Wall -Werror -g -O0 -pthread
+#CFLAGS = -Wall -Werror -g -O0 -pthread
# for releasing
-#CFLAGS = -Wall -O2
+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