fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# uts/sparc/sdbc/Makefile
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This makefile drives the production of the sdbc kernel module
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# sparc implementation architecture dependent
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Path to the base of the uts directory tree (usually /usr/src/uts).
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteUTSBASE = ../..
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCHDIR:sh = cd ..; basename `pwd`
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteUTSCOMMON = $(UTSBASE)/common
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAVSCOMMON = $(UTSCOMMON)/avs
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Define the module and object file sets.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODULE = sdbc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJECTS = $(SDBC_OBJS:%=$(OBJS_DIR)/%)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTS = $(SDBC_OBJS:%.o=$(LINTS_DIR)/%.ln)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINC_PATH += -I$(ROOT)/usr/include
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINC_PATH += -I$(AVSCOMMON)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINC_PATH += -I$(AVSCOMMON)/ns/sdbc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONF_SRCDIR = $(UTSBASE)/common/avs/ns/sdbc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Include common rules.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../Makefile.$(ARCHDIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(UTSBASE)/common/avs/Makefile.com
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCLOBBERFILES += obj*/*.c debug*/*.c obj*/sd_mkiob debug*/sd_mkiob
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Define targets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteALL_TARGET = $(BINARY) $(SRC_CONFILE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINT_TARGET = $(MODULE).lint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# lint pass one enforcement
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCFLAGS += $(CCVERBOSE) -D_SD_8K_BLKSIZE -D_SDBC_SINGLE_BRD
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLDFLAGS += -dy -N"drv/nsctl" -N"drv/ncall" -N"drv/nskern" -N"misc/spuni"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.KEEP_STATE:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortedef: $(DEF_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: $(ALL_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean: $(CLEAN_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclobber: $(CLOBBER_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint: $(LINT_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortemodlintlib: $(MODLINTLIB_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean.lint: $(CLEAN_LINT_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall: $(INSTALL_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_mkiob: $(UTSBASE)/common/avs/ns/sdbc/sd_mkiob.sh
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(CP) $(UTSBASE)/common/avs/ns/sdbc/sd_mkiob.sh $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(CHMOD) 755 $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl0.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob 0 512 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl1.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob 512 1024 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl2.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob 1024 1536 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl3.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob 1536 2048 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl4.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob 2048 2560 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl5.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob 2560 3072 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl6.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob 3072 3584 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl7.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS_DIR)/sd_mkiob 3584 9999 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl0.o: $(OBJS_DIR)/sd_iob_impl0.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl0.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl1.o: $(OBJS_DIR)/sd_iob_impl1.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl1.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl2.o: $(OBJS_DIR)/sd_iob_impl2.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl2.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl3.o: $(OBJS_DIR)/sd_iob_impl3.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl3.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl4.o: $(OBJS_DIR)/sd_iob_impl4.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl4.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl5.o: $(OBJS_DIR)/sd_iob_impl5.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl5.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl6.o: $(OBJS_DIR)/sd_iob_impl6.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl6.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/sd_iob_impl7.o: $(OBJS_DIR)/sd_iob_impl7.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl7.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(POST_PROCESS_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Include common targets.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../Makefile.targ