-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathConfig.mk.in
36 lines (30 loc) · 898 Bytes
/
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
name := @pkg_name@
VERSION := @pkg_major@.@pkg_minor@.@pkg_build@
################ Programs ############################################
CC := @CC@
INSTALL := @INSTALL@
INSTALL_DATA := ${INSTALL} -m 644
INSTALL_PROGRAM := ${INSTALL} -m 755 -s
################ Destination #########################################
prefix := @prefix@
bindir := @bindir@
datadir := @datadir@
mandir := @mandir@
man1dir := @man1dir@
TMPDIR := @TMPDIR@
builddir := @builddir@/${name}
O := .o/
################ Compiler options ####################################
#debug := 1
libs := @pkg_libs@
ifdef debug
cflags := -O0 -ggdb3
ldflags := -g -rdynamic
else
cflags := -Os -g0 -DNDEBUG=1
ldflags := -s
endif
CFLAGS := -Wall -Wextra -Wredundant-decls -Wshadow \
-Wno-deprecated-declarations -pedantic
cflags += -std=c99 @pkg_cflags@ ${CFLAGS}
ldflags += @pkg_ldflags@ ${LDFLAGS}