11# CXX = clang++
2- CXXFLAGS = -g -std=c++11 -I. -I.. - Wall -Wextra -Wtype-limits -Wconversion # -fsanitize=address
2+ CXXFLAGS = -g -std=c++11 -I. -Wall -Wextra -Wtype-limits -Wconversion # -fsanitize=address
33
44OPENSSL_DIR = /usr/local/opt/
[email protected] 55OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I$(OPENSSL_DIR ) /include -L$(OPENSSL_DIR ) /lib -lssl -lcrypto
@@ -26,15 +26,15 @@ proxy : test_proxy
2626 ./test_proxy
2727
2828test : test.cc include_httplib.cc ../httplib.h Makefile cert.pem
29- $(CXX ) -o $@ $(CXXFLAGS ) test.cc include_httplib.cc $(TEST_ARGS )
29+ $(CXX ) -o $@ -I.. $(CXXFLAGS ) test.cc include_httplib.cc $(TEST_ARGS )
3030
3131# Note: The intention of test_split is to verify that it works to compile and
3232# link the split httplib.h, so there is normally no need to execute it.
3333test_split : test.cc ../httplib.h httplib.cc Makefile cert.pem
3434 $(CXX ) -o $@ $(CXXFLAGS ) test.cc httplib.cc $(TEST_ARGS )
3535
3636test_proxy : test_proxy.cc ../httplib.h Makefile cert.pem
37- $(CXX ) -o $@ $(CXXFLAGS ) test_proxy.cc $(TEST_ARGS )
37+ $(CXX ) -o $@ -I.. $(CXXFLAGS ) test_proxy.cc $(TEST_ARGS )
3838
3939# Runs server_fuzzer.cc based on value of $(LIB_FUZZING_ENGINE).
4040# Usage: make fuzz_test LIB_FUZZING_ENGINE=/path/to/libFuzzer
@@ -43,12 +43,12 @@ fuzz_test: server_fuzzer
4343
4444# Fuzz target, so that you can choose which $(LIB_FUZZING_ENGINE) to use.
4545server_fuzzer : fuzzing/server_fuzzer.cc ../httplib.h standalone_fuzz_target_runner.o
46- $(CXX ) $( CXXFLAGS ) -o $@ $ < $(OPENSSL_SUPPORT ) $(ZLIB_SUPPORT ) $(BROTLI_SUPPORT ) $(LIB_FUZZING_ENGINE ) -pthread
46+ $(CXX ) -o $@ -I.. $( CXXFLAGS ) $ < $(OPENSSL_SUPPORT ) $(ZLIB_SUPPORT ) $(BROTLI_SUPPORT ) $(LIB_FUZZING_ENGINE ) -pthread
4747
4848# Standalone fuzz runner, which just reads inputs from fuzzing/corpus/ dir and
4949# feeds it to server_fuzzer.
5050standalone_fuzz_target_runner.o : fuzzing/standalone_fuzz_target_runner.cpp
51- $(CXX ) $ (CXXFLAGS ) -c -o $@ $<
51+ $(CXX ) -o $@ -I.. $ (CXXFLAGS ) -c $<
5252
5353httplib.cc : ../httplib.h
5454 python3 ../split.py -o .
0 commit comments