Makefile revision a787240632bcb1404b9fd4583516b875d3f02c8b
325N/A#
325N/A# CDDL HEADER START
1276N/A#
325N/A# The contents of this file are subject to the terms of the
1549N/A# Common Development and Distribution License, Version 1.0 only
325N/A# (the "License"). You may not use this file except in compliance
325N/A# with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
325N/A#
325N/A# ident "%Z%%M% %I% %E% SMI"
325N/A#
325N/A
493N/APROG = in.mpathd
325N/AOBJS = mpd_tables.o mpd_main.o mpd_probe.o
1356N/ASRCS = $(OBJS:%.o=%.c)
1356N/A
1356N/ADEFAULTFILES = mpathd.dfl
325N/A
1549N/Ainclude ../../../Makefile.cmd
325N/A
911N/APOFILE = $(PROG).po
1549N/APOFILES = $(SRCS:%.c=%.po)
1549N/A
1549N/A#
911N/A# We need access to the ancillary data features which are only available
325N/A# via UNIX98; enable the appropriate #defines for UNIX98.
1549N/A#
325N/ACPPFLAGS += -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -I$(SRC)/cmd/cmd-inet/common
325N/ALDLIBS += -lcmd -lsocket -lnsl -lsysevent -lnvpair -lipmp -lc
325N/A
325N/ALINTFLAGS += -erroff=E_FUNC_DECL_VAR_ARG2 -erroff=E_INCONS_VAL_TYPE_DECL2 \
325N/A -erroff=E_FUNC_USED_VAR_ARG2 -erroff=E_INCONS_ARG_DECL2 \
325N/A -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_INCONS_ARG_USED2 \
493N/A -errtags=yes
493N/A
947N/A.KEEP_STATE:
325N/A
325N/Aall: $(PROG)
325N/A
493N/A$(PROG): $(OBJS)
325N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
761N/A $(POST_PROCESS)
761N/A
325N/Ainclude ../Makefile.lib
920N/A
920N/A$(ROOTSBINPROG):
325N/A $(RM) $@; $(SYMLINK) ../usr/lib/inet/$(PROG) $@
325N/A
325N/Ainstall: all $(ROOTLIBINETPROG) $(ROOTSBINPROG) $(ROOTETCDEFAULTFILES)
325N/A
970N/Aclean:
970N/A $(RM) $(OBJS)
970N/A
325N/Alint: lint_SRCS
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
include ../../../Makefile.targ