17c478bd9Sstevel@tonic-gate# 2381a2a9aSdr146992# CDDL HEADER START 3381a2a9aSdr146992# 4381a2a9aSdr146992# The contents of this file are subject to the terms of the 5381a2a9aSdr146992# Common Development and Distribution License (the "License"). 6381a2a9aSdr146992# You may not use this file except in compliance with the License. 7381a2a9aSdr146992# 8381a2a9aSdr146992# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9381a2a9aSdr146992# or http://www.opensolaris.org/os/licensing. 10381a2a9aSdr146992# See the License for the specific language governing permissions 11381a2a9aSdr146992# and limitations under the License. 12381a2a9aSdr146992# 13381a2a9aSdr146992# When distributing Covered Code, include this CDDL HEADER in each 14381a2a9aSdr146992# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15381a2a9aSdr146992# If applicable, add the following below this CDDL HEADER, with the 16381a2a9aSdr146992# fields enclosed by brackets "[]" replaced with your own identifying 17381a2a9aSdr146992# information: Portions Copyright [yyyy] [name of copyright owner] 18381a2a9aSdr146992# 19381a2a9aSdr146992# CDDL HEADER END 20381a2a9aSdr146992# 21381a2a9aSdr146992# 22ab073b32Sdr146992# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# uts/sparc/ipf/Makefile 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate# This makefile drives the production of the ipf driver 297c478bd9Sstevel@tonic-gate# kernel module. 307c478bd9Sstevel@tonic-gate# 317c478bd9Sstevel@tonic-gate# sparc architecture dependent 327c478bd9Sstevel@tonic-gate# 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gate# 357c478bd9Sstevel@tonic-gate# Path to the base of the uts directory tree (usually /usr/src/uts). 367c478bd9Sstevel@tonic-gate# 377c478bd9Sstevel@tonic-gateUTSBASE = ../.. 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gate# 407c478bd9Sstevel@tonic-gate# Define the module and object file sets. 417c478bd9Sstevel@tonic-gate# 427c478bd9Sstevel@tonic-gateMODULE = ipf 437c478bd9Sstevel@tonic-gateOBJECTS = $(IPF_OBJS:%=$(OBJS_DIR)/%) 447c478bd9Sstevel@tonic-gateLINTS = $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln) 457c478bd9Sstevel@tonic-gateROOTMODULE = $(USR_DRV_DIR)/$(MODULE) 467c478bd9Sstevel@tonic-gateCONF_SRCDIR = $(UTSBASE)/common/inet/ipf 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate# 497c478bd9Sstevel@tonic-gate# Include common rules. 507c478bd9Sstevel@tonic-gate# 517c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.sparc 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate# 547c478bd9Sstevel@tonic-gate# Define targets 557c478bd9Sstevel@tonic-gate# 567c478bd9Sstevel@tonic-gateALL_TARGET = $(BINARY) $(SRC_CONFFILE) 577c478bd9Sstevel@tonic-gateLINT_TARGET = $(MODULE).lint 587c478bd9Sstevel@tonic-gateINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gate# 617c478bd9Sstevel@tonic-gate# lint pass one enforcement and OS version 627c478bd9Sstevel@tonic-gate# 637c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 647c478bd9Sstevel@tonic-gateCPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP 652032ea7bSmeemCPPFLAGS += -DSUNDDI -DSOLARIS2=$(RELEASE_MINOR) -DIRE_ILL_CN -DUSE_INET6 667ddc9b1aSDarren ReedLDFLAGS += -dy -Ndrv/ip -Nmisc/md5 -Nmisc/neti -Nmisc/hook -Nmisc/kcf 677c478bd9Sstevel@tonic-gate 68ab25eeb5Syz155240INC_PATH += -I$(UTSBASE)/common/inet/ipf 69ab25eeb5Syz155240 707c478bd9Sstevel@tonic-gate# 71bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 72bb25c06cSjg# to investigate and remove these for maximum lint coverage. 73bb25c06cSjg# Please do not carry these forward to new Makefiles. 74bb25c06cSjg# 75bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 76bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 77bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 78bb25c06cSjgLINTTAGS += -erroff=E_STATIC_UNUSED 79bb25c06cSjg 80*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 81*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 82*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 83*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 84*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-empty-body 85*7014882cSRichard Lowe 86bb25c06cSjg# 877c478bd9Sstevel@tonic-gate# Default build targets. 887c478bd9Sstevel@tonic-gate# 897c478bd9Sstevel@tonic-gate.KEEP_STATE: 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gatedef: $(DEF_DEPS) 927c478bd9Sstevel@tonic-gate 93112f9fc1Syz155240all: $(ALL_DEPS) $(SISCHECK_DEPS) 947c478bd9Sstevel@tonic-gate 95112f9fc1Syz155240clean: $(CLEAN_DEPS) $(SISCLEAN_DEPS) 967c478bd9Sstevel@tonic-gate 97112f9fc1Syz155240clobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS) 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gatelint: $(LINT_DEPS) 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gatemodlintlib: $(MODLINTLIB_DEPS) 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gateclean.lint: $(CLEAN_LINT_DEPS) 1047c478bd9Sstevel@tonic-gate 105112f9fc1Syz155240install: $(INSTALL_DEPS) $(SISCHECK_DEPS) 106f4b3ec61Sdh155122 1077c478bd9Sstevel@tonic-gate# 1087c478bd9Sstevel@tonic-gate# Include common targets. 1097c478bd9Sstevel@tonic-gate# 1107c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.targ 111