14b22b933Srs#
24b22b933Srs# CDDL HEADER START
34b22b933Srs#
44b22b933Srs# The contents of this file are subject to the terms of the
54b22b933Srs# Common Development and Distribution License (the "License").
64b22b933Srs# You may not use this file except in compliance with the License.
74b22b933Srs#
84b22b933Srs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94b22b933Srs# or http://www.opensolaris.org/os/licensing.
104b22b933Srs# See the License for the specific language governing permissions
114b22b933Srs# and limitations under the License.
124b22b933Srs#
134b22b933Srs# When distributing Covered Code, include this CDDL HEADER in each
144b22b933Srs# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154b22b933Srs# If applicable, add the following below this CDDL HEADER, with the
164b22b933Srs# fields enclosed by brackets "[]" replaced with your own identifying
174b22b933Srs# information: Portions Copyright [yyyy] [name of copyright owner]
184b22b933Srs#
194b22b933Srs# CDDL HEADER END
204b22b933Srs#
214b22b933Srs# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
224b22b933Srs# Use is subject to license terms.
235ffb0c9bSToomas Soome# Copyright 2016 Toomas Soome <tsoome@me.com>
244b22b933Srs#
254b22b933Srs
264b22b933SrsLIBRARY =	libdns_sd.a
274b22b933SrsVERS =		.1
284b22b933SrsOBJECTS =	dnssd_clientlib.o dnssd_clientstub.o dnssd_ipc.o
294b22b933Srs
304b22b933Srsinclude ../../Makefile.lib
314b22b933Srs
32*c65ebfc7SToomas SoomeMAPFILEDIR=	../common
33*c65ebfc7SToomas SoomeSRCDIR=		$(SRC)/contrib/mDNSResponder/mDNSShared
34*c65ebfc7SToomas SoomeLIBS =		$(DYNLIB)
354b22b933Srs
365ffb0c9bSToomas SoomeLDLIBS +=	-lsocket -lnsl -lc
374b22b933Srs
38bd0ce624SYuri PankovCSTD =	$(CSTD_GNU99)
395ffb0c9bSToomas SoomeCPPFLAGS +=	-I$(SRCDIR) -DNOT_HAVE_SA_LEN -D_XPG4_2 -D__EXTENSIONS__
40c1de7575SRichard LoweCPPFLAGS +=	-DMDNS_VERSIONSTR_NODTS
417014882cSRichard Lowe
42712a34beSToomas Soomepics/dnssd_clientstub.o := CERRWARN +=	-_gcc=-Wno-unused-but-set-variable
43712a34beSToomas Soome
444b22b933Srs.PARALLEL =     $(OBJECTS)
454b22b933Srs.KEEP_STATE:
464b22b933Srs
474b22b933Srsall: $(LIBS)
484b22b933Srs
49*c65ebfc7SToomas Soomepics/%.o:	$(SRCDIR)/%.c
50*c65ebfc7SToomas Soome	$(COMPILE.c) -o $@ $<
51*c65ebfc7SToomas Soome	$(POST_PROCESS_O)
52*c65ebfc7SToomas Soome
534b22b933Srsinclude ../../Makefile.targ
54