2 # Makefile definitions for netyack
3 # Author: Daniel Borkmann
6 # For mem debugging add -D_DEBUG_
7 LD_NORM
= echo
"LD $(target)"; \
9 CC_NORM
= echo
"CC $<"; \
11 CC_DEBUG
= echo
"DC $<"; \
13 A2X_NORM
= echo
"A2X $<"; \
15 FL_NORM
= echo
"FL $(flex-obj)"; \
17 BI_NORM
= echo
"BI $(bison-obj)"; \
20 MAKEFLAGS
+= --no-print-directory
--silent
26 $(if
$(1:$(2)=),,$(if
$(2:$(1)=),,T
))
32 ifneq ($(or
$(call eq
,$(MAKECMDGOALS
),"all"), $(call eq
,$(MAKECMDGOALS
),"")),)
35 CFLAGS
= -O2
-fomit-frame-pointer
-fno-strict-aliasing
-fno-common \
36 -fno-delete-null-pointer-checks
-std
=gnu99 \
37 -fstack-protector
-D_FORTIFY_SOURCE
=2 -fPIE \
38 -fno-strict-overflow
-D_REENTRANT
-pedantic
39 CFLAGS
+= -Wall
-Wundef
-Wstrict-prototypes
-Wno-trigraphs \
40 -Werror-implicit-function-declaration
-Wno-format-security \
41 -Wcomments
-Wendif-labels
-Wno-long-long
-Wuninitialized \