Makefile revision da14cebe459d3275048785f25bd869cb09b5307f
388N/A#
3827N/A# CDDL HEADER START
671N/A#
671N/A# The contents of this file are subject to the terms of the
671N/A# Common Development and Distribution License (the "License").
671N/A# You may not use this file except in compliance with the License.
671N/A#
671N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
671N/A# or http://www.opensolaris.org/os/licensing.
671N/A# See the License for the specific language governing permissions
671N/A# and limitations under the License.
671N/A#
671N/A# When distributing Covered Code, include this CDDL HEADER in each
671N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
671N/A# If applicable, add the following below this CDDL HEADER, with the
671N/A# fields enclosed by brackets "[]" replaced with your own identifying
671N/A# information: Portions Copyright [yyyy] [name of copyright owner]
671N/A#
671N/A# CDDL HEADER END
671N/A#
873N/A#
671N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
671N/A# Use is subject to license terms.
671N/A#
671N/A#
5061N/A
5369N/APROG = ifconfig
671N/AROOTFS_PROG = $(PROG)
388N/ALOCALOBJS= ifconfig.o revarp.o
671N/ACOMMONOBJS= compat.o
388N/AOBJS= $(LOCALOBJS) $(COMMONOBJS)
671N/A
3816N/Ainclude ../../../Makefile.cmd
1372N/Ainclude ../../Makefile.cmd-inet
2055N/A
2055N/ALOCALSRCS= $(LOCALOBJS:%.o=%.c)
3816N/ACOMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:%.o=%.c)
1783N/ASRCS= $(LOCALSRCS) $(COMMONSRCS)
3816N/A
3816N/ACPPFLAGS += -I$(CMDINETCOMMONDIR) -I$(SRC)/common/net/dhcp
3817N/ALDLIBS += -ldhcpagent -linetcfg -ldlpi -ldladm
5061N/ALINTFLAGS += -m
5061N/A
5061N/AROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
5061N/A
2851N/A# ifconfig uses the ancillary data feature which is available only through
4974N/A# UNIX 98 standards version of Socket interface. This interface is supposed to
5105N/A# be accessed by -lxnet. In addition -lsocket and -lnsl are used to
4974N/A# capture new not-yet-standard interfaces. Someday -lxnet alone should be
4974N/A# enough when IPv6 inspired new interfaces are part of standards.
4974N/ALDLIBS += -lxnet -lsocket -lnsl
4974N/A
5105N/A# these #defines are required to use UNIX 98 interfaces
5369N/A_D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
5105N/A
5105N/A$(OBJS) := CPPFLAGS += $(_D_UNIX98_EXTN)
5105N/A
5105N/ALINTFLAGS += $(_D_UNIX98_EXTN)
4777N/A
4974N/A.KEEP_STATE:
4974N/A
2922N/Aall: $(ROOTFS_PROG)
5105N/A
5105N/A$(PROG): $(OBJS)
5061N/A $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
5061N/A $(POST_PROCESS)
5105N/A
5061N/Ainstall: all $(ROOTSBINPROG) $(ROOTUSRSBINLINKS)
5061N/A
5061N/A$(ROOTUSRSBINLINKS):
5061N/A -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
5061N/A
5061N/Aclean:
5105N/A $(RM) $(OBJS)
5105N/A
5061N/Alint: lint_SRCS
5061N/A
5061N/Ainclude ../../../Makefile.targ
5061N/A