diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2015-09-04 20:28:15 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2015-09-04 20:28:15 +0000 |
commit | eacc9f8410a3d66796227a1bdaa9056e9ef8ff78 (patch) | |
tree | cb64f39c118dcb71af937d30e2c58695570397c1 /Makefile | |
parent | 25c9494c3fbe26b93550ea7831591816cb98234d (diff) |
allow easier passing of build flags
e.g. to enable Debian's hardening
svn path=/trunk/externals/iem/iemnet/; revision=17552
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |