1*0a0e9771SDarren Reed# 2*0a0e9771SDarren Reed# CDDL HEADER START 3*0a0e9771SDarren Reed# 4*0a0e9771SDarren Reed# The contents of this file are subject to the terms of the 5*0a0e9771SDarren Reed# Common Development and Distribution License (the "License"). 6*0a0e9771SDarren Reed# You may not use this file except in compliance with the License. 7*0a0e9771SDarren Reed# 8*0a0e9771SDarren Reed# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*0a0e9771SDarren Reed# or http://www.opensolaris.org/os/licensing. 10*0a0e9771SDarren Reed# See the License for the specific language governing permissions 11*0a0e9771SDarren Reed# and limitations under the License. 12*0a0e9771SDarren Reed# 13*0a0e9771SDarren Reed# When distributing Covered Code, include this CDDL HEADER in each 14*0a0e9771SDarren Reed# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*0a0e9771SDarren Reed# If applicable, add the following below this CDDL HEADER, with the 16*0a0e9771SDarren Reed# fields enclosed by brackets "[]" replaced with your own identifying 17*0a0e9771SDarren Reed# information: Portions Copyright [yyyy] [name of copyright owner] 18*0a0e9771SDarren Reed# 19*0a0e9771SDarren Reed# CDDL HEADER END 20*0a0e9771SDarren Reed# 21*0a0e9771SDarren Reed# 22*0a0e9771SDarren Reed# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*0a0e9771SDarren Reed# Use is subject to license terms. 24*0a0e9771SDarren Reed# 25*0a0e9771SDarren Reed# uts/intel/bpf/Makefile 26*0a0e9771SDarren Reed# 27*0a0e9771SDarren Reed# 28*0a0e9771SDarren Reed# This makefile drives the production of the bpf driver 29*0a0e9771SDarren Reed# kernel module. 30*0a0e9771SDarren Reed# 31*0a0e9771SDarren Reed# intel architecture dependent 32*0a0e9771SDarren Reed# 33*0a0e9771SDarren Reed 34*0a0e9771SDarren Reed# 35*0a0e9771SDarren Reed# Path to the base of the uts directory tree (usually /usr/src/uts). 36*0a0e9771SDarren Reed# 37*0a0e9771SDarren ReedUTSBASE = ../.. 38*0a0e9771SDarren Reed 39*0a0e9771SDarren Reed# 40*0a0e9771SDarren Reed# Define the module and object file sets. 41*0a0e9771SDarren Reed# 42*0a0e9771SDarren ReedMODULE = bpf 43*0a0e9771SDarren ReedOBJECTS = $(BPF_OBJS:%=$(OBJS_DIR)/%) 44*0a0e9771SDarren ReedLINTS = $(BPF_OBJS:%.o=$(LINTS_DIR)/%.ln) 45*0a0e9771SDarren ReedROOTMODULE = $(USR_DRV_DIR)/$(MODULE) 46*0a0e9771SDarren ReedCONF_SRCDIR = $(UTSBASE)/common/io/bpf 47*0a0e9771SDarren Reed 48*0a0e9771SDarren Reed# 49*0a0e9771SDarren Reed# Include common rules. 50*0a0e9771SDarren Reed# 51*0a0e9771SDarren Reedinclude $(UTSBASE)/intel/Makefile.intel 52*0a0e9771SDarren Reed 53*0a0e9771SDarren Reed# 54*0a0e9771SDarren Reed# Define targets 55*0a0e9771SDarren Reed# 56*0a0e9771SDarren ReedALL_TARGET = $(BINARY) $(SRC_CONFFILE) 57*0a0e9771SDarren ReedLINT_TARGET = $(MODULE).lint 58*0a0e9771SDarren ReedINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 59*0a0e9771SDarren Reed 60*0a0e9771SDarren Reed# 61*0a0e9771SDarren Reed# 62*0a0e9771SDarren ReedCFLAGS += $(CCVERBOSE) 63*0a0e9771SDarren ReedLDFLAGS += -dy -Nmisc/mac -Nmisc/dls -Ndrv/ipnet -Nmisc/neti 64*0a0e9771SDarren ReedINC_PATH += -I$(UTSBASE)/common/io/bpf 65*0a0e9771SDarren Reed 66*0a0e9771SDarren Reed# 67*0a0e9771SDarren Reed# For now, disable these lint checks; maintainers should endeavor 68*0a0e9771SDarren Reed# to investigate and remove these for maximum lint coverage. 69*0a0e9771SDarren Reed# Please do not carry these forward to new Makefiles. 70*0a0e9771SDarren Reed# 71*0a0e9771SDarren ReedLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -erroff=E_BAD_PTR_CAST_ALIGN 72*0a0e9771SDarren Reed 73*0a0e9771SDarren Reed# 74*0a0e9771SDarren Reed# Default build targets. 75*0a0e9771SDarren Reed# 76*0a0e9771SDarren Reed.KEEP_STATE: 77*0a0e9771SDarren Reed 78*0a0e9771SDarren Reeddef: $(DEF_DEPS) 79*0a0e9771SDarren Reed 80*0a0e9771SDarren Reedall: $(ALL_DEPS) 81*0a0e9771SDarren Reed 82*0a0e9771SDarren Reedclean: $(CLEAN_DEPS) 83*0a0e9771SDarren Reed 84*0a0e9771SDarren Reedclobber: $(CLOBBER_DEPS) 85*0a0e9771SDarren Reed 86*0a0e9771SDarren Reedlint: $(LINT_DEPS) 87*0a0e9771SDarren Reed 88*0a0e9771SDarren Reedmodlintlib: $(MODLINTLIB_DEPS) 89*0a0e9771SDarren Reed 90*0a0e9771SDarren Reedclean.lint: $(CLEAN_LINT_DEPS) 91*0a0e9771SDarren Reed 92*0a0e9771SDarren Reedinstall: $(INSTALL_DEPS) 93*0a0e9771SDarren Reed 94*0a0e9771SDarren Reed# 95*0a0e9771SDarren Reed# Include common targets. 96*0a0e9771SDarren Reed# 97*0a0e9771SDarren Reedinclude $(UTSBASE)/intel/Makefile.targ 98