Makefile revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# CDDL HEADER START
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# The contents of this file are subject to the terms of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Common Development and Distribution License (the "License").
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# You may not use this file except in compliance with the License.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# See the License for the specific language governing permissions
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# and limitations under the License.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This makefile drives the production of the sdbc kernel module
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# sparc implementation architecture dependent
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Path to the base of the uts directory tree (usually /usr/src/uts).
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater# Define the module and object file sets.
aaaf8d4f4873d21e55c3ffb4f656203d08339865Mark Andrews# Include common rules.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCLOBBERFILES += obj*/*.c debug*/*.c obj*/sd_mkiob debug*/sd_mkiob
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Define targets
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic UpdaterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# lint pass one enforcement
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic UpdaterCFLAGS += -v -D_SD_8K_BLKSIZE -D_SDBC_SINGLE_BRD
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLDFLAGS += -dy -N"drv/nsctl" -N"drv/ncall" -N"drv/nskern" -N"misc/spuni"
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater$(OBJS_DIR)/sd_mkiob: $(UTSBASE)/common/avs/ns/sdbc/sd_mkiob.sh
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater $(CP) $(UTSBASE)/common/avs/ns/sdbc/sd_mkiob.sh $@
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt$(OBJS_DIR)/sd_iob_impl0.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(OBJS_DIR)/sd_mkiob 0 512 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(OBJS_DIR)/sd_iob_impl1.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(OBJS_DIR)/sd_mkiob 512 1024 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
2f8d63983c297c62630044d28a6f66676b4d339dMark Andrews$(OBJS_DIR)/sd_iob_impl2.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(OBJS_DIR)/sd_mkiob 1024 1536 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater$(OBJS_DIR)/sd_iob_impl3.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater $(OBJS_DIR)/sd_mkiob 1536 2048 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
aaaf8d4f4873d21e55c3ffb4f656203d08339865Mark Andrews$(OBJS_DIR)/sd_iob_impl4.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater $(OBJS_DIR)/sd_mkiob 2048 2560 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater$(OBJS_DIR)/sd_iob_impl5.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater $(OBJS_DIR)/sd_mkiob 2560 3072 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater$(OBJS_DIR)/sd_iob_impl6.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater $(OBJS_DIR)/sd_mkiob 3072 3584 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater$(OBJS_DIR)/sd_iob_impl7.c: $(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(OBJS_DIR)/sd_mkiob 3584 9999 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(OBJS_DIR)/sd_iob_impl0.o: $(OBJS_DIR)/sd_iob_impl0.c
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User$(OBJS_DIR)/sd_iob_impl1.o: $(OBJS_DIR)/sd_iob_impl1.c
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl1.c
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User$(OBJS_DIR)/sd_iob_impl2.o: $(OBJS_DIR)/sd_iob_impl2.c
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl2.c
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User$(OBJS_DIR)/sd_iob_impl3.o: $(OBJS_DIR)/sd_iob_impl3.c
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl3.c
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User$(OBJS_DIR)/sd_iob_impl4.o: $(OBJS_DIR)/sd_iob_impl4.c
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater$(OBJS_DIR)/sd_iob_impl5.o: $(OBJS_DIR)/sd_iob_impl5.c
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic Updater$(OBJS_DIR)/sd_iob_impl6.o: $(OBJS_DIR)/sd_iob_impl6.c
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic Updater $(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl6.c
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(OBJS_DIR)/sd_iob_impl7.o: $(OBJS_DIR)/sd_iob_impl7.c
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common targets.