diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-12-24 10:42:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-12-24 10:42:12 +0000 |
commit | 073a2a82844a0ff3fbe844c9c19be258bfb4d7fc (patch) | |
tree | 91368c1d3b51e419ca42ee0196df3553a19b976e /package/ead/src/Makefile | |
parent | dbb49737c14b89d98d06d0173bca40e08d074524 (diff) | |
download | upstream-073a2a82844a0ff3fbe844c9c19be258bfb4d7fc.tar.gz upstream-073a2a82844a0ff3fbe844c9c19be258bfb4d7fc.tar.bz2 upstream-073a2a82844a0ff3fbe844c9c19be258bfb4d7fc.zip |
add the 'ead' package (emergency access daemon),
which can provide remote access to your device, even if the ip
and firewall settings are broken
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13738 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ead/src/Makefile')
-rw-r--r-- | package/ead/src/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/package/ead/src/Makefile b/package/ead/src/Makefile new file mode 100644 index 0000000000..0b68f60abe --- /dev/null +++ b/package/ead/src/Makefile @@ -0,0 +1,33 @@ +CC = gcc +CPPFLAGS = -I. -Itinysrp +CFLAGS = -Os -Wall +LDFLAGS = +LIBS = tinysrp/libtinysrp.a +LIBS_EAD = $(LIBS) -lpcap +CONFIGURE_ARGS = + +all: ead ead-client + +obj = ead-crypt.o + +tinysrp/Makefile: + cd tinysrp; ./configure $(CONFIGURE_ARGS) + +tinysrp/libtinysrp.a: tinysrp/Makefile + -$(MAKE) -C tinysrp CFLAGS="$(CFLAGS)" + +%.o: %.c $(wildcard *.h) tinysrp/libtinysrp.a + $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ + +ead.o: filter.c +ead-crypt.o: aes.c sha1.c + +ead: ead.o $(obj) tinysrp/libtinysrp.a + $(CC) -o $@ $< $(obj) $(LDFLAGS) $(LIBS_EAD) + +ead-client: ead-client.o $(obj) + $(CC) -o $@ $< $(obj) $(LDFLAGS) $(LIBS) + +clean: + rm -f *.o ead ead-client + if [ -f tinysrp/Makefile ]; then $(MAKE) -C tinysrp distclean; fi |