xref: /titanic_50/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/Makefile (revision d291d9f21e8c0417aec99de243dd48bc400002d0)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29PROG	= in.mpathd
30OBJS	= mpd_tables.o mpd_main.o mpd_probe.o
31SRCS	= $(OBJS:%.o=%.c)
32
33DEFAULTFILES = mpathd.dfl
34
35include ../../../Makefile.cmd
36
37POFILE	= $(PROG).po
38POFILES = $(SRCS:%.c=%.po)
39
40#
41# We need access to the ancillary data features which are only available
42# via UNIX98; enable the appropriate #defines for UNIX98.
43#
44CPPFLAGS += -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -I$(SRC)/cmd/cmd-inet/common
45LDLIBS	+= -lcmd -lsocket -lnsl -lsysevent -lnvpair -lipmp -lc
46
47LINTFLAGS += -erroff=E_FUNC_DECL_VAR_ARG2 -erroff=E_INCONS_VAL_TYPE_DECL2 \
48	    -erroff=E_FUNC_USED_VAR_ARG2 -erroff=E_INCONS_ARG_DECL2 \
49	    -erroff=E_NAME_USED_NOT_DEF2 -erroff=E_INCONS_ARG_USED2 \
50	    -errtags=yes
51
52.KEEP_STATE:
53
54all:		$(PROG)
55
56$(PROG):	$(OBJS)
57		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
58		$(POST_PROCESS)
59
60include ../Makefile.lib
61
62$(ROOTSBINPROG):
63		$(RM) $@; $(SYMLINK) ../usr/lib/inet/$(PROG) $@
64
65install:	all $(ROOTLIBINETPROG) $(ROOTSBINPROG) $(ROOTETCDEFAULTFILES)
66
67clean:
68		$(RM) $(OBJS)
69
70lint:		lint_SRCS
71
72$(POFILE): 	$(POFILES)
73		$(RM) $@
74		$(CAT) $(POFILES) > $@
75
76include ../../../Makefile.targ
77