10a0e9771SDarren Reed# 20a0e9771SDarren Reed# CDDL HEADER START 30a0e9771SDarren Reed# 40a0e9771SDarren Reed# The contents of this file are subject to the terms of the 50a0e9771SDarren Reed# Common Development and Distribution License (the "License"). 60a0e9771SDarren Reed# You may not use this file except in compliance with the License. 70a0e9771SDarren Reed# 80a0e9771SDarren Reed# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90a0e9771SDarren Reed# or http://www.opensolaris.org/os/licensing. 100a0e9771SDarren Reed# See the License for the specific language governing permissions 110a0e9771SDarren Reed# and limitations under the License. 120a0e9771SDarren Reed# 130a0e9771SDarren Reed# When distributing Covered Code, include this CDDL HEADER in each 140a0e9771SDarren Reed# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150a0e9771SDarren Reed# If applicable, add the following below this CDDL HEADER, with the 160a0e9771SDarren Reed# fields enclosed by brackets "[]" replaced with your own identifying 170a0e9771SDarren Reed# information: Portions Copyright [yyyy] [name of copyright owner] 180a0e9771SDarren Reed# 190a0e9771SDarren Reed# CDDL HEADER END 200a0e9771SDarren Reed# 210a0e9771SDarren Reed# 220a0e9771SDarren Reed# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230a0e9771SDarren Reed# Use is subject to license terms. 240a0e9771SDarren Reed# 250a0e9771SDarren Reed# uts/intel/bpf/Makefile 260a0e9771SDarren Reed# 270a0e9771SDarren Reed# 280a0e9771SDarren Reed# This makefile drives the production of the bpf driver 290a0e9771SDarren Reed# kernel module. 300a0e9771SDarren Reed# 310a0e9771SDarren Reed# intel architecture dependent 320a0e9771SDarren Reed# 330a0e9771SDarren Reed 340a0e9771SDarren Reed# 350a0e9771SDarren Reed# Path to the base of the uts directory tree (usually /usr/src/uts). 360a0e9771SDarren Reed# 370a0e9771SDarren ReedUTSBASE = ../.. 380a0e9771SDarren Reed 390a0e9771SDarren Reed# 400a0e9771SDarren Reed# Define the module and object file sets. 410a0e9771SDarren Reed# 420a0e9771SDarren ReedMODULE = bpf 430a0e9771SDarren ReedOBJECTS = $(BPF_OBJS:%=$(OBJS_DIR)/%) 440a0e9771SDarren ReedLINTS = $(BPF_OBJS:%.o=$(LINTS_DIR)/%.ln) 450a0e9771SDarren ReedROOTMODULE = $(USR_DRV_DIR)/$(MODULE) 460a0e9771SDarren ReedCONF_SRCDIR = $(UTSBASE)/common/io/bpf 470a0e9771SDarren Reed 480a0e9771SDarren Reed# 490a0e9771SDarren Reed# Include common rules. 500a0e9771SDarren Reed# 510a0e9771SDarren Reedinclude $(UTSBASE)/intel/Makefile.intel 520a0e9771SDarren Reed 530a0e9771SDarren Reed# 540a0e9771SDarren Reed# Define targets 550a0e9771SDarren Reed# 560a0e9771SDarren ReedALL_TARGET = $(BINARY) $(SRC_CONFFILE) 570a0e9771SDarren ReedLINT_TARGET = $(MODULE).lint 580a0e9771SDarren ReedINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 590a0e9771SDarren Reed 600a0e9771SDarren Reed# 610a0e9771SDarren Reed# 620a0e9771SDarren ReedCFLAGS += $(CCVERBOSE) 630a0e9771SDarren ReedLDFLAGS += -dy -Nmisc/mac -Nmisc/dls -Ndrv/ipnet -Nmisc/neti 640a0e9771SDarren ReedINC_PATH += -I$(UTSBASE)/common/io/bpf 650a0e9771SDarren Reed 660a0e9771SDarren Reed# 670a0e9771SDarren Reed# For now, disable these lint checks; maintainers should endeavor 680a0e9771SDarren Reed# to investigate and remove these for maximum lint coverage. 690a0e9771SDarren Reed# Please do not carry these forward to new Makefiles. 700a0e9771SDarren Reed# 710a0e9771SDarren ReedLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW -erroff=E_BAD_PTR_CAST_ALIGN 720a0e9771SDarren Reed 73*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 74*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 75*7014882cSRichard Lowe 760a0e9771SDarren Reed# 770a0e9771SDarren Reed# Default build targets. 780a0e9771SDarren Reed# 790a0e9771SDarren Reed.KEEP_STATE: 800a0e9771SDarren Reed 810a0e9771SDarren Reeddef: $(DEF_DEPS) 820a0e9771SDarren Reed 830a0e9771SDarren Reedall: $(ALL_DEPS) 840a0e9771SDarren Reed 850a0e9771SDarren Reedclean: $(CLEAN_DEPS) 860a0e9771SDarren Reed 870a0e9771SDarren Reedclobber: $(CLOBBER_DEPS) 880a0e9771SDarren Reed 890a0e9771SDarren Reedlint: $(LINT_DEPS) 900a0e9771SDarren Reed 910a0e9771SDarren Reedmodlintlib: $(MODLINTLIB_DEPS) 920a0e9771SDarren Reed 930a0e9771SDarren Reedclean.lint: $(CLEAN_LINT_DEPS) 940a0e9771SDarren Reed 950a0e9771SDarren Reedinstall: $(INSTALL_DEPS) 960a0e9771SDarren Reed 970a0e9771SDarren Reed# 980a0e9771SDarren Reed# Include common targets. 990a0e9771SDarren Reed# 1000a0e9771SDarren Reedinclude $(UTSBASE)/intel/Makefile.targ 101