diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-01-08 08:09:08 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2024-02-26 11:23:53 +0800 |
commit | 3b2be819f507ee76fa1b969f955f09a7f32080dc (patch) | |
tree | 41e8b45289e0b9ac020b316b103f04a079ea8c4d /makefile | |
parent | 02d1e357f692a4d0228c0abcfdf452e7cf974842 (diff) | |
download | zxcvbn-c-3b2be819f507ee76fa1b969f955f09a7f32080dc.tar.gz |
makefile: Use CPPFLAGS_FOR_BUILD & CXXFLAGS_FOR_BUILD
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -10,6 +10,9 @@ CXX_FOR_BUILD ?= $(CXX) # need zxcvbn.h prior to package installation CPPFLAGS += -I. +CPPFLAGS_FOR_BUILD ?= $(CPPFLAGS) +CXXFLAGS_FOR_BUILD ?= $(CXXFLAGS) + # library metadata TARGET_LIB = libzxcvbn.so.0.0.0 SONAME = libzxcvbn.so.0 @@ -62,7 +65,7 @@ dict-crc.h: dictgen $(WORDS) ./dictgen -b -o zxcvbn.dict -h dict-crc.h $(WORDS) dictgen: dict-generate.cpp makefile - $(CXX_FOR_BUILD) $(CPPFLAGS) -std=c++11 $(CXXFLAGS) \ + $(CXX_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) -std=c++11 $(CXXFLAGS_FOR_BUILD) \ -o dictgen dict-generate.cpp $(LDFLAGS) test-c++inline: test.c zxcvbn-c++inline.o |