Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# The contents of this file are subject to the terms of the
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# Common Development and Distribution License (the "License").
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# You may not use this file except in compliance with the License.
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# See the License for the specific language governing permissions
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# and limitations under the License.
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# If applicable, add the following below this CDDL HEADER, with the
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# CDDL HEADER END
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews# Use is subject to license terms.
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark AndrewsCOMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:%.o=%.c)
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews# ipadm uses the ancillary data feature which is available only through
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews# UNIX 98 standards version of Socket interface. This interface is supposed to
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews# be accessed by -lxnet. In addition -lsocket is used to capture new
33d96fbbc8aa221508f3c780539bf44810fd2c9cMark Andrews# not-yet-standard interfaces. Someday -lxnet alone should be enough when IPv6
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews# inspired new interfaces are part of standards.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# these #defines are required to use UNIX 98 interfaces
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein_D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Instrument ipadm with CTF data to ease debugging.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)