Makefile revision 6e91bba0d6c6bdabbba62cefae583715a4a58e2a
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# CDDL HEADER START
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# The contents of this file are subject to the terms of the
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Common Development and Distribution License (the "License").
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# You may not use this file except in compliance with the License.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# See the License for the specific language governing permissions
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# and limitations under the License.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# If applicable, add the following below this CDDL HEADER, with the
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# information: Portions Copyright [yyyy] [name of copyright owner]
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# CDDL HEADER END
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Use is subject to license terms.
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeCOMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:%.o=%.c)
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeCPPFLAGS += -I$(CMDINETCOMMONDIR) -I$(SRC)/common/net/dhcp
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeLDLIBS += -ldhcpagent -ldlpi -linetutil -lipmp -ldladm -lipadm
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# ifconfig uses the ancillary data feature which is available only through
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# UNIX 98 standards version of Socket interface. This interface is supposed to
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# be accessed by -lxnet. In addition -lsocket and -lnsl are used to
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# capture new not-yet-standard interfaces. Someday -lxnet alone should be
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# enough when IPv6 inspired new interfaces are part of standards.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# these #defines are required to use UNIX 98 interfaces
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye_D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__