-
Notifications
You must be signed in to change notification settings - Fork 63
/
Config.mk.in
59 lines (48 loc) · 1.33 KB
/
Config.mk.in
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
54
55
56
57
58
59
################ Build options #######################################
NAME := @PKG_NAME@
MAJOR := @PKG_MAJOR@
MINOR := @PKG_MINOR@
#DEBUG := 1
BUILD_SHARED := 1
#BUILD_STATIC := 1
NOLIBSTDCPP := 1
################ Programs ############################################
CXX := @CXX@
LD := @CXX@
AR := @AR@
RANLIB := @RANLIB@
DOXYGEN := @DOXYGEN@
INSTALL := @INSTALL@
INSTALLDATA := ${INSTALL} -D -p -m 644
INSTALLLIB := ${INSTALLDATA}
################ Destination #########################################
prefix := @prefix@
exec_prefix := @exec_prefix@
BINDIR := @bindir@
INCDIR := @includedir@
LIBDIR := @libdir@
################ Compiler options ####################################
WARNOPTS := -Wall -Wextra -Woverloaded-virtual -Wpointer-arith\
-Wshadow -Wredundant-decls -Wcast-qual @SYSWARNS@
TGTOPTS := @PROCESSOR_OPTS@
INLINEOPTS := @INLINE_OPTS@
CXXFLAGS := ${WARNOPTS} ${TGTOPTS} -fPIC
LDFLAGS :=
LIBS :=
ifdef DEBUG
CXXFLAGS += -O0 -g
LDFLAGS += -rdynamic
else
CXXFLAGS += -Os -g0 -DNDEBUG=1 -fomit-frame-pointer ${INLINEOPTS}
LDFLAGS += -s -Wl,-gc-sections
endif
ifdef NOLIBSTDCPP
LD := @CC@
STAL_LIBS := @libsupc++@ @libgcc_eh@ @libSystemStubs@
LIBS := ${STAL_LIBS}
endif
O := .o/
slib_lnk = lib$1.so
slib_son = lib$1.so.${MAJOR}
slib_tgt = lib$1.so.${MAJOR}.${MINOR}
slib_flags = @SHBLDFL@