From eacc9f8410a3d66796227a1bdaa9056e9ef8ff78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Fri, 4 Sep 2015 20:28:15 +0000 Subject: allow easier passing of build flags e.g. to enable Debian's hardening svn path=/trunk/externals/iem/iemnet/; revision=17552 --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 64b19ff..971cae4 100644 --- a/Makefile +++ b/Makefile @@ -52,9 +52,7 @@ ALL_LIBS = #------------------------------------------------------------------------------# # these can be set from outside without (usually) breaking the build -CFLAGS = -Wall -Wno-unused -W -g -LDFLAGS = -LIBS = +CFLAGS := -Wall -Wno-unused -W -g # get library version from meta file LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) @@ -276,7 +274,7 @@ $(LIBRARY_NAME).$(EXTENSION): $(SOURCES:.c=.o) $(LIBRARY_NAME).o chmod a-x $@ $(SHARED_LIB): $(SHARED_SOURCES:.c=.o) - $(CC) $(SHARED_LDFLAGS) -o $@ $^ $(ALL_LIBS) + $(CC) $(SHARED_LDFLAGS) $(LDFLAGS) -o $@ $^ $(ALL_LIBS) install: libdir_install -- cgit v1.2.1