diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-04-24 08:39:22 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-04-24 08:39:22 +0200 |
commit | e1669b74ddec239ce2b987180bb6b81bb4fb0580 (patch) | |
tree | 182c3a48802746eff6438c28de133ca0173f4303 /inc.mak | |
parent | 85b2ec441def308a9fbb8c54e9dc14d2f1427dfb (diff) | |
download | pgfuse-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.mak | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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 |