xref: /onnv-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/Makefile (revision 5042:105442d80fa2)
14904Srs200217#
24904Srs200217# CDDL HEADER START
34904Srs200217#
44904Srs200217# The contents of this file are subject to the terms of the
54904Srs200217# Common Development and Distribution License (the "License").
64904Srs200217# You may not use this file except in compliance with the License.
74904Srs200217#
84904Srs200217# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94904Srs200217# or http://www.opensolaris.org/os/licensing.
104904Srs200217# See the License for the specific language governing permissions
114904Srs200217# and limitations under the License.
124904Srs200217#
134904Srs200217# When distributing Covered Code, include this CDDL HEADER in each
144904Srs200217# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154904Srs200217# If applicable, add the following below this CDDL HEADER, with the
164904Srs200217# fields enclosed by brackets "[]" replaced with your own identifying
174904Srs200217# information: Portions Copyright [yyyy] [name of copyright owner]
184904Srs200217#
194904Srs200217# CDDL HEADER END
204904Srs200217#
214904Srs200217# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
224904Srs200217# Use is subject to license terms.
234904Srs200217#
244904Srs200217#ident	"%Z%%M%	%I%	%E% SMI"
254904Srs200217
264904Srs200217PROG=		mdnsd
274904Srs200217MANIFEST=	multicast.xml
284904Srs200217
294904Srs200217CMN_DIR=	$(SRC)/lib/libdns_sd/common
304904Srs200217CMN_OBJS=	dnssd_ipc.o
314904Srs200217CMN_SRCS=	$(CMN_OBJS:%.o=$(CMN_DIR)/%.c)
324904Srs200217
334904Srs200217LOCAL_OBJS=	DNSCommon.o DNSDigest.o GenLinkedList.o \
344904Srs200217		PlatformCommon.o PosixDaemon.o \
354904Srs200217		mDNS.o mDNSDebug.o mDNSPosix.o mDNSUNP.o \
364904Srs200217		uDNS.o uds_daemon.o
374904Srs200217LOCAL_SRCS=     $(LOCAL_OBJS:%.o=%.c)
384904Srs200217
394904Srs200217SRCS=		$(LOCAL_SRCS) $(CMN_SRCS)
404904Srs200217OBJS=	 	$(LOCAL_OBJS) $(CMN_OBJS)
414904Srs200217
424904Srs200217
434904Srs200217MDNSFLAGS=	-DNOT_HAVE_DAEMON -DNOT_HAVE_SA_LEN \
444904Srs200217		-DLOG_PERROR=0 -DHAVE_SOLARIS -DHAVE_SOLARIS_ZONES \
454904Srs200217		-D_XPG4_2 -D__EXTENSIONS__ -DHAVE_BROKEN_RECVIF_NAME \
464904Srs200217   		-DHAVE_IPV6=1 -Dasm=__asm -DMDNSD_NOROOT \
47*5042Srs200217		-DPID_FILE=\"\" -DMDNSD_USER=\"noaccess\" \
48*5042Srs200217		-DMDNS_VERSIONSTR_NODTS
494904Srs200217
504904Srs200217include	../../../Makefile.cmd
514904Srs200217
524904Srs200217ROOTMANIFESTDIR=	$(ROOTSVCNETWORKDNS)
534904Srs200217$(ROOTMANIFEST)		:= FILEMODE= 444
544904Srs200217
554904Srs200217.PARALLEL:      $(LOCAL_OBJS)
564904Srs200217.WAIT:          $(PROG)
574904Srs200217.KEEP_STATE:
584904Srs200217
594904Srs200217all:	$(PROG)
604904Srs200217
614904Srs200217$(PROG): $(OBJS)
624904Srs200217	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
634904Srs200217	$(POST_PROCESS)
644904Srs200217
654904Srs200217include ../Makefile.lib
664904Srs200217
674904Srs200217C99MODE = $(C99_ENABLE)
684904Srs200217CPPFLAGS += -D_REENTRANT $(MDNSFLAGS) -I$(CMN_DIR)
694904Srs200217LDLIBS += -lsocket -lnsl
704904Srs200217
714904Srs200217install:	all $(ROOTLIBINETPROG) $(ROOTMANIFEST)
724904Srs200217
734904Srs200217%.o:		$(CMN_DIR)/%.c
744904Srs200217		$(COMPILE.c) $(OUTPUT_OPTION) $<
754904Srs200217		$(POST_PROCESS_O)
764904Srs200217
774904Srs200217check:		$(CHKMANIFEST)
784904Srs200217
794904Srs200217clean:
804904Srs200217	$(RM) $(OBJS)
814904Srs200217
824904Srs200217lint:		lint_SRCS
834904Srs200217
844904Srs200217include ../../../Makefile.targ
85