forked from horchi/linux-p4d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMake.config
53 lines (38 loc) · 1.13 KB
/
Make.config
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Make.config
#
# See the README file for copyright information and how to reach the author.
#
#
# user defined stuff
PREFIX = /usr/local
BINDEST = $(DESTDIR)$(PREFIX)/bin
CONFDEST = $(DESTDIR)/etc/p4d
WEBDEST = $(DESTDIR)/var/lib/p4
PCHARTDEST = $(DESTDIR)/var/lib/pChart2.0
WEBOWNER = www-data
APACHECFGDEST = $(DESTDIR)/etc/apache2
DEBUG = 1
# -----------------------
# don't touch below ;)
CC = g++
doCompile = $(CC) -c $(CFLAGS) $(DEFINES)
doLink = $(CC) $(LFLAGS)
doLib = ar -rs
PLGSRCDIR = ./PLUGINS
TMPDIR = /tmp
#USELIBXML = 1
#USECURL = 1
#USEJPEG = 1
USES = -DUSEUUID -DUSEMD5 -DUSELIBXML -DUSELIBARCHIVE -DUSEJSON -DUSEGUNZIP
DEFINES += -D_GNU_SOURCE -DTARGET='"$(TARGET)"' -DLOG_PREFIX='""' -DPLGDIR='"$(PLGDEST)"' $(USES)
ifdef USELIBXML
DEFINES += $(shell xml2-config --cflags)
endif
ifdef DEBUG
CFLAGS += -ggdb -O0
endif
CFLAGS += -fPIC -Wreturn-type -Wall -Wno-parentheses -Wformat -pedantic -Wunused-variable -Wunused-label \
-Wunused-value -Wunused-function -Wno-long-long \
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
%.o: %.c
$(doCompile) -o $@ $<