mirror of
https://github.com/sonertari/SSLproxy
synced 2024-11-06 09:20:26 +00:00
69753b250c
The -n command line option enables split mode for all proxyspecs, effectively making sslproxy behave like sslsplit. Divert option can be set/unset globally and per-proxyspec. Add e2e tests for split mode, and update make file for tests accordingly. Update documentation accordingly. Improve code reuse, remove duplicate functions. This change deserves a release of its own, hence v0.8.4.
86 lines
1.4 KiB
Makefile
86 lines
1.4 KiB
Makefile
SRCDIR:= src
|
|
CHECKTESTSDIR:= tests/check
|
|
TESTPROXYTESTSDIR:= tests/testproxy
|
|
|
|
TARGET:= sslproxy
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET):
|
|
$(MAKE) -C $(SRCDIR)
|
|
|
|
test: $(TARGET)
|
|
$(MAKE) unittest
|
|
$(MAKE) e2etest
|
|
|
|
unittest: $(TARGET)
|
|
$(MAKE) -C $(CHECKTESTSDIR)
|
|
|
|
e2etest: $(TARGET)
|
|
$(MAKE) -C $(TESTPROXYTESTSDIR)
|
|
|
|
e2etest_split: $(TARGET)
|
|
$(MAKE) -C $(TESTPROXYTESTSDIR) test_split
|
|
|
|
clean:
|
|
$(MAKE) -C $(SRCDIR) clean
|
|
$(MAKE) -C $(CHECKTESTSDIR) clean
|
|
|
|
travis: $(TARGET)
|
|
$(MAKE) travisunittest
|
|
$(MAKE) travise2etest
|
|
|
|
travisunittest: $(TARGET)
|
|
$(MAKE) -C $(CHECKTESTSDIR) travis
|
|
|
|
travise2etest: $(TARGET)
|
|
$(MAKE) -C $(TESTPROXYTESTSDIR) travis
|
|
|
|
install:
|
|
$(MAKE) -C $(SRCDIR) install
|
|
|
|
deinstall:
|
|
$(MAKE) -C $(SRCDIR) deinstall
|
|
|
|
lint:
|
|
$(MAKE) -C $(SRCDIR) lint
|
|
|
|
manlint:
|
|
$(MAKE) -C $(SRCDIR) manlint
|
|
|
|
mantest:
|
|
$(MAKE) -C $(SRCDIR) mantest
|
|
|
|
copyright: *.c *.h *.1 *.5 extra/*/*.c
|
|
Mk/bin/copyright.py $^
|
|
|
|
man:
|
|
$(MAKE) -C $(SRCDIR) man
|
|
|
|
manclean:
|
|
$(MAKE) -C $(SRCDIR) manclean
|
|
|
|
fetchdeps:
|
|
$(WGET) -O- $(KHASH_URL) >$(SRCDIR)/khash.h
|
|
#$(RM) -rf xnu/xnu-*
|
|
$(MAKE) -C xnu fetch
|
|
|
|
dist:
|
|
$(MAKE) -C $(SRCDIR) dist
|
|
|
|
disttest:
|
|
$(MAKE) -C $(SRCDIR) disttest
|
|
|
|
distclean:
|
|
$(MAKE) -C $(SRCDIR) distclean
|
|
|
|
realclean:
|
|
$(MAKE) -C $(SRCDIR) realclean
|
|
$(MAKE) -C $(CHECKTESTSDIR) realclean
|
|
FORCE:
|
|
|
|
.PHONY: all config clean buildtest test sudotest travis lint \
|
|
install deinstall copyright manlint mantest man manclean fetchdeps \
|
|
dist disttest distclean realclean
|
|
|