1*bbaa8b60SDan Kruchinin# 2*bbaa8b60SDan Kruchinin# CDDL HEADER START 3*bbaa8b60SDan Kruchinin# 4*bbaa8b60SDan Kruchinin# The contents of this file are subject to the terms of the 5*bbaa8b60SDan Kruchinin# Common Development and Distribution License (the "License"). 6*bbaa8b60SDan Kruchinin# You may not use this file except in compliance with the License. 7*bbaa8b60SDan Kruchinin# 8*bbaa8b60SDan Kruchinin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*bbaa8b60SDan Kruchinin# or http://www.opensolaris.org/os/licensing. 10*bbaa8b60SDan Kruchinin# See the License for the specific language governing permissions 11*bbaa8b60SDan Kruchinin# and limitations under the License. 12*bbaa8b60SDan Kruchinin# 13*bbaa8b60SDan Kruchinin# When distributing Covered Code, include this CDDL HEADER in each 14*bbaa8b60SDan Kruchinin# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*bbaa8b60SDan Kruchinin# If applicable, add the following below this CDDL HEADER, with the 16*bbaa8b60SDan Kruchinin# fields enclosed by brackets "[]" replaced with your own identifying 17*bbaa8b60SDan Kruchinin# information: Portions Copyright [yyyy] [name of copyright owner] 18*bbaa8b60SDan Kruchinin# 19*bbaa8b60SDan Kruchinin# CDDL HEADER END 20*bbaa8b60SDan Kruchinin# 21*bbaa8b60SDan Kruchinin# 22*bbaa8b60SDan Kruchinin# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23*bbaa8b60SDan Kruchinin# Use is subject to license terms. 24*bbaa8b60SDan Kruchinin# 25*bbaa8b60SDan Kruchinin# Copyright (c) 2012 by Delphix. All rights reserved. 26*bbaa8b60SDan Kruchinin# 27*bbaa8b60SDan Kruchinin# This makefile drives the production of the network lock manager server 28*bbaa8b60SDan Kruchinin# specific kernel module. 29*bbaa8b60SDan Kruchinin# 30*bbaa8b60SDan Kruchinin# intel implementation architecture dependent 31*bbaa8b60SDan Kruchinin# 32*bbaa8b60SDan Kruchinin 33*bbaa8b60SDan Kruchinin# 34*bbaa8b60SDan Kruchinin# Path to the base of the uts directory tree (usually /usr/src/uts). 35*bbaa8b60SDan Kruchinin# 36*bbaa8b60SDan KruchininUTSBASE = ../.. 37*bbaa8b60SDan Kruchinin 38*bbaa8b60SDan Kruchinin# 39*bbaa8b60SDan Kruchinin# Define the module and object file sets. 40*bbaa8b60SDan Kruchinin# 41*bbaa8b60SDan KruchininMODULE = klmmod 42*bbaa8b60SDan KruchininOBJECTS = $(KLMMOD_OBJS:%=$(OBJS_DIR)/%) 43*bbaa8b60SDan KruchininLINTS = $(KLMMOD_OBJS:%.o=$(LINTS_DIR)/%.ln) 44*bbaa8b60SDan KruchininROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 45*bbaa8b60SDan Kruchinin 46*bbaa8b60SDan Kruchinin# 47*bbaa8b60SDan Kruchinin# Include common rules. 48*bbaa8b60SDan Kruchinin# 49*bbaa8b60SDan Kruchinininclude $(UTSBASE)/intel/Makefile.intel 50*bbaa8b60SDan Kruchinin 51*bbaa8b60SDan Kruchinin# 52*bbaa8b60SDan Kruchinin# Define targets 53*bbaa8b60SDan Kruchinin# 54*bbaa8b60SDan KruchininALL_TARGET = $(BINARY) 55*bbaa8b60SDan KruchininLINT_TARGET = $(MODULE).lint 56*bbaa8b60SDan KruchininINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 57*bbaa8b60SDan Kruchinin 58*bbaa8b60SDan Kruchinin# 59*bbaa8b60SDan Kruchinin# Overrides. 60*bbaa8b60SDan Kruchinin# 61*bbaa8b60SDan KruchininLDFLAGS += -dy -Nstrmod/rpcmod -Nfs/nfs 62*bbaa8b60SDan KruchininLDFLAGS += -M $(UTSBASE)/common/klm/mapfile-mod 63*bbaa8b60SDan KruchininCTFMRGFLAGS += -f 64*bbaa8b60SDan Kruchinin 65*bbaa8b60SDan Kruchinin# 66*bbaa8b60SDan Kruchinin# Code generated by rpcgen triggers the -Wswitch warning. 67*bbaa8b60SDan Kruchinin# 68*bbaa8b60SDan KruchininCERRWARN += -_gcc=-Wno-switch 69*bbaa8b60SDan Kruchinin 70*bbaa8b60SDan Kruchinin# 71*bbaa8b60SDan Kruchinin# Default build targets. 72*bbaa8b60SDan Kruchinin# 73*bbaa8b60SDan Kruchinin.KEEP_STATE: 74*bbaa8b60SDan Kruchinin 75*bbaa8b60SDan Kruchinindef: $(DEF_DEPS) 76*bbaa8b60SDan Kruchinin 77*bbaa8b60SDan Kruchininall: $(ALL_DEPS) 78*bbaa8b60SDan Kruchinin 79*bbaa8b60SDan Kruchininclean: $(CLEAN_DEPS) 80*bbaa8b60SDan Kruchinin 81*bbaa8b60SDan Kruchininclobber: $(CLOBBER_DEPS) 82*bbaa8b60SDan Kruchinin 83*bbaa8b60SDan Kruchininlint: $(LINT_DEPS) 84*bbaa8b60SDan Kruchinin 85*bbaa8b60SDan Kruchininmodlintlib: $(MODLINTLIB_DEPS) 86*bbaa8b60SDan Kruchinin 87*bbaa8b60SDan Kruchininclean.lint: $(CLEAN_LINT_DEPS) 88*bbaa8b60SDan Kruchinin 89*bbaa8b60SDan Kruchinininstall: $(INSTALL_DEPS) 90*bbaa8b60SDan Kruchinin 91*bbaa8b60SDan Kruchinin# 92*bbaa8b60SDan Kruchinin# Include common targets. 93*bbaa8b60SDan Kruchinin# 94*bbaa8b60SDan Kruchinininclude $(UTSBASE)/intel/Makefile.targ 95