forked from pEp.foundation/pEpMIME
linking using LDFLAGS
parent
e7bcb27d25
commit
4decb605bb
|
@ -7,6 +7,8 @@ PREFIX=/usr/local
|
|||
# !FIXME!
|
||||
GTEST_DIR=/opt/local/src/googletest
|
||||
|
||||
lib: libpEpMIME.a
|
||||
|
||||
all: libpEpMIME.a unittests fuzz
|
||||
|
||||
-include local.conf
|
||||
|
@ -21,7 +23,7 @@ unittests: unittest_mime.o unittest_nfc.o unittest_timestamp.o \
|
|||
unittest_stringcase.o unittest_toutf8.o unittest_address.o \
|
||||
unittest_rule.o unittest_subject.o \
|
||||
gtest-all.o gtest_main.o libpEpMIME.a
|
||||
${CXX} ${CXXFLAGS} -L${PREFIX}/lib -o $@ $^ -lpEpAdapter -lpEpEngine -lpthread -liconv
|
||||
${CXX} ${LDFLAGS} -L${PREFIX}/lib -o $@ $^ -lpEpAdapter -lpEpEngine -lpthread -liconv
|
||||
|
||||
gtest-all.o: $(GTEST_DIR)/src/gtest-all.cc
|
||||
${CXX} ${CXXFLAGS} $(CPPFLAGS) -I$(GTEST_DIR) $(CXXFLAGS) -isystem $(GTEST_DIR)/include -o $@ -c $<
|
||||
|
@ -33,7 +35,7 @@ unittest_%.o : unittest_%.cc
|
|||
${CXX} ${CXXFLAGS} -I${PREFIX}/include -isystem $(GTEST_DIR)/include -o $@ -c $<
|
||||
|
||||
fuzz: fuzz.o libpEpMIME.a
|
||||
${CXX} ${CXXFLAGS} -L${PREFIX}/lib -o $@ $^ -lpEpAdapter -lpEpEngine -lpthread -liconv
|
||||
${CXX} ${LDFLAGS} -L${PREFIX}/lib -o $@ $^ -lpEpAdapter -lpEpEngine -lpthread -liconv
|
||||
|
||||
fuzz.o: fuzz.cc
|
||||
${CXX} ${CXXFLAGS} -I${PREFIX}/include -o $@ -c $^
|
||||
|
|
Loading…
Reference in New Issue