summaryrefslogtreecommitdiffstats
path: root/Makefile.defs.in
blob: 2d0e9001222c43901a47b177fd03ebaf8aba7def (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
33
34
35
36
37
38
39
40
41
42
DEBUG		= @CONFIG_DEBUG@
CC		= @CC@
CPP		= @CPP@
LEX		= @LEX@
YACC		= @YACC@
MKDIR_P		= @MKDIR_P@
LN_S		= @LN_S@
INSTALL		= @INSTALL@
DOXYGEN		= doxygen

PACKAGE_STRING	= @PACKAGE_STRING@
PACKAGE_VERSION = @PACKAGE_VERSION@
PACKAGE_TARNAME	= @PACKAGE_TARNAME@

prefix		= @prefix@
exec_prefix	= @exec_prefix@
sysconfdir	= @sysconfdir@
datarootdir	= @datarootdir@
mandir		= @mandir@
docdir		= @docdir@
pdfdir		= @pdfdir@
confdir		= @sysconfdir@/dect

LDFLAGS		+= @LDFLAGS@
LDFLAGS		+= @LIBS@

CPPFLAGS	+= @CPPFLAGS@

CFLAGS		+= @CFLAGS@ @DEFS@
CFLAGS		+= -include config.h -I include
CFLAGS		+= -fno-strict-aliasing

CFLAGS		+= -Wall -Werror
CFLAGS		+= -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
CFLAGS		+= -Wdeclaration-after-statement -Wsign-compare -Winit-self
CFLAGS		+= -Wformat-nonliteral -Wformat-security -Wmissing-format-attribute
CFLAGS		+= -Wcast-align -Wundef -Wbad-function-cast # -Wshadow
CFLAGS		+= -Waggregate-return -Wunused -Wwrite-strings

ifeq ($(DEBUG),y)
CFLAGS		+= -g -DDEBUG
endif