xref: /titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1dbed73cbSSangeeta Misra#
2dbed73cbSSangeeta Misra# CDDL HEADER START
3dbed73cbSSangeeta Misra#
4dbed73cbSSangeeta Misra# The contents of this file are subject to the terms of the
5dbed73cbSSangeeta Misra# Common Development and Distribution License (the "License").
6dbed73cbSSangeeta Misra# You may not use this file except in compliance with the License.
7dbed73cbSSangeeta Misra#
8dbed73cbSSangeeta Misra# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9dbed73cbSSangeeta Misra# or http://www.opensolaris.org/os/licensing.
10dbed73cbSSangeeta Misra# See the License for the specific language governing permissions
11dbed73cbSSangeeta Misra# and limitations under the License.
12dbed73cbSSangeeta Misra#
13dbed73cbSSangeeta Misra# When distributing Covered Code, include this CDDL HEADER in each
14dbed73cbSSangeeta Misra# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15dbed73cbSSangeeta Misra# If applicable, add the following below this CDDL HEADER, with the
16dbed73cbSSangeeta Misra# fields enclosed by brackets "[]" replaced with your own identifying
17dbed73cbSSangeeta Misra# information: Portions Copyright [yyyy] [name of copyright owner]
18dbed73cbSSangeeta Misra#
19dbed73cbSSangeeta Misra# CDDL HEADER END
20dbed73cbSSangeeta Misra#
21a9cb953cSSangeeta Misra# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
22dbed73cbSSangeeta Misra#
23dbed73cbSSangeeta Misra
24dbed73cbSSangeeta MisraPROG=		ilbadm
25dbed73cbSSangeeta Misra
263ae6a67dSSangeeta MisraOBJS =	ilbadm.o ilbadm_sg.o ilbadm_rules.o ilbadm_hc.o
273ae6a67dSSangeeta MisraOBJS +=	ilbadm_subr.o ilbadm_import.o ilbadm_nat.o ilbadm_stats.o
28dbed73cbSSangeeta Misra
293ae6a67dSSangeeta MisraSRCS=	$(OBJS:.o=.c)
30dbed73cbSSangeeta Misra
31dbed73cbSSangeeta Misrainclude	../../../Makefile.cmd
32a9cb953cSSangeeta Misrainclude	../../../Makefile.ctf
33dbed73cbSSangeeta Misrainclude ../../Makefile.cmd-inet
34dbed73cbSSangeeta Misra
353c112a2bSEric TaylorLDLIBS +=	-lcmdutils -lsocket -lnsl -lilb -linetutil -lkstat
36dbed73cbSSangeeta MisraCPPFLAGS +=	-I$(SRC)/lib/libilb/common -I$(SRC)/uts/common
37dbed73cbSSangeeta Misra
38*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
39*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
40*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
41*7014882cSRichard Lowe
42dbed73cbSSangeeta MisraC99MODE =	$(C99_ENABLE)
43dbed73cbSSangeeta Misra
443ae6a67dSSangeeta MisraPOFILES =	$(OBJS:%.o=%.po)
45dbed73cbSSangeeta MisraPOFILE =	$(PROG)_all.po
46dbed73cbSSangeeta Misra
47dbed73cbSSangeeta Misra.KEEP_STATE:
48dbed73cbSSangeeta Misra.PARALLEL:
49dbed73cbSSangeeta Misra
50dbed73cbSSangeeta Misraall:	$(PROG)
51dbed73cbSSangeeta Misra
52dbed73cbSSangeeta Misra$(PROG): $(OBJS)
53dbed73cbSSangeeta Misra	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
54dbed73cbSSangeeta Misra	$(POST_PROCESS)
55dbed73cbSSangeeta Misra
56dbed73cbSSangeeta Misra$(POFILE): $(POFILES)
57dbed73cbSSangeeta Misra	$(RM) $@
58dbed73cbSSangeeta Misra	cat $(POFILES) > $@
59dbed73cbSSangeeta Misra
60dbed73cbSSangeeta Misrainstall: all $(ROOTUSRSBINPROG)
61dbed73cbSSangeeta Misra
62dbed73cbSSangeeta Misraclean:
63dbed73cbSSangeeta Misra	$(RM) $(OBJS) $(POFILES)
64dbed73cbSSangeeta Misra
653ae6a67dSSangeeta Misralint:	$(SRCS)
663ae6a67dSSangeeta Misra	$(LINT.c) $(SRCS) $(LDLIBS)
67dbed73cbSSangeeta Misra
683ae6a67dSSangeeta Misracheck:	$(SRCS) $(PROG).h
693ae6a67dSSangeeta Misra	$(CSTYLE) -pP $(SRCS) $(PROG).h
70dbed73cbSSangeeta Misra	$(HDRCHK) $(PROG).h
71dbed73cbSSangeeta Misra
72dbed73cbSSangeeta Misrainclude ../../../Makefile.targ
73