2008-12-24 10:42:12 +00:00
|
|
|
CC = gcc
|
|
|
|
CPPFLAGS = -I. -Itinysrp
|
|
|
|
CFLAGS = -Os -Wall
|
|
|
|
LDFLAGS =
|
2009-06-03 13:53:15 +00:00
|
|
|
LIBS_EADCLIENT = tinysrp/libtinysrp.a
|
|
|
|
LIBS_EAD = tinysrp/libtinysrp.a -lpcap
|
2008-12-24 10:42:12 +00:00
|
|
|
CONFIGURE_ARGS =
|
|
|
|
|
|
|
|
all: ead ead-client
|
|
|
|
|
2015-03-29 04:30:05 +00:00
|
|
|
obj = ead-crypt.o libbridge_init.o
|
2008-12-24 10:42:12 +00:00
|
|
|
|
|
|
|
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)
|
2009-06-03 13:53:15 +00:00
|
|
|
$(CC) -o $@ $< $(obj) $(LDFLAGS) $(LIBS_EADCLIENT)
|
2008-12-24 10:42:12 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o ead ead-client
|
|
|
|
if [ -f tinysrp/Makefile ]; then $(MAKE) -C tinysrp distclean; fi
|