Compare commits

...

1 Commits

Author SHA1 Message Date
  Marcel Schneider 274b088cde More fixes. 1 month ago
1 changed files with 14 additions and 8 deletions
Split View
  1. +14
    -8
      server/Makefile

+ 14
- 8
server/Makefile View File

@ -1,5 +1,7 @@
# this ifeq is not optional, because otherwise local.conf would always be built
.SUFFIXES:
MAKEFLAGS += --no-builtin-rules
# this ifeq is not optional, because otherwise local.conf would always be built
ifeq ($(wildcard local.conf),local.conf)
-include local.conf
endif
@ -24,10 +26,9 @@ CXX?=c++
CFLAGS+=-std=c14 -fvisibility=hidden
CXXFLAGS+= -I$(PEP_INCLUDE) -std=c++14 -fvisibility=hidden
LDFLAGS+=-std=c++14 -L$(PEP_LIB_PATH) -L$(LIBRARY_PATH)
LDLIBS+= -lpEpEngine -lpEpAdapter -lpEpwebserver -lasn1 \
-lboost_filesystem -lboost_program_options -lboost_system -lboost_thread -lboost_regex \
-lsequoia_openpgp_ffi -lhogweed -lnettle -lgmp \
-lz -lsqlite3
LDLIBS= -lpEpEngine -lpEpAdapter -lpEpwebserver -lasn1 -letpan -liconv -lz \
-lboost_filesystem -lboost_program_options -lboost_system -lboost_thread -lboost_regex \
-lsequoia_openpgp_ffi -lhogweed -lnettle -lgmp -lbz2 -lpthread -ldl -luuid
# This idiom is from the pEp Engine Makefile, but we don't sure Makefile.conf here.
BUILD_ON:=$(shell uname)
@ -52,8 +53,8 @@ endif
ifdef NDEBUG
CFLAGS+=-O3 -DNDEBUG
CXXFLAGS+=-O3 -DNDEBUG
CFLAGS+=-Og -ggdb -DNDEBUG
CXXFLAGS+=-Og -ggdb -DNDEBUG
else
CFLAGS+=-O0 -g -DDEBUG_ENABLED
CXXFLAGS+=-O0 -g -DDEBUG_ENABLED
@ -115,6 +116,8 @@ $(TARGET): $(LIB_TARGET) $(MA_OBJECTS) $(SPIRIT_OBJECTS)
%.o: %.cc
$(CXX) $(CXXFLAGS) -c -o $@ $^
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
unittests: $(TEST_OBJECTS) $(LIB_TARGET) $(SPIRIT_OBJECTS)
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) -lgtest
@ -126,11 +129,14 @@ parse_mail: parse_mail.o nfc.o $(LIB_TARGET) $(SPIRIT_OBJECTS)
install: $(TARGET)
mkdir -p $(PREFIX)/include/pEp
mkdir -p $(PREFIX)/lib
mkdir -p $(PREFIX)/bin
cp -v *.hh $(PREFIX)/include/pEp
cp -v lib*.a $(PREFIX)/lib/
cp -v $< $(PREFIX)/lib/
uninstall:
for i in *.hh; do rm -f $(PREFIX)/include/pEp/\$i ; done
echo '#TODO: uninstall is not implemented.'
clean:
rm -vf *.a *.o */*.o *.d *.d.* $(TARGET) $(TESTS) encode_decode


Loading…
Cancel
Save