1*dd49f125SAnders Persson# 2*dd49f125SAnders Persson# CDDL HEADER START 3*dd49f125SAnders Persson# 4*dd49f125SAnders Persson# The contents of this file are subject to the terms of the 5*dd49f125SAnders Persson# Common Development and Distribution License (the "License"). 6*dd49f125SAnders Persson# You may not use this file except in compliance with the License. 7*dd49f125SAnders Persson# 8*dd49f125SAnders Persson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*dd49f125SAnders Persson# or http://www.opensolaris.org/os/licensing. 10*dd49f125SAnders Persson# See the License for the specific language governing permissions 11*dd49f125SAnders Persson# and limitations under the License. 12*dd49f125SAnders Persson# 13*dd49f125SAnders Persson# When distributing Covered Code, include this CDDL HEADER in each 14*dd49f125SAnders Persson# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*dd49f125SAnders Persson# If applicable, add the following below this CDDL HEADER, with the 16*dd49f125SAnders Persson# fields enclosed by brackets "[]" replaced with your own identifying 17*dd49f125SAnders Persson# information: Portions Copyright [yyyy] [name of copyright owner] 18*dd49f125SAnders Persson# 19*dd49f125SAnders Persson# CDDL HEADER END 20*dd49f125SAnders Persson# 21*dd49f125SAnders Persson# 22*dd49f125SAnders Persson# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 23*dd49f125SAnders Persson# 24*dd49f125SAnders Persson# This makefile drives the production of the kssl socket filter 25*dd49f125SAnders Persson# kernel module. 26*dd49f125SAnders Persson# 27*dd49f125SAnders Persson# intel architecture dependent 28*dd49f125SAnders Persson# 29*dd49f125SAnders Persson 30*dd49f125SAnders Persson# 31*dd49f125SAnders Persson# Path to the base of the uts directory tree (usually /usr/src/uts). 32*dd49f125SAnders Persson# 33*dd49f125SAnders PerssonUTSBASE = ../.. 34*dd49f125SAnders Persson 35*dd49f125SAnders Persson# 36*dd49f125SAnders Persson# Define the module and object file sets. 37*dd49f125SAnders Persson# 38*dd49f125SAnders PerssonMODULE = ksslf 39*dd49f125SAnders PerssonOBJECTS = $(KSSL_SOCKFIL_MOD_OBJS:%=$(OBJS_DIR)/%) 40*dd49f125SAnders PerssonLINTS = $(KSSL_SOCKFIL_MOD_OBJS:%.o=$(LINTS_DIR)/%.ln) 41*dd49f125SAnders PerssonROOTMODULE = $(ROOT_SOCK_DIR)/$(MODULE) 42*dd49f125SAnders Persson 43*dd49f125SAnders Persson# 44*dd49f125SAnders Persson# Include common rules. 45*dd49f125SAnders Persson# 46*dd49f125SAnders Perssoninclude $(UTSBASE)/intel/Makefile.intel 47*dd49f125SAnders Persson 48*dd49f125SAnders Persson# 49*dd49f125SAnders Persson# Define targets 50*dd49f125SAnders Persson# 51*dd49f125SAnders PerssonALL_TARGET = $(BINARY) 52*dd49f125SAnders PerssonLINT_TARGET = $(MODULE).lint 53*dd49f125SAnders PerssonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 54*dd49f125SAnders Persson 55*dd49f125SAnders Persson# 56*dd49f125SAnders Persson# lint pass one enforcement and OS version 57*dd49f125SAnders Persson# 58*dd49f125SAnders PerssonCFLAGS += $(CCVERBOSE) 59*dd49f125SAnders Persson 60*dd49f125SAnders PerssonLDFLAGS += -dy -Nmisc/md5 -Nmisc/kcf -Ndrv/kssl -Nfs/sockfs 61*dd49f125SAnders Persson 62*dd49f125SAnders Persson# 63*dd49f125SAnders Persson# For now, disable these lint checks; maintainers should endeavor 64*dd49f125SAnders Persson# to investigate and remove these for maximum lint coverage. 65*dd49f125SAnders Persson# Please do not carry these forward to new Makefiles. 66*dd49f125SAnders Persson# 67*dd49f125SAnders PerssonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 68*dd49f125SAnders PerssonLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 69*dd49f125SAnders Persson 70*dd49f125SAnders Persson# 71*dd49f125SAnders Persson# Default build targets. 72*dd49f125SAnders Persson# 73*dd49f125SAnders Persson.KEEP_STATE: 74*dd49f125SAnders Persson 75*dd49f125SAnders Perssondef: $(DEF_DEPS) 76*dd49f125SAnders Persson 77*dd49f125SAnders Perssonall: $(ALL_DEPS) 78*dd49f125SAnders Persson 79*dd49f125SAnders Perssonclean: $(CLEAN_DEPS) 80*dd49f125SAnders Persson 81*dd49f125SAnders Perssonclobber: $(CLOBBER_DEPS) 82*dd49f125SAnders Persson 83*dd49f125SAnders Perssonlint: $(LINT_DEPS) 84*dd49f125SAnders Persson 85*dd49f125SAnders Perssonmodlintlib: $(MODLINTLIB_DEPS) 86*dd49f125SAnders Persson 87*dd49f125SAnders Perssonclean.lint: $(CLEAN_LINT_DEPS) 88*dd49f125SAnders Persson 89*dd49f125SAnders Perssoninstall: $(INSTALL_DEPS) 90*dd49f125SAnders Persson 91*dd49f125SAnders Persson# 92*dd49f125SAnders Persson# Include common targets. 93*dd49f125SAnders Persson# 94*dd49f125SAnders Perssoninclude $(UTSBASE)/intel/Makefile.targ 95