1*7836SJohn.Forte@Sun.COM# CDDL HEADER START 2*7836SJohn.Forte@Sun.COM# 3*7836SJohn.Forte@Sun.COM# The contents of this file are subject to the terms of the 4*7836SJohn.Forte@Sun.COM# Common Development and Distribution License (the "License"). 5*7836SJohn.Forte@Sun.COM# You may not use this file except in compliance with the License. 6*7836SJohn.Forte@Sun.COM# 7*7836SJohn.Forte@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 8*7836SJohn.Forte@Sun.COM# or http://www.opensolaris.org/os/licensing. 9*7836SJohn.Forte@Sun.COM# See the License for the specific language governing permissions 10*7836SJohn.Forte@Sun.COM# and limitations under the License. 11*7836SJohn.Forte@Sun.COM# 12*7836SJohn.Forte@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 13*7836SJohn.Forte@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 14*7836SJohn.Forte@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 15*7836SJohn.Forte@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 16*7836SJohn.Forte@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 17*7836SJohn.Forte@Sun.COM# 18*7836SJohn.Forte@Sun.COM# CDDL HEADER END 19*7836SJohn.Forte@Sun.COM# 20*7836SJohn.Forte@Sun.COM# 21*7836SJohn.Forte@Sun.COM# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 22*7836SJohn.Forte@Sun.COM# Use is subject to license terms. 23*7836SJohn.Forte@Sun.COM# 24*7836SJohn.Forte@Sun.COM# uts/intel/rdc/Makefile 25*7836SJohn.Forte@Sun.COM# 26*7836SJohn.Forte@Sun.COM# This makefile drives the production of the rdc kernel module 27*7836SJohn.Forte@Sun.COM# 28*7836SJohn.Forte@Sun.COM# intel implementation architecture dependent 29*7836SJohn.Forte@Sun.COM# 30*7836SJohn.Forte@Sun.COM 31*7836SJohn.Forte@Sun.COM# 32*7836SJohn.Forte@Sun.COM# Path to the base of the uts directory tree (usually /usr/src/uts). 33*7836SJohn.Forte@Sun.COM# 34*7836SJohn.Forte@Sun.COM# 35*7836SJohn.Forte@Sun.COMUTSBASE = ../.. 36*7836SJohn.Forte@Sun.COM 37*7836SJohn.Forte@Sun.COMARCHDIR:sh = cd ..; basename `pwd` 38*7836SJohn.Forte@Sun.COM 39*7836SJohn.Forte@Sun.COM# 40*7836SJohn.Forte@Sun.COM# Define the module and object file sets. 41*7836SJohn.Forte@Sun.COM# 42*7836SJohn.Forte@Sun.COMMODULE = rdc 43*7836SJohn.Forte@Sun.COMOBJECTS = $(RDC_OBJS:%=$(OBJS_DIR)/%) 44*7836SJohn.Forte@Sun.COMLINTS = $(RDC_OBJS:%.o=$(LINTS_DIR)/%.ln) 45*7836SJohn.Forte@Sun.COMROOTMODULE = $(USR_DRV_DIR)/$(MODULE) 46*7836SJohn.Forte@Sun.COMINC_PATH += -I$(ROOT)/usr/include 47*7836SJohn.Forte@Sun.COMCONF_SRCDIR = $(UTSBASE)/common/avs/ns/rdc 48*7836SJohn.Forte@Sun.COM 49*7836SJohn.Forte@Sun.COM# 50*7836SJohn.Forte@Sun.COM# Include common rules. 51*7836SJohn.Forte@Sun.COM# 52*7836SJohn.Forte@Sun.COMinclude ../Makefile.$(ARCHDIR) 53*7836SJohn.Forte@Sun.COMinclude $(UTSBASE)/common/avs/Makefile.com 54*7836SJohn.Forte@Sun.COM 55*7836SJohn.Forte@Sun.COM# 56*7836SJohn.Forte@Sun.COM# Define targets 57*7836SJohn.Forte@Sun.COM# 58*7836SJohn.Forte@Sun.COMALL_TARGET = $(BINARY) $(SRC_CONFILE) 59*7836SJohn.Forte@Sun.COMLINT_TARGET = $(MODULE).lint 60*7836SJohn.Forte@Sun.COMINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 61*7836SJohn.Forte@Sun.COM 62*7836SJohn.Forte@Sun.COM# 63*7836SJohn.Forte@Sun.COM# lint pass one enforcement 64*7836SJohn.Forte@Sun.COM# 65*7836SJohn.Forte@Sun.COMCFLAGS += -v -D_SD_8K_BLKSIZE -D_SYSCALL32 66*7836SJohn.Forte@Sun.COMLINT_DEFS += -D_SYSCALL32 67*7836SJohn.Forte@Sun.COMLINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2 68*7836SJohn.Forte@Sun.COMLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 69*7836SJohn.Forte@Sun.COMLINTTAGS += -erroff=E_INCONS_ARG_DECL2 70*7836SJohn.Forte@Sun.COMLDFLAGS += -dy -N"drv/nsctl" -N"drv/nskern" -N"drv/ncall" -N"misc/spuni" \ 71*7836SJohn.Forte@Sun.COM -N"misc/rdcsrv" -N"strmod/rpcmod" 72*7836SJohn.Forte@Sun.COM 73*7836SJohn.Forte@Sun.COM.KEEP_STATE: 74*7836SJohn.Forte@Sun.COM 75*7836SJohn.Forte@Sun.COMdef: $(DEF_DEPS) 76*7836SJohn.Forte@Sun.COM 77*7836SJohn.Forte@Sun.COMall: $(ALL_DEPS) 78*7836SJohn.Forte@Sun.COM 79*7836SJohn.Forte@Sun.COMclean: $(CLEAN_DEPS) 80*7836SJohn.Forte@Sun.COM 81*7836SJohn.Forte@Sun.COMclobber: $(CLOBBER_DEPS) 82*7836SJohn.Forte@Sun.COM -rm -f obj*/rdc_prot_xdr.c debug*/rdc_prot_xdr.c 83*7836SJohn.Forte@Sun.COM 84*7836SJohn.Forte@Sun.COMlint: $(LINT_DEPS) 85*7836SJohn.Forte@Sun.COM 86*7836SJohn.Forte@Sun.COMmodlintlib: $(MODLINTLIB_DEPS) 87*7836SJohn.Forte@Sun.COM 88*7836SJohn.Forte@Sun.COMclean.lint: $(CLEAN_LINT_DEPS) 89*7836SJohn.Forte@Sun.COM 90*7836SJohn.Forte@Sun.COMinstall: $(INSTALL_DEPS) 91*7836SJohn.Forte@Sun.COM 92*7836SJohn.Forte@Sun.COM$(OBJS_DIR)/rdc_prot_xdr.c: $(UTSBASE)/common/avs/ns/rdc/rdc_prot.x 93*7836SJohn.Forte@Sun.COM $(RPCGEN) -i 0 -C -c -o $@ \ 94*7836SJohn.Forte@Sun.COM `/bin/pwd`/$(UTSBASE)/common/avs/ns/rdc/rdc_prot.x 95*7836SJohn.Forte@Sun.COM 96*7836SJohn.Forte@Sun.COM$(OBJS_DIR)/rdc_prot_xdr.o: $(OBJS_DIR)/rdc_prot_xdr.c 97*7836SJohn.Forte@Sun.COM $(COMPILE.c) -o $@ $(OBJS_DIR)/rdc_prot_xdr.c 98*7836SJohn.Forte@Sun.COM 99*7836SJohn.Forte@Sun.COM# 100*7836SJohn.Forte@Sun.COM# Include common targets. 101*7836SJohn.Forte@Sun.COM# 102*7836SJohn.Forte@Sun.COMinclude ../Makefile.targ 103