-
Notifications
You must be signed in to change notification settings - Fork 68
/
BCMK.conf
38 lines (29 loc) · 1.13 KB
/
BCMK.conf
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
CC := ccache gcc -std=c99
CXX := ccache g++ -std=c++0x
LD := $(CC)
STRIP := strip
CFLAGS = -Wall -g3 -ggdb -O3 -isystem $(STAGE)/include -iquote $(TOPDIR)/lib -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS
CFLAGS += -I /usr/include/opencv4
CXXFLAGS = $(CFLAGS)
LDFLAGS = -L$(TOPDIR)/lib -L$(STAGE)/lib -Wl,-rpath=$(libexec_dir) \
-Wl,-rpath-link=$(STAGE)/lib
RES = $(shell ld --copy-dt-needed-entries -o /dev/null -lc -shared > /dev/null 2>&1; echo $$?)
ifeq ($(RES),0)
LDFLAGS += -Wl,--copy-dt-needed-entries,--no-as-needed
endif
INSTALL_DATA = install -m644
INSTALL_PROG = install -m755
bin_dir = /usr/bin
sbin_dir = /usr/sbin
libexec_dir = /usr/lib/bluecherry
lib_dir = /usr/lib
cgi_dir = /usr/lib/cgi-bin
etc_dir = /etc
web_dir = /usr/share/bluecherry/www
LIB = $(TOPDIR)/lib/libbluecherry.so
NCPU := $(shell grep -c ^processor /proc/cpuinfo)
DEBARCH = $(shell $(TOPDIR)/scripts/build_helper/get_arch.sh)
DISTRO_RELNAME = $(shell $(TOPDIR)/scripts/build_helper/get_distro_release_name.sh)
CONTRIB_DIR = $(CONTRIB_BASE_DIR)/$(DISTRO_RELNAME)/$(DEBARCH)
# Functions
lpath = $(1:%=$(STAGE)/lib/lib%)