]> git.saurik.com Git - apple/mdnsresponder.git/blob - ServiceRegistration/Makefile
mDNSResponder-1096.60.2.tar.gz
[apple/mdnsresponder.git] / ServiceRegistration / Makefile
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
3
4 BUILDDIR = build
5 OBJDIR = objects
6
7 all: setup $(BUILDDIR)/srp-simple $(BUILDDIR)/srp-gw $(BUILDDIR)/keydump $(BUILDDIR)/dnssd-proxy
8
9 # 'setup' sets up the build directory structure the way we want
10 setup:
11 @if test ! -d $(OBJDIR) ; then mkdir -p $(OBJDIR) ; fi
12 @if test ! -d $(BUILDDIR) ; then mkdir -p $(BUILDDIR) ; fi
13
14 # clean removes targets and objects
15 clean:
16 @if test -d $(OBJDIR) ; then rm -r $(OBJDIR) ; fi
17 @if test -d $(BUILDDIR) ; then rm -r $(BUILDDIR) ; fi
18
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
26
27 $(BUILDDIR)/dnssd-proxy: $(OBJDIR)/dnssd-proxy.o $(SIMPLEOBJS) $(DSOOBJS) $(MDNSOBJS) $(FROMWIREOBJS) $(IOOBJS)
28 $(CC) -o $@ $+ $(LINKOPTS)
29
30 $(BUILDDIR)/srp-simple: $(OBJDIR)/srp-simple.o $(SIMPLEOBJS)
31 $(CC) -o $@ $+ $(LINKOPTS)
32
33 $(BUILDDIR)/srp-gw: $(OBJDIR)/srp-gw.o $(SIMPLEOBJS) $(FROMWIREOBJS) $(IOOBJS)
34 $(CC) -o $@ $+ $(LINKOPTS)
35
36 $(BUILDDIR)/keydump: $(OBJDIR)/keydump.o $(SIMPLEOBJS) $(FROMWIREOBJS)
37 $(CC) -o $@ $+ $(LINKOPTS)
38
39 $(OBJDIR)/dso.o: ../DSO/dso.c
40 $(CC) -o $@ $(SRPCFLAGS) -c -I. -I../mDNSShared $<
41
42 $(OBJDIR)/dnssd_clientstub.o: ../mDNSShared/dnssd_clientstub.c
43 $(CC) -o $@ $(SRPCFLAGS) -c -I. -I../mDNSShared $<
44
45 $(OBJDIR)/dnssd_ipc.o: ../mDNSShared/dnssd_ipc.c
46 $(CC) -o $@ $(SRPCFLAGS) -c -I. -I../mDNSShared $<
47
48 $(OBJDIR)/%.o: %.c
49 $(CC) -o $@ $(SRPCFLAGS) -c $<
50
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