xref: /illumos-gate/usr/src/uts/intel/iptun/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
12b24ab6bSSebastien Roy#
22b24ab6bSSebastien Roy# CDDL HEADER START
32b24ab6bSSebastien Roy#
42b24ab6bSSebastien Roy# The contents of this file are subject to the terms of the
52b24ab6bSSebastien Roy# Common Development and Distribution License (the "License").
62b24ab6bSSebastien Roy# You may not use this file except in compliance with the License.
72b24ab6bSSebastien Roy#
82b24ab6bSSebastien Roy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92b24ab6bSSebastien Roy# or http://www.opensolaris.org/os/licensing.
102b24ab6bSSebastien Roy# See the License for the specific language governing permissions
112b24ab6bSSebastien Roy# and limitations under the License.
122b24ab6bSSebastien Roy#
132b24ab6bSSebastien Roy# When distributing Covered Code, include this CDDL HEADER in each
142b24ab6bSSebastien Roy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152b24ab6bSSebastien Roy# If applicable, add the following below this CDDL HEADER, with the
162b24ab6bSSebastien Roy# fields enclosed by brackets "[]" replaced with your own identifying
172b24ab6bSSebastien Roy# information: Portions Copyright [yyyy] [name of copyright owner]
182b24ab6bSSebastien Roy#
192b24ab6bSSebastien Roy# CDDL HEADER END
202b24ab6bSSebastien Roy#
212b24ab6bSSebastien Roy#
222b24ab6bSSebastien Roy# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
232b24ab6bSSebastien Roy# Use is subject to license terms.
242b24ab6bSSebastien Roy#
252b24ab6bSSebastien Roy
262b24ab6bSSebastien Roy#
272b24ab6bSSebastien Roy# Path to the base of the uts directory tree (usually /usr/src/uts).
282b24ab6bSSebastien Roy#
292b24ab6bSSebastien RoyUTSBASE	= ../..
302b24ab6bSSebastien Roy
312b24ab6bSSebastien Roy#
322b24ab6bSSebastien Roy# Define the module and object file sets.
332b24ab6bSSebastien Roy#
342b24ab6bSSebastien RoyMODULE		= iptun
352b24ab6bSSebastien RoyOBJECTS		= $(IPTUN_OBJS:%=$(OBJS_DIR)/%)
362b24ab6bSSebastien RoyROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
372b24ab6bSSebastien RoyCONF_SRCDIR	= $(UTSBASE)/common/inet/iptun
382b24ab6bSSebastien Roy
392b24ab6bSSebastien Roy#
402b24ab6bSSebastien Roy# Include common rules.
412b24ab6bSSebastien Roy#
422b24ab6bSSebastien Royinclude $(UTSBASE)/intel/Makefile.intel
432b24ab6bSSebastien Roy
442b24ab6bSSebastien Roy#
452b24ab6bSSebastien Roy# Define targets
462b24ab6bSSebastien Roy#
472b24ab6bSSebastien RoyALL_TARGET	= $(BINARY) $(SRC_CONFILE)
482b24ab6bSSebastien RoyINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
492b24ab6bSSebastien Roy
502b24ab6bSSebastien Roy#
512b24ab6bSSebastien Roy# Overrides
522b24ab6bSSebastien Roy#
532b24ab6bSSebastien RoyCFLAGS		+= $(CCVERBOSE)
54*82d0151aSRichard LoweLDFLAGS		+= -Ndrv/dld -Nmisc/dls -Nmisc/mac -Ndrv/ip
550a0e9771SDarren ReedINC_PATH        += -I$(UTSBASE)/common/io/bpf
562b24ab6bSSebastien Roy
572b24ab6bSSebastien Roy
587014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
597014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
60d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
617014882cSRichard Lowe
622b24ab6bSSebastien Roy#
632b24ab6bSSebastien Roy#	Default build targets.
642b24ab6bSSebastien Roy#
652b24ab6bSSebastien Roy.KEEP_STATE:
662b24ab6bSSebastien Roy
672b24ab6bSSebastien Roydef:		$(DEF_DEPS)
682b24ab6bSSebastien Roy
692b24ab6bSSebastien Royall:		$(ALL_DEPS)
702b24ab6bSSebastien Roy
712b24ab6bSSebastien Royclean:		$(CLEAN_DEPS)
722b24ab6bSSebastien Roy
732b24ab6bSSebastien Royclobber:	$(CLOBBER_DEPS)
742b24ab6bSSebastien Roy
752b24ab6bSSebastien Royinstall:	$(INSTALL_DEPS)
762b24ab6bSSebastien Roy
772b24ab6bSSebastien Roy#
782b24ab6bSSebastien Roy#	Include common targets.
792b24ab6bSSebastien Roy#
802b24ab6bSSebastien Royinclude $(UTSBASE)/intel/Makefile.targ
81