diff options
author | Wolfram Sang <wsa@kernel.org> | 2020-08-05 23:57:12 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-08-10 12:05:48 +0200 |
commit | 162ed6c94528d743ee94cfd209a2e866c4f7d77a (patch) | |
tree | e15da3551105ea0746d93ae40b4d795d8aa1da32 /eeprog | |
parent | 0cadafa030496f913dc44ace38513dc57db15c4e (diff) | |
download | i2c-tools-git-162ed6c94528d743ee94cfd209a2e866c4f7d77a.tar.gz |
allow to preset custom CFLAGS and LDFLAGS
Sometimes I need to add some flags (like -static for the linker), so
allow this for all CFLAGS and LDFLAGS used in this project.
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Acked-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'eeprog')
-rw-r--r-- | eeprog/Module.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eeprog/Module.mk b/eeprog/Module.mk index ac3a368..3f442aa 100644 --- a/eeprog/Module.mk +++ b/eeprog/Module.mk @@ -7,11 +7,11 @@ EEPROG_DIR := eeprog -EEPROG_CFLAGS := -Iinclude +EEPROG_CFLAGS += -Iinclude ifeq ($(USE_STATIC_LIB),1) -EEPROG_LDFLAGS := $(LIB_DIR)/$(LIB_STLIBNAME) +EEPROG_LDFLAGS += $(LIB_DIR)/$(LIB_STLIBNAME) else -EEPROG_LDFLAGS := -L$(LIB_DIR) -li2c +EEPROG_LDFLAGS += -L$(LIB_DIR) -li2c endif EEPROG_TARGETS := eeprog |