Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
34 lines
768 B
Makefile
34 lines
768 B
Makefile
CC = gcc
|
|
CPPFLAGS = -I. -Itinysrp
|
|
CFLAGS = -Os -Wall
|
|
LDFLAGS =
|
|
LIBS_EADCLIENT = tinysrp/libtinysrp.a
|
|
LIBS_EAD = tinysrp/libtinysrp.a -lpcap
|
|
CONFIGURE_ARGS =
|
|
|
|
all: ead ead-client
|
|
|
|
obj = ead-crypt.o libbridge_init.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_EADCLIENT)
|
|
|
|
clean:
|
|
rm -f *.o ead ead-client
|
|
if [ -f tinysrp/Makefile ]; then $(MAKE) -C tinysrp distclean; fi
|