i2pd/tests/Makefile

24 lines
846 B
Makefile
Raw Normal View History

CXXFLAGS += -Wall -Wextra -pedantic -O0 -g -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I../libi2pd/ -pthread
2016-04-27 03:00:00 +03:00
2017-03-21 17:45:57 +03:00
TESTS = test-gost test-gost-sig test-base-64
2016-04-27 03:00:00 +03:00
all: $(TESTS) run
test-http-%: ../libi2pd/HTTP.cpp test-http-%.cpp
2016-06-28 03:00:00 +03:00
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
test-base-%: ../libi2pd/Base.cpp test-base-%.cpp
2016-04-27 03:00:00 +03:00
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
test-gost: ../libi2pd/Gost.cpp ../libi2pd/I2PEndian.cpp test-gost.cpp
2017-03-21 16:43:36 +03:00
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto
test-gost-sig: ../libi2pd/Gost.cpp ../libi2pd/I2PEndian.cpp ../libi2pd/Signature.cpp ../libi2pd/Crypto.cpp ../libi2pd/Log.cpp test-gost-sig.cpp
2017-03-21 17:45:57 +03:00
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
2016-04-27 03:00:00 +03:00
run: $(TESTS)
@for TEST in $(TESTS); do ./$$TEST ; done
clean:
rm -f $(TESTS)