i2pd/tests/Makefile

19 lines
499 B
Makefile
Raw Normal View History

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