Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / cmd / cmd-inet / usr.bin / dns-sd / Makefile
blob3c29dcc8b1e192e937a2ad75946d32d84786d541
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2017 Toomas Soome <tsoome@me.com>
14 # Copyright (c) 2018, Joyent, Inc.
17 PROG= dns-sd
19 include ../../../Makefile.cmd
20 include ../../Makefile.cmd-inet
22 OBJS= ClientCommon.o dns-sd.o
23 SRCS= ClientCommon.c dns-sd.c
25 SRCDIR= $(SRC)/contrib/mDNSResponder
26 CFLAGS += $(CSTD_GNU99)
27 CPPFLAGS += -I$(SRCDIR)/mDNSShared
28 CPPFLAGS += -DMDNS_VERSIONSTR_NODTS
29 LDLIBS += -ldns_sd
31 # not linted
32 SMATCH=off
34 .KEEP_STATE:
36 all: $(PROG)
38 ROOTPROG= $(PROG:%=$(ROOTBIN)/%)
40 $(PROG): $(OBJS)
41 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
42 $(POST_PROCESS)
44 install: all $(ROOTPROG)
46 clean:
47 $(RM) $(OBJS)
49 %.o: $(SRCDIR)/Clients/%.c
50 $(COMPILE.c) -o $@ $<
51 $(POST_PROCESS_O)
53 include ../../../Makefile.targ