p≡p engine FORK
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
729 B

include ../Makefile.conf
CC?=g++ -std=gnu++11 -pthread
CXX?=g++ -std=gnu++11 -pthread
LD?=$(CXX)
LDFLAGS?=-L$(HOME)/lib
LDLIBS?=-letpan -lpEpEngine -lstdc++
CXXFLAGS?=-g -O0 -I../src
# CXXFLAGS=-O3 -DNDEBUG
ifeq ("$(OPENPGP)","NETPGP")
LDLIBS+= -lnetpgp
endif
TARGET=pEpEngineTest
UNIT_TESTS_SOURCE=$(wildcard *_test.cc)
UNIT_TESTS=$(subst .cc,,$(UNIT_TESTS_SOURCE))
all: $(TARGET) $(UNIT_TESTS)
.PHONY: clean
clean:
rm -f *.o $(TARGET) *.a *~ $(UNIT_TESTS) pep_Dokument_Titel.pdf
rm -Rf *.dSYM
test: pEpEngineTest
LD_LIBRARY_PATH=~/lib:../src ./pEpEngineTest
unit_tests: $(UNIT_TESTS)
for t in ./*_test ; do \
if LD_LIBRARY_PATH=~/lib:../src $$t ; then true; else break; fi \
done
install:
make -C .. install