1*b127ac41SPhilip Kirk# 2*b127ac41SPhilip Kirk# CDDL HEADER START 3*b127ac41SPhilip Kirk# 4*b127ac41SPhilip Kirk# The contents of this file are subject to the terms of the 5*b127ac41SPhilip Kirk# Common Development and Distribution License (the "License"). 6*b127ac41SPhilip Kirk# You may not use this file except in compliance with the License. 7*b127ac41SPhilip Kirk# 8*b127ac41SPhilip Kirk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*b127ac41SPhilip Kirk# or http://www.opensolaris.org/os/licensing. 10*b127ac41SPhilip Kirk# See the License for the specific language governing permissions 11*b127ac41SPhilip Kirk# and limitations under the License. 12*b127ac41SPhilip Kirk# 13*b127ac41SPhilip Kirk# When distributing Covered Code, include this CDDL HEADER in each 14*b127ac41SPhilip Kirk# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*b127ac41SPhilip Kirk# If applicable, add the following below this CDDL HEADER, with the 16*b127ac41SPhilip Kirk# fields enclosed by brackets "[]" replaced with your own identifying 17*b127ac41SPhilip Kirk# information: Portions Copyright [yyyy] [name of copyright owner] 18*b127ac41SPhilip Kirk# 19*b127ac41SPhilip Kirk# CDDL HEADER END 20*b127ac41SPhilip Kirk# 21*b127ac41SPhilip Kirk 22*b127ac41SPhilip Kirk# 23*b127ac41SPhilip Kirk# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24*b127ac41SPhilip Kirk# Use is subject to license terms. 25*b127ac41SPhilip Kirk# 26*b127ac41SPhilip Kirk# This makefile drives the production of the ipnet driver 27*b127ac41SPhilip Kirk# kernel module. 28*b127ac41SPhilip Kirk# 29*b127ac41SPhilip Kirk# intel architecture dependent 30*b127ac41SPhilip Kirk# 31*b127ac41SPhilip Kirk 32*b127ac41SPhilip Kirk# 33*b127ac41SPhilip Kirk# Path to the base of the uts directory tree (usually /usr/src/uts). 34*b127ac41SPhilip Kirk# 35*b127ac41SPhilip Kirk 36*b127ac41SPhilip KirkUTSBASE = ../.. 37*b127ac41SPhilip Kirk 38*b127ac41SPhilip Kirk# 39*b127ac41SPhilip Kirk# Define the module and object file sets. 40*b127ac41SPhilip Kirk# 41*b127ac41SPhilip Kirk 42*b127ac41SPhilip KirkMODULE = ipnet 43*b127ac41SPhilip KirkOBJECTS = $(IPNET_OBJS:%=$(OBJS_DIR)/%) 44*b127ac41SPhilip KirkLINTS = $(IPNET_OBJS:%.o=$(LINTS_DIR)/%.ln) 45*b127ac41SPhilip KirkROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 46*b127ac41SPhilip KirkCONF_SRCDIR = $(UTSBASE)/common/inet/ipnet 47*b127ac41SPhilip Kirk 48*b127ac41SPhilip Kirk# 49*b127ac41SPhilip Kirk# Include common rules. 50*b127ac41SPhilip Kirk# 51*b127ac41SPhilip Kirk 52*b127ac41SPhilip Kirkinclude $(UTSBASE)/intel/Makefile.intel 53*b127ac41SPhilip Kirk 54*b127ac41SPhilip Kirk# 55*b127ac41SPhilip Kirk# Define targets 56*b127ac41SPhilip Kirk# 57*b127ac41SPhilip Kirk 58*b127ac41SPhilip KirkALL_TARGET = $(BINARY) $(SRC_CONFFILE) 59*b127ac41SPhilip KirkLINT_TARGET = $(MODULE).lint 60*b127ac41SPhilip KirkINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 61*b127ac41SPhilip Kirk 62*b127ac41SPhilip Kirk# 63*b127ac41SPhilip Kirk# lint pass one enforcement 64*b127ac41SPhilip Kirk# 65*b127ac41SPhilip Kirk 66*b127ac41SPhilip KirkCFLAGS += $(CCVERBOSE) 67*b127ac41SPhilip Kirk 68*b127ac41SPhilip Kirk# 69*b127ac41SPhilip Kirk# STREAMS API limitations force us to turn off these lint checks. 70*b127ac41SPhilip Kirk# 71*b127ac41SPhilip KirkLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 72*b127ac41SPhilip KirkLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 73*b127ac41SPhilip Kirk 74*b127ac41SPhilip Kirk# 75*b127ac41SPhilip Kirk# Depends on ip, neti, and hook. 76*b127ac41SPhilip Kirk# 77*b127ac41SPhilip KirkLDFLAGS += -dy -Ndrv/ip -Nmisc/neti -Nmisc/hook 78*b127ac41SPhilip Kirk 79*b127ac41SPhilip Kirk# 80*b127ac41SPhilip Kirk# Default build targets. 81*b127ac41SPhilip Kirk# 82*b127ac41SPhilip Kirk 83*b127ac41SPhilip Kirk.KEEP_STATE: 84*b127ac41SPhilip Kirk 85*b127ac41SPhilip Kirkdef: $(DEF_DEPS) 86*b127ac41SPhilip Kirk 87*b127ac41SPhilip Kirkall: $(ALL_DEPS) 88*b127ac41SPhilip Kirk 89*b127ac41SPhilip Kirkclean: $(CLEAN_DEPS) 90*b127ac41SPhilip Kirk 91*b127ac41SPhilip Kirkclobber: $(CLOBBER_DEPS) 92*b127ac41SPhilip Kirk 93*b127ac41SPhilip Kirklint: $(LINT_DEPS) 94*b127ac41SPhilip Kirk 95*b127ac41SPhilip Kirkmodlintlib: $(MODLINTLIB_DEPS) 96*b127ac41SPhilip Kirk 97*b127ac41SPhilip Kirkclean.lint: $(CLEAN_LINT_DEPS) 98*b127ac41SPhilip Kirk 99*b127ac41SPhilip Kirkinstall: $(INSTALL_DEPS) 100*b127ac41SPhilip Kirk 101*b127ac41SPhilip Kirk# 102*b127ac41SPhilip Kirk# Include common targets. 103*b127ac41SPhilip Kirk# 104*b127ac41SPhilip Kirk 105*b127ac41SPhilip Kirkinclude $(UTSBASE)/intel/Makefile.targ 106