Makefile revision e11c3f44f531fdff80941ce57c065d2ae861cefc
1047N/A#
1047N/A# CDDL HEADER START
1047N/A#
1047N/A# The contents of this file are subject to the terms of the
1047N/A# Common Development and Distribution License (the "License").
1047N/A# You may not use this file except in compliance with the License.
1047N/A#
1047N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1047N/A# or http://www.opensolaris.org/os/licensing.
1047N/A# See the License for the specific language governing permissions
1047N/A# and limitations under the License.
1047N/A#
1047N/A# When distributing Covered Code, include this CDDL HEADER in each
1047N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1047N/A# If applicable, add the following below this CDDL HEADER, with the
1047N/A# fields enclosed by brackets "[]" replaced with your own identifying
1047N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1047N/A#
1047N/A# CDDL HEADER END
1047N/A#
1047N/A#
1047N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1047N/A# Use is subject to license terms.
1047N/A#
1047N/A
1047N/APROG = in.mpathd
1047N/AROOTFS_PROG = $(PROG)
1047N/AOBJS = mpd_tables.o mpd_main.o mpd_probe.o
1047N/ASRCS = $(OBJS:%.o=%.c)
1047N/ADEFAULTFILES = mpathd.dfl
1047N/A
1047N/Ainclude ../../../Makefile.cmd
1047N/A
1047N/AROOTCMDDIR = $(ROOT)/lib/inet
1047N/A
1047N/APOFILE = $(PROG).po
1047N/APOFILES = $(SRCS:%.c=%.po)
1047N/A
1047N/AC99MODE = $(C99_ENABLE)
1047N/A
1047N/A#
1047N/A# We need access to the ancillary data features which are only available
1047N/A# via the SUS standards. Further, C99 support requires SUSv3 or higher.
1047N/A#
1047N/ACPPFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
1047N/ALDLIBS += -lsocket -lnsl -lsysevent -lnvpair -lipmp -linetutil -ldlpi
1047N/ALINTFLAGS += -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_ARG_USED2
1047N/A
1047N/A#
1047N/A# Instrument in.mpathd with CTF data to ease debugging.
1047N/A#
1047N/ACTFCONVERT_HOOK = && $(CTFCONVERT_O)
1047N/ACTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
1047N/A$(OBJS) := CFLAGS += $(CTF_FLAGS)
1047N/A
1047N/A.KEEP_STATE:
1047N/A
1047N/Aall: $(PROG)
1047N/A
1047N/A$(PROG): $(OBJS)
1047N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK)
1047N/A $(POST_PROCESS)
1047N/A
1047N/Ainclude ../Makefile.lib
1047N/A
1047N/A$(ROOTLIBINETPROG):
1047N/A $(RM) $@; $(SYMLINK) ../../../lib/inet/$(PROG) $@
1047N/A
1047N/A$(ROOTSBINPROG):
1047N/A $(RM) $@; $(SYMLINK) ../lib/inet/$(PROG) $@
1047N/A
1047N/Ainstall: all $(ROOTLIBINETPROG) $(ROOTSBINPROG) $(ROOTCMD) \
1047N/A $(ROOTETCDEFAULTFILES)
1047N/A
1047N/Aclean:
1047N/A $(RM) $(OBJS)
1047N/A
1047N/Alint: lint_SRCS
1047N/A
1047N/A$(POFILE): $(POFILES)
1047N/A $(RM) $@
1047N/A $(CAT) $(POFILES) > $@
1047N/A
1047N/Ainclude ../../../Makefile.targ
1047N/A