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