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 RoyLINTS = $(IPTUN_OBJS:%.o=$(LINTS_DIR)/%.ln) 372b24ab6bSSebastien RoyROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 382b24ab6bSSebastien RoyCONF_SRCDIR = $(UTSBASE)/common/inet/iptun 392b24ab6bSSebastien Roy 402b24ab6bSSebastien Roy# 412b24ab6bSSebastien Roy# Include common rules. 422b24ab6bSSebastien Roy# 432b24ab6bSSebastien Royinclude $(UTSBASE)/sparc/Makefile.sparc 442b24ab6bSSebastien Roy 452b24ab6bSSebastien Roy# 462b24ab6bSSebastien Roy# Define targets 472b24ab6bSSebastien Roy# 482b24ab6bSSebastien RoyALL_TARGET = $(BINARY) $(SRC_CONFILE) 492b24ab6bSSebastien RoyLINT_TARGET = $(MODULE).lint 502b24ab6bSSebastien RoyINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 512b24ab6bSSebastien Roy 522b24ab6bSSebastien Roy# 532b24ab6bSSebastien Roy# Overrides 542b24ab6bSSebastien Roy# 552b24ab6bSSebastien RoyCFLAGS += $(CCVERBOSE) 562b24ab6bSSebastien RoyLDFLAGS += -dy -Ndrv/dld -Nmisc/dls -Nmisc/mac -Ndrv/ip 57*0a0e9771SDarren ReedINC_PATH += -I$(UTSBASE)/common/io/bpf 582b24ab6bSSebastien Roy 592b24ab6bSSebastien RoyLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 602b24ab6bSSebastien RoyLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 612b24ab6bSSebastien Roy 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 Roylint: $(LINT_DEPS) 762b24ab6bSSebastien Roy 772b24ab6bSSebastien Roymodlintlib: $(MODLINTLIB_DEPS) 782b24ab6bSSebastien Roy 792b24ab6bSSebastien Royclean.lint: $(CLEAN_LINT_DEPS) 802b24ab6bSSebastien Roy 812b24ab6bSSebastien Royinstall: $(INSTALL_DEPS) 822b24ab6bSSebastien Roy 832b24ab6bSSebastien Roy# 842b24ab6bSSebastien Roy# Include common targets. 852b24ab6bSSebastien Roy# 862b24ab6bSSebastien Royinclude $(UTSBASE)/sparc/Makefile.targ 87