Makefile revision 06e1a7147edd272b7296f208141627a5b1191731
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf#
1366443dc565c33e7b449ae428bbfc4c86f33935drh# The contents of this file are subject to the terms of the
1366443dc565c33e7b449ae428bbfc4c86f33935drh# Common Development and Distribution License (the "License").
88fac54d9d64f85bbdab5d7010816f4377f95bd7rjung# You may not use this file except in compliance with the License.
88fac54d9d64f85bbdab5d7010816f4377f95bd7rjung#
c896413ef7cc4cf8cea20c6783d0a93a9d77dc21jailletc# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c896413ef7cc4cf8cea20c6783d0a93a9d77dc21jailletc# or http://www.opensolaris.org/os/licensing.
c896413ef7cc4cf8cea20c6783d0a93a9d77dc21jailletc# See the License for the specific language governing permissions
bd3f5647b96d378d9c75c954e3f13582af32c643sf# and limitations under the License.
bd3f5647b96d378d9c75c954e3f13582af32c643sf#
bd3f5647b96d378d9c75c954e3f13582af32c643sf# When distributing Covered Code, include this CDDL HEADER in each
bd3f5647b96d378d9c75c954e3f13582af32c643sf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bd3f5647b96d378d9c75c954e3f13582af32c643sf# If applicable, add the following below this CDDL HEADER, with the
2a7beea91d46beb41f043a84eaad060047ee04aafabien# fields enclosed by brackets "[]" replaced with your own identifying
2a7beea91d46beb41f043a84eaad060047ee04aafabien# information: Portions Copyright [yyyy] [name of copyright owner]
2a7beea91d46beb41f043a84eaad060047ee04aafabien#
2a7beea91d46beb41f043a84eaad060047ee04aafabien# CDDL HEADER END
9e430d18dde58791589bd699416c8319560dd067jim#
9e430d18dde58791589bd699416c8319560dd067jim#
9e430d18dde58791589bd699416c8319560dd067jim# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
584a85dd4047e38d3ed3a29b6662fcc9d100ae4csf# Use is subject to license terms.
584a85dd4047e38d3ed3a29b6662fcc9d100ae4csf#
584a85dd4047e38d3ed3a29b6662fcc9d100ae4csf# ident "%Z%%M% %I% %E% SMI"
f21e9e3d0bfb7a507ecc5bc963f2159d693503d1sf#
f21e9e3d0bfb7a507ecc5bc963f2159d693503d1sf
f21e9e3d0bfb7a507ecc5bc963f2159d693503d1sfPROG = ifconfig
7f40ab64e74b7d1057b5ee6abc349e32e74b1b4cjimROOTFS_PROG = $(PROG)
7f40ab64e74b7d1057b5ee6abc349e32e74b1b4cjimLOCALOBJS= ifconfig.o revarp.o
7f40ab64e74b7d1057b5ee6abc349e32e74b1b4cjimCOMMONOBJS= compat.o
f6b9c755a0b793e8a3a3aebd327ca20a86478117sfOBJS= $(LOCALOBJS) $(COMMONOBJS)
f6b9c755a0b793e8a3a3aebd327ca20a86478117sf
f6b9c755a0b793e8a3a3aebd327ca20a86478117sfinclude ../../../Makefile.cmd
132ee6ac1c26d6e8953836316ba50734eefab47bsfinclude ../../Makefile.cmd-inet
132ee6ac1c26d6e8953836316ba50734eefab47bsf
132ee6ac1c26d6e8953836316ba50734eefab47bsfLOCALSRCS= $(LOCALOBJS:%.o=%.c)
132ee6ac1c26d6e8953836316ba50734eefab47bsfCOMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:%.o=%.c)
497e47ed2aaf97b229bd29a8bdd15f5927dc50e6sfSRCS= $(LOCALSRCS) $(COMMONSRCS)
497e47ed2aaf97b229bd29a8bdd15f5927dc50e6sf
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsfCPPFLAGS += -I$(CMDINETCOMMONDIR) -I$(SRC)/common/net/dhcp
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsfLDLIBS += -ldevinfo -ldhcpagent -linetcfg -ldlpi
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsfLINTFLAGS += -m
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsf
4f517d09c93a552f177f49ff97e93aa44eb127ebcovenerROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
4f517d09c93a552f177f49ff97e93aa44eb127ebcovener
4f517d09c93a552f177f49ff97e93aa44eb127ebcovener# ifconfig uses the ancillary data feature which is available only through
4f517d09c93a552f177f49ff97e93aa44eb127ebcovener# UNIX 98 standards version of Socket interface. This interface is supposed to
6736c640e65e06990ef33af71ee81fac4df4ff5fjim# be accessed by -lxnet. In addition -lsocket and -lnsl are used to
cc45ee60ddfb8380b3703455098475eb72625ca8jim# capture new not-yet-standard interfaces. Someday -lxnet alone should be
20eead0b01d51fce0cc17d04b8f98ec38eac68aejim# enough when IPv6 inspired new interfaces are part of standards.
cc45ee60ddfb8380b3703455098475eb72625ca8jimLDLIBS += -lxnet -lsocket -lnsl
cc45ee60ddfb8380b3703455098475eb72625ca8jim
46e5dfe0899face9346d6711e4f2ba873d526991sf# these #defines are required to use UNIX 98 interfaces
46e5dfe0899face9346d6711e4f2ba873d526991sf_D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
46e5dfe0899face9346d6711e4f2ba873d526991sf
fc1459657a1fde206a847f9028930725d715f8b4trawick$(OBJS) := CPPFLAGS += $(_D_UNIX98_EXTN)
fc1459657a1fde206a847f9028930725d715f8b4trawick
fc1459657a1fde206a847f9028930725d715f8b4trawickLINTFLAGS += $(_D_UNIX98_EXTN)
85eacfc96a04547ef25aabbc06440039715084c2jorton
85eacfc96a04547ef25aabbc06440039715084c2jorton.KEEP_STATE:
85eacfc96a04547ef25aabbc06440039715084c2jorton
f34da68471f256dca0ff770257c3e1f982f74cf1trawickall: $(ROOTFS_PROG)
f34da68471f256dca0ff770257c3e1f982f74cf1trawick
f34da68471f256dca0ff770257c3e1f982f74cf1trawick$(PROG): $(OBJS)
68ba377fc3b124baa759662077c48077ebadb186minfrin $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
68ba377fc3b124baa759662077c48077ebadb186minfrin $(POST_PROCESS)
68ba377fc3b124baa759662077c48077ebadb186minfrin
68ba377fc3b124baa759662077c48077ebadb186minfrininstall: all $(ROOTSBINPROG) $(ROOTUSRSBINLINKS)
d776b0a2d2889ce1d13494873368f34327a2e1bbtrawick
d776b0a2d2889ce1d13494873368f34327a2e1bbtrawick$(ROOTUSRSBINLINKS):
f4ca9f6f002fece336168a16355434ca966f96a9trawick -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
57db302f0875a6c93a79333b8941cea4c1827272jim
57db302f0875a6c93a79333b8941cea4c1827272jimclean:
57db302f0875a6c93a79333b8941cea4c1827272jim $(RM) $(OBJS)
57db302f0875a6c93a79333b8941cea4c1827272jim
92b1631880b0bf43fe8b2663a03c8571eb04e433jimlint: lint_SRCS
92b1631880b0bf43fe8b2663a03c8571eb04e433jim
92b1631880b0bf43fe8b2663a03c8571eb04e433jiminclude ../../../Makefile.targ
78f94f1d06c4e6828ce04d618221e0fcecb57849humbedooh