1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-18 00:09:58 +00:00
i2pd/tests/Makefile

22 lines
616 B
Makefile
Raw Normal View History

2016-04-27 00:00:00 +00:00
CXXFLAGS += -Wall -Wextra -pedantic -O0 -g -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1
2017-03-21 09:43:36 -04:00
TESTS = test-gost test-http-url test-http-req test-http-res test-http-url_decode \
2016-06-28 00:00:00 +00:00
test-http-merge_chunked test-base-64
2016-04-27 00:00:00 +00:00
all: $(TESTS) run
2016-06-28 00:00:00 +00:00
test-http-%: ../HTTP.cpp test-http-%.cpp
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
test-base-%: ../Base.cpp test-base-%.cpp
2016-04-27 00:00:00 +00:00
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
2017-03-21 09:43:36 -04:00
test-gost: ../Gost.cpp test-gost.cpp
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto
2016-04-27 00:00:00 +00:00
run: $(TESTS)
@for TEST in $(TESTS); do ./$$TEST ; done
clean:
rm -f $(TESTS)