xref: /titanic_41/usr/src/cmd/cmd-inet/usr.lib/mdnsd/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
14b22b933Srs200217#
24b22b933Srs200217# CDDL HEADER START
34b22b933Srs200217#
44b22b933Srs200217# The contents of this file are subject to the terms of the
54b22b933Srs200217# Common Development and Distribution License (the "License").
64b22b933Srs200217# You may not use this file except in compliance with the License.
74b22b933Srs200217#
84b22b933Srs200217# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94b22b933Srs200217# or http://www.opensolaris.org/os/licensing.
104b22b933Srs200217# See the License for the specific language governing permissions
114b22b933Srs200217# and limitations under the License.
124b22b933Srs200217#
134b22b933Srs200217# When distributing Covered Code, include this CDDL HEADER in each
144b22b933Srs200217# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154b22b933Srs200217# If applicable, add the following below this CDDL HEADER, with the
164b22b933Srs200217# fields enclosed by brackets "[]" replaced with your own identifying
174b22b933Srs200217# information: Portions Copyright [yyyy] [name of copyright owner]
184b22b933Srs200217#
194b22b933Srs200217# CDDL HEADER END
204b22b933Srs200217#
214b22b933Srs200217# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
224b22b933Srs200217# Use is subject to license terms.
234b22b933Srs200217#
244b22b933Srs200217
254b22b933Srs200217PROG=		mdnsd
264b22b933Srs200217MANIFEST=	multicast.xml
274b22b933Srs200217
284b22b933Srs200217CMN_DIR=	$(SRC)/lib/libdns_sd/common
294b22b933Srs200217CMN_OBJS=	dnssd_ipc.o
304b22b933Srs200217CMN_SRCS=	$(CMN_OBJS:%.o=$(CMN_DIR)/%.c)
314b22b933Srs200217
324b22b933Srs200217LOCAL_OBJS=	DNSCommon.o DNSDigest.o GenLinkedList.o \
334b22b933Srs200217		PlatformCommon.o PosixDaemon.o \
344b22b933Srs200217		mDNS.o mDNSDebug.o mDNSPosix.o mDNSUNP.o \
354b22b933Srs200217		uDNS.o uds_daemon.o
364b22b933Srs200217LOCAL_SRCS=     $(LOCAL_OBJS:%.o=%.c)
374b22b933Srs200217
384b22b933Srs200217SRCS=		$(LOCAL_SRCS) $(CMN_SRCS)
394b22b933Srs200217OBJS=	 	$(LOCAL_OBJS) $(CMN_OBJS)
404b22b933Srs200217
414b22b933Srs200217
424b22b933Srs200217MDNSFLAGS=	-DNOT_HAVE_DAEMON -DNOT_HAVE_SA_LEN \
433ee6e123SRichard Lowe		-DLOG_PERROR=0 -DHAVE_SOLARIS \
444b22b933Srs200217		-D_XPG4_2 -D__EXTENSIONS__ -DHAVE_BROKEN_RECVIF_NAME \
454b22b933Srs200217		-DHAVE_IPV6=1 -Dasm=__asm -DMDNSD_NOROOT \
463b427fadSrs200217		-DPID_FILE=\"\" -DMDNSD_USER=\"noaccess\" \
473b427fadSrs200217		-DMDNS_VERSIONSTR_NODTS
484b22b933Srs200217
494b22b933Srs200217include	../../../Makefile.cmd
504b22b933Srs200217
51*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
52*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-implicit-function-declaration
53*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
54*7014882cSRichard Lowe
554b22b933Srs200217ROOTMANIFESTDIR=	$(ROOTSVCNETWORKDNS)
564b22b933Srs200217$(ROOTMANIFEST)		:= FILEMODE= 444
574b22b933Srs200217
584b22b933Srs200217.PARALLEL:      $(LOCAL_OBJS)
594b22b933Srs200217.WAIT:          $(PROG)
604b22b933Srs200217.KEEP_STATE:
614b22b933Srs200217
624b22b933Srs200217all:	$(PROG)
634b22b933Srs200217
644b22b933Srs200217$(PROG): $(OBJS)
654b22b933Srs200217	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
664b22b933Srs200217	$(POST_PROCESS)
674b22b933Srs200217
684b22b933Srs200217include ../Makefile.lib
694b22b933Srs200217
704b22b933Srs200217C99MODE = $(C99_ENABLE)
714b22b933Srs200217CPPFLAGS += -D_REENTRANT $(MDNSFLAGS) -I$(CMN_DIR)
724b22b933Srs200217LDLIBS += -lsocket -lnsl
734b22b933Srs200217
744b22b933Srs200217install:	all $(ROOTLIBINETPROG) $(ROOTMANIFEST)
754b22b933Srs200217
764b22b933Srs200217%.o:		$(CMN_DIR)/%.c
774b22b933Srs200217		$(COMPILE.c) $(OUTPUT_OPTION) $<
784b22b933Srs200217		$(POST_PROCESS_O)
794b22b933Srs200217
804b22b933Srs200217check:		$(CHKMANIFEST)
814b22b933Srs200217
824b22b933Srs200217clean:
834b22b933Srs200217	$(RM) $(OBJS)
844b22b933Srs200217
854b22b933Srs200217lint:		lint_SRCS
864b22b933Srs200217
874b22b933Srs200217include ../../../Makefile.targ
88