Browse Source

linking using LDFLAGS

MIME-4
Volker Birk 3 years ago
parent
commit
4decb605bb
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/Makefile

+ 4
- 2
src/Makefile View File

@ -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…
Cancel
Save