1 SRPCFLAGS = -O0 -g -Wall -Werror -DSTANDALONE -I../mDNSCore -I/usr/local/include -I. -I../mDNSShared -I../DSO -MMD -MF .depfile-${notdir $<}
2 LINKOPTS = -lmbedcrypto
7 all: setup $(BUILDDIR)/srp-simple $(BUILDDIR)/srp-gw $(BUILDDIR)/keydump $(BUILDDIR)/dnssd-proxy
9 # 'setup' sets up the build directory structure the way we want
11 @if test ! -d $(OBJDIR) ; then mkdir -p $(OBJDIR) ; fi
12 @if test ! -d $(BUILDDIR) ; then mkdir -p $(BUILDDIR) ; fi
14 # clean removes targets and objects
16 @if test -d $(OBJDIR) ; then rm -r $(OBJDIR) ; fi
17 @if test -d $(BUILDDIR) ; then rm -r $(BUILDDIR) ; fi
19 SIGNOBJS = $(OBJDIR)/sign-mbedtls.o
20 SIMPLEOBJS = $(OBJDIR)/towire.o $(SIGNOBJS)
21 DSOOBJS = $(OBJDIR)/dso.o
22 MDNSOBJS = $(OBJDIR)/dnssd_clientstub.o $(OBJDIR)/dnssd_ipc.o
23 VERIFYOBJS = $(OBJDIR)/verify-mbedtls.o
24 FROMWIREOBJS = $(OBJDIR)/fromwire.o $(VERIFYOBJS)
25 IOOBJS = $(OBJDIR)/ioloop.o
27 $(BUILDDIR)/dnssd-proxy: $(OBJDIR)/dnssd-proxy.o $(SIMPLEOBJS) $(DSOOBJS) $(MDNSOBJS) $(FROMWIREOBJS) $(IOOBJS)
28 $(CC) -o $@ $+ $(LINKOPTS)
30 $(BUILDDIR)/srp-simple: $(OBJDIR)/srp-simple.o $(SIMPLEOBJS)
31 $(CC) -o $@ $+ $(LINKOPTS)
33 $(BUILDDIR)/srp-gw: $(OBJDIR)/srp-gw.o $(SIMPLEOBJS) $(FROMWIREOBJS) $(IOOBJS)
34 $(CC) -o $@ $+ $(LINKOPTS)
36 $(BUILDDIR)/keydump: $(OBJDIR)/keydump.o $(SIMPLEOBJS) $(FROMWIREOBJS)
37 $(CC) -o $@ $+ $(LINKOPTS)
39 $(OBJDIR)/dso.o: ../DSO/dso.c
40 $(CC) -o $@ $(SRPCFLAGS) -c -I. -I../mDNSShared $<
42 $(OBJDIR)/dnssd_clientstub.o: ../mDNSShared/dnssd_clientstub.c
43 $(CC) -o $@ $(SRPCFLAGS) -c -I. -I../mDNSShared $<
45 $(OBJDIR)/dnssd_ipc.o: ../mDNSShared/dnssd_ipc.c
46 $(CC) -o $@ $(SRPCFLAGS) -c -I. -I../mDNSShared $<
49 $(CC) -o $@ $(SRPCFLAGS) -c $<
51 -include .depfile-dnssd-proxy.c
52 -include .depfile-fromwire.c
53 -include .depfile-ioloop.c
54 -include .depfile-keydump.c
55 -include .depfile-sign-mbedtls.c
56 -include .depfile-srp-gw.c
57 -include .depfile-srp-simple.c
58 -include .depfile-towire.c
59 -include .depfile-verify-mbedtls.c
60 -include .depfile-dso.c