diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2021-08-31 06:57:54 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2021-08-31 06:57:54 -0700 |
commit | 264b784089bfb56b0039c1ebfc5e92912f0284ce (patch) | |
tree | 596ce4f1e5d3ca95ea5b1f5c8df425d77e98e88f | |
parent | f5ae31ebd3d49a064cb85ccd62a75198883cec3b (diff) | |
download | libcap2-264b784089bfb56b0039c1ebfc5e92912f0284ce.tar.gz |
Resurrect the $(WARNINGS) for the target build
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r-- | Make.Rules | 10 | ||||
-rw-r--r-- | contrib/Makefile | 2 |
2 files changed, 6 insertions, 6 deletions
@@ -76,14 +76,14 @@ OBJCOPY := $(CROSS_COMPILE)objcopy # CPPFLAGS used for building .o files from .c & .h files # CFLAGS used when building libraries from .o, .c and .h files -COPTS ?= -O2 -CFLAGS ?= $(COPTS) -CPPFLAGS += -Dlinux $(WARNINGS) $(DEBUG) $(DEFINES) $(LIBCAP_INCLUDES) -LDFLAGS ?= #-g -DEBUG = -g #-DDEBUG +DEBUG = # -g -DDEBUG WARNINGS=-Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align \ -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs \ -Winline -Wshadow +COPTS ?= -O2 +CFLAGS ?= $(COPTS) $(WARNINGS) $(DEBUG) +CPPFLAGS += -Dlinux $(DEFINES) $(LIBCAP_INCLUDES) +LDFLAGS ?= # -g BUILD_CC ?= $(CC) BUILD_LD ?= $(BUILD_CC) -Wl,-x -shared diff --git a/contrib/Makefile b/contrib/Makefile index 4749630..a4b5008 100644 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -1,3 +1,3 @@ .PHONY: all clean all clean: - for x in bug* ; do make -C $$x $@ || exit 1 ; done + for x in bug* ; do $(MAKE) -C $$x $@ || exit 1 ; done |