diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -13,7 +13,6 @@ FILE_VERSION = 6 | |||
13 | 13 | ||
14 | MAKEFLAGS += --no-print-directory | 14 | MAKEFLAGS += --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 | ||
206 | INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES) | 205 | INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES) |
207 | 206 | ||
207 | include features.mk | ||
208 | |||
208 | # Set compile option CFLAGS if not set elsewhere | 209 | # Set compile option CFLAGS if not set elsewhere |
209 | CFLAGS ?= -g -Wall | 210 | CFLAGS ?= -g -Wall |
210 | 211 | ||
212 | ifndef NO_PTRACE | ||
213 | ifneq ($(call try-cc,$(SOURCE_PTRACE),),y) | ||
214 | NO_PTRACE = 1 | ||
215 | CFLAGS += -DWARN_NO_PTRACE | ||
216 | endif | ||
217 | endif | ||
218 | |||
219 | ifdef NO_PTRACE | ||
220 | CFLAGS += -DNO_PTRACE | ||
221 | endif | ||
222 | |||
211 | # Append required CFLAGS | 223 | # Append required CFLAGS |
212 | override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ) | 224 | override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ) |
213 | override CFLAGS += $(udis86-flags) | 225 | override CFLAGS += $(udis86-flags) |