Makefile revision a192e900f6d2b0e1a822e3252c0dfd795ed49d76
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ident "%Z%%M% %I% %E% SMI"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# in.ndpd uses the ancillary data feature which is available only through
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# UNIX 98 standards version of Socket interface. This interface is supposed to
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# be accessed by -lxnet. In addition -lsocket and -lnsl are used to
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# capture new not-yet-standard interfaces. Someday -lxnet alone should be enough
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# when IPv6 inspired new interfaces are part of standards.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# these #defines are required to use UNIX 98 interfaces
46472a450e043434d78fa18edc73bca8c47f3981Tinderbox User_D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# This shouldn't be necessary, but linking with libxnet requires it.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINTFLAGS += -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_VAL_TYPE_DECL2
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# This is needed to avoid littering the code with useless LINTED statements
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# for each place where pointers are casted. It's not perfect, but being
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# perfect would require a bigger rewrite.