xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/dns-sd/Makefile (revision c023f651c0471d0024cb0a436d1f77bf37350180)
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
29LDLIBS += -lsocket -ldns_sd
30
31# not linted
32SMATCH=off
33
34.KEEP_STATE:
35
36all: $(PROG)
37
38ROOTPROG=   $(PROG:%=$(ROOTBIN)/%)
39
40$(PROG): $(OBJS)
41	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
42	$(POST_PROCESS)
43
44install: all $(ROOTPROG)
45
46clean:
47	$(RM) $(OBJS)
48
49%.o:	$(SRCDIR)/Clients/%.c
50	$(COMPILE.c) -o $@ $<
51	$(POST_PROCESS_O)
52
53include ../../../Makefile.targ
54