diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..1580fd8 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,26 @@ +# these will be installed in BINDIR +bin_PROGRAMS = dag_scrubber #scramble_ips +#dist_bin_SCRIPTS = lander_reanonymize + +dag_scrubber_SOURCES = dag_scrubber.c cryptopANT.c cryptopANT.h +dag_scrubber_SOURCES += patricia.c patricia.h +dag_scrubber_SOURCES += scramble_wlw.c scramble_wlw.h +#scramble_ips_SOURCES = scramble_ips.c cryptopANT.c cryptopANT.h +AM_LDFLAGS= -lcrypto -lpcap + +RPMBUILD_SRC = ~/rpmbuild/SOURCES/$(distdir).tar.gz +RPMBUILD_SPEC = ~/rpmbuild/SPECS/dag_scrubber.spec + +#validate: scramble_ips keyfile +# @./scramble_ips keyfile <ip4s | ./scramble_ips -r keyfile | cmp -l ip4s - \ +# && echo "ipv4 scrambling/descrambling validation passed" \ +# || echo "ipv4 scrambling/descrambling failed" +# @./scramble_ips keyfile <ip6s | ./scramble_ips -r keyfile | cmp -l ip6s - \ +# && echo "ipv6 scrambling/descrambling validation passed" \ +# || echo "ipv6 scrambling/descrambling failed" + +.PHONY: rpmbuild +rpmbuild: dist-gzip + cp dag_scrubber.spec $(RPMBUILD_SPEC) + cp $(distdir).tar.gz $(RPMBUILD_SRC) + rpmbuild -ba $(RPMBUILD_SPEC) |