0b68f60abe5edd5f16546d3cb80820eb235c40c8
[openwrt.git] / package / ead / src / Makefile
1 CC = gcc
2 CPPFLAGS = -I. -Itinysrp
3 CFLAGS = -Os -Wall
4 LDFLAGS =
5 LIBS = tinysrp/libtinysrp.a
6 LIBS_EAD = $(LIBS) -lpcap
7 CONFIGURE_ARGS =
8
9 all: ead ead-client
10
11 obj = ead-crypt.o
12
13 tinysrp/Makefile:
14 cd tinysrp; ./configure $(CONFIGURE_ARGS)
15
16 tinysrp/libtinysrp.a: tinysrp/Makefile
17 -$(MAKE) -C tinysrp CFLAGS="$(CFLAGS)"
18
19 %.o: %.c $(wildcard *.h) tinysrp/libtinysrp.a
20 $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
21
22 ead.o: filter.c
23 ead-crypt.o: aes.c sha1.c
24
25 ead: ead.o $(obj) tinysrp/libtinysrp.a
26 $(CC) -o $@ $< $(obj) $(LDFLAGS) $(LIBS_EAD)
27
28 ead-client: ead-client.o $(obj)
29 $(CC) -o $@ $< $(obj) $(LDFLAGS) $(LIBS)
30
31 clean:
32 rm -f *.o ead ead-client
33 if [ -f tinysrp/Makefile ]; then $(MAKE) -C tinysrp distclean; fi
This page took 0.039593 seconds and 3 git commands to generate.