summaryrefslogtreecommitdiff
path: root/inc.mak
blob: b2e6376eda11c2b29226b703dd4f123e8324d856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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

# get compilation flags for filesystem
CFLAGS += `getconf LFS_CFLAGS 2>/dev/null`

# ignore some warnings
CFLAGS += -Wno-shift-negative-value

# 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