mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
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.
50 lines
1.6 KiB
50 lines
1.6 KiB
CXXFLAGS += -Wall -Wno-unused-parameter -Wextra -pedantic -O0 -g -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -DOPENSSL_SUPPRESS_DEPRECATED -pthread -Wl,--unresolved-symbols=ignore-in-object-files |
|
INCFLAGS += -I../libi2pd |
|
|
|
LIBI2PD = ../libi2pd.a |
|
|
|
TESTS = \ |
|
test-http-merge_chunked test-http-req test-http-res test-http-url test-http-url_decode \ |
|
test-gost test-gost-sig test-base-64 test-x25519 test-aeadchacha20poly1305 test-blinding test-elligator |
|
|
|
LDLIBS = \ |
|
-lcrypto \ |
|
-lssl \ |
|
-lboost_filesystem \ |
|
-lboost_program_options \ |
|
-lpthread |
|
|
|
all: $(TESTS) run |
|
|
|
$(LIBI2PD): |
|
@echo "Building libi2pd.a ..." && cd .. && $(MAKE) libi2pd.a |
|
|
|
test-http-%: test-http-%.cpp $(LIBI2PD) |
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ $(LDLIBS) |
|
|
|
test-base-%: test-base-%.cpp $(LIBI2PD) |
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ $(LDLIBS) |
|
|
|
test-gost: test-gost.cpp $(LIBI2PD) |
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ $(LDLIBS) |
|
|
|
test-gost-sig: test-gost-sig.cpp $(LIBI2PD) |
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ $(LDLIBS) |
|
|
|
test-x25519: test-x25519.cpp $(LIBI2PD) |
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ $(LDLIBS) |
|
|
|
test-aeadchacha20poly1305: test-aeadchacha20poly1305.cpp $(LIBI2PD) |
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ $(LDLIBS) |
|
|
|
test-blinding: test-blinding.cpp $(LIBI2PD) |
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ $(LDLIBS) |
|
|
|
test-elligator: test-elligator.cpp $(LIBI2PD) |
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ $(LDLIBS) |
|
|
|
run: $(TESTS) |
|
@for TEST in $(TESTS); do echo Running $$TEST; ./$$TEST ; done |
|
|
|
clean: |
|
rm -f $(TESTS)
|
|
|