aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a3f1dd0..ad717ce 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,6 @@ FILE_VERSION = 6
13 13
14MAKEFLAGS += --no-print-directory 14MAKEFLAGS += --no-print-directory
15 15
16
17# Makefiles suck: This macro sets a default value of $(2) for the 16# Makefiles suck: This macro sets a default value of $(2) for the
18# variable named by $(1), unless the variable has been set by 17# variable named by $(1), unless the variable has been set by
19# environment or command line. This is necessary for CC and AR 18# environment or command line. This is necessary for CC and AR
@@ -205,9 +204,22 @@ KERNELSHARK_VERSION = $(KS_VERSION).$(KS_PATCHLEVEL).$(KS_EXTRAVERSION)
205 204
206INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES) 205INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES)
207 206
207include features.mk
208
208# Set compile option CFLAGS if not set elsewhere 209# Set compile option CFLAGS if not set elsewhere
209CFLAGS ?= -g -Wall 210CFLAGS ?= -g -Wall
210 211
212ifndef NO_PTRACE
213ifneq ($(call try-cc,$(SOURCE_PTRACE),),y)
214 NO_PTRACE = 1
215 CFLAGS += -DWARN_NO_PTRACE
216endif
217endif
218
219ifdef NO_PTRACE
220CFLAGS += -DNO_PTRACE
221endif
222
211# Append required CFLAGS 223# Append required CFLAGS
212override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ) 224override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ)
213override CFLAGS += $(udis86-flags) 225override CFLAGS += $(udis86-flags)