summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2021-08-31 06:57:54 -0700
committerAndrew G. Morgan <morgan@kernel.org>2021-08-31 06:57:54 -0700
commit264b784089bfb56b0039c1ebfc5e92912f0284ce (patch)
tree596ce4f1e5d3ca95ea5b1f5c8df425d77e98e88f
parentf5ae31ebd3d49a064cb85ccd62a75198883cec3b (diff)
downloadlibcap2-264b784089bfb56b0039c1ebfc5e92912f0284ce.tar.gz
Resurrect the $(WARNINGS) for the target build
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r--Make.Rules10
-rw-r--r--contrib/Makefile2
2 files changed, 6 insertions, 6 deletions
diff --git a/Make.Rules b/Make.Rules
index 4ce2285..9c33d75 100644
--- a/Make.Rules
+++ b/Make.Rules
@@ -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