mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
33
package/ead/src/Makefile
Normal file
33
package/ead/src/Makefile
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user