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