xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/dns-sd/Makefile (revision 28ab0ca48b3e331cbbb231b1c8325f9f24f9af95)
1#
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.
6#
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.
10#
11
12#
13# Copyright 2017 Toomas Soome <tsoome@me.com>
14# Copyright (c) 2018, Joyent, Inc.
15#
16
17PROG=		dns-sd
18
19include ../../../Makefile.cmd
20include ../../Makefile.cmd-inet
21
22OBJS=		ClientCommon.o dns-sd.o
23SRCS=		ClientCommon.c dns-sd.c
24
25SRCDIR=		$(SRC)/contrib/mDNSResponder
26CFLAGS += $(CSTD_GNU99)
27CPPFLAGS += -I$(SRCDIR)/mDNSShared
28CPPFLAGS += -DmDNSResponderVersion=878.1.1
29CPPFLAGS += -DMDNS_VERSIONSTR_NODTS
30LDLIBS += -lsocket -ldns_sd
31
32# not linted
33SMATCH=off
34
35.KEEP_STATE:
36
37all: $(PROG)
38
39ROOTPROG=   $(PROG:%=$(ROOTBIN)/%)
40
41$(PROG): $(OBJS)
42	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
43	$(POST_PROCESS)
44
45install: all $(ROOTPROG)
46
47clean:
48	$(RM) $(OBJS)
49
50%.o:	$(SRCDIR)/Clients/%.c
51	$(COMPILE.c) -o $@ $<
52	$(POST_PROCESS_O)
53
54include ../../../Makefile.targ
55