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# 2505ede3dbSJohn Levon# Copyright (c) 2018, Joyent, Inc. 264b22b933Srs 274b22b933SrsLIBRARY = libdns_sd.a 284b22b933SrsVERS = .1 294b22b933SrsOBJECTS = dnssd_clientlib.o dnssd_clientstub.o dnssd_ipc.o 304b22b933Srs 314b22b933Srsinclude ../../Makefile.lib 324b22b933Srs 33c65ebfc7SToomas SoomeMAPFILEDIR= ../common 34c65ebfc7SToomas SoomeSRCDIR= $(SRC)/contrib/mDNSResponder/mDNSShared 35c65ebfc7SToomas SoomeLIBS = $(DYNLIB) 364b22b933Srs 375ffb0c9bSToomas SoomeLDLIBS += -lsocket -lnsl -lc 384b22b933Srs 39bd0ce624SYuri PankovCSTD = $(CSTD_GNU99) 405ffb0c9bSToomas SoomeCPPFLAGS += -I$(SRCDIR) -DNOT_HAVE_SA_LEN -D_XPG4_2 -D__EXTENSIONS__ 41*472cd20dSToomas SoomeCPPFLAGS += -DMDNS_VERSIONSTR_NODTS -DmDNSResponderVersion=1310.80.1 427014882cSRichard Lowe 43712a34beSToomas Soomepics/dnssd_clientstub.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable 44712a34beSToomas Soome 4505ede3dbSJohn Levon# not linted 4605ede3dbSJohn LevonSMATCH=off 4705ede3dbSJohn Levon 484b22b933Srs.PARALLEL = $(OBJECTS) 494b22b933Srs.KEEP_STATE: 504b22b933Srs 514b22b933Srsall: $(LIBS) 524b22b933Srs 53c65ebfc7SToomas Soomepics/%.o: $(SRCDIR)/%.c 54c65ebfc7SToomas Soome $(COMPILE.c) -o $@ $< 55c65ebfc7SToomas Soome $(POST_PROCESS_O) 56c65ebfc7SToomas Soome 574b22b933Srsinclude ../../Makefile.targ 58