Makefile revision 5ffb0c9b03b5149ff4f5821a62be4a52408ada2a
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A# Copyright 2016 Toomas Soome <tsoome@me.com>
2N/A#
2N/A
2N/APROG= mdnsd
2N/AMANIFEST= multicast.xml
2N/A
2N/ACMN_DIR= $(SRC)/lib/libdns_sd/common
2N/ACMN_OBJS= dnssd_ipc.o
2N/ACMN_SRCS= $(CMN_OBJS:%.o=$(CMN_DIR)/%.c)
2N/A
2N/ALOCAL_OBJS= DNSCommon.o DNSDigest.o GenLinkedList.o \
2N/A PlatformCommon.o PosixDaemon.o \
2N/A mDNS.o mDNSDebug.o mDNSPosix.o mDNSUNP.o \
2N/A uDNS.o uds_daemon.o CryptoAlg.o anonymous.o
2N/ALOCAL_SRCS= $(LOCAL_OBJS:%.o=%.c)
2N/A
2N/ASRCS= $(LOCAL_SRCS) $(CMN_SRCS)
2N/AOBJS= $(LOCAL_OBJS) $(CMN_OBJS)
2N/A
2N/A
2N/AMDNSFLAGS= -DNOT_HAVE_SA_LEN \
2N/A -DLOG_PERROR=0 -DHAVE_SOLARIS -DTARGET_OS_SOLARIS \
2N/A -D_XPG4_2 -D__EXTENSIONS__ -DHAVE_BROKEN_RECVIF_NAME \
2N/A -DHAVE_IPV6=1 -Dasm=__asm -DMDNSD_NOROOT \
2N/A -DPID_FILE=\"\" -DMDNSD_USER=\"noaccess\" \
-DMDNS_VERSIONSTR_NODTS
include ../../../Makefile.cmd
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-implicit-function-declaration
CERRWARN += -_gcc=-Wno-uninitialized
ROOTMANIFESTDIR= $(ROOTSVCNETWORKDNS)
$(ROOTMANIFEST) := FILEMODE= 444
.PARALLEL: $(LOCAL_OBJS)
.WAIT: $(PROG)
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
include ../Makefile.lib
C99MODE = $(C99_ENABLE)
CPPFLAGS += -D_REENTRANT $(MDNSFLAGS) -I$(CMN_DIR)
LDLIBS += -lsocket -lnsl
install: all $(ROOTLIBINETPROG) $(ROOTMANIFEST)
%.o: $(CMN_DIR)/%.c
$(COMPILE.c) $(OUTPUT_OPTION) $<
$(POST_PROCESS_O)
check: $(CHKMANIFEST)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
include ../../../Makefile.targ