Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
670734c2ee137c587411795c6f82566c9d3729b7coar# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License (the "License").
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# You may not use this file except in compliance with the License.
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb#
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# or http://www.opensolaris.org/os/licensing.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# See the License for the specific language governing permissions
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# and limitations under the License.
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard#
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# When distributing Covered Code, include this CDDL HEADER in each
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# If applicable, add the following below this CDDL HEADER, with the
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# fields enclosed by brackets "[]" replaced with your own identifying
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# information: Portions Copyright [yyyy] [name of copyright owner]
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# CDDL HEADER END
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb#
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# Use is subject to license terms.
f6a6245816cd866361da8c576b1f47c7a54b6610fanf#
f755f06050191550f77c825eff6b0e48a35b3e91dgaudet
f755f06050191550f77c825eff6b0e48a35b3e91dgaudet#
40a5b7189dbbb28e107bf008ee625f2f0142c2ccdgaudet# This makefile drives the production of the sun4u daktari platmod module
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj#
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj# Path to the base of the uts directory tree (usually /usr/src/uts).
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojUTSBASE = ../../..
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard#
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# Define the module and object file sets.
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard#
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardMODULE = platmod
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardOBJECTS = $(DAKTARI_OBJS:%=$(OBJS_DIR)/%)
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardLINTS = $(DAKTARI_OBJS:%.o=$(LINTS_DIR)/%.ln)
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardROOTMODULE = $(ROOT_DAKTARI_MISC_DIR)/$(MODULE)
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardPLAT_DIR = .
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardHERE = ../daktari/platmod
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddard# Include common rules.
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddardinclude $(UTSBASE)/sun4u/daktari/Makefile.daktari
75960f20f88dad6bc67892c711c429946063d133stoddard
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddard# Override defaults
75960f20f88dad6bc67892c711c429946063d133stoddard#
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanojCLEANFILES += $(PLATLIB) $(SYM_MOD)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj#
f6a6245816cd866361da8c576b1f47c7a54b6610fanf# Define targets
f6a6245816cd866361da8c576b1f47c7a54b6610fanf#
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manojALL_TARGET = $(SYM_MOD)
2a6c49cfaef5979a5a06098f3ce987cd76769409manojLINT_TARGET = $(MODULE).lint
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddardINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard#
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard# Overrides
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard#
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddardALL_BUILDS = $(ALL_BUILDSONLY64)
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddardDEF_BUILDS = $(DEF_BUILDSONLY64)
2aae6faee508221efbeaba5547ca79b7a20ef047stoddardCLEANLINTFILES += $(LINT32_FILES)
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard
670734c2ee137c587411795c6f82566c9d3729b7coar#
670734c2ee137c587411795c6f82566c9d3729b7coar# lint pass one enforcement
75960f20f88dad6bc67892c711c429946063d133stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardCFLAGS += $(CCVERBOSE)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardCERRWARN += -_gcc=-Wno-unused-function
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# Default build targets.
56ca30c968906053ae61acb218420667bb58d996rbb#
56ca30c968906053ae61acb218420667bb58d996rbb.KEEP_STATE:
56ca30c968906053ae61acb218420667bb58d996rbb
56ca30c968906053ae61acb218420667bb58d996rbball: $(ALL_DEPS)
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanojdef: $(DEF_DEPS)
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj
56ca30c968906053ae61acb218420667bb58d996rbbclean: $(CLEAN_DEPS)
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manojclobber: $(CLOBBER_DEPS)
0bff2f28ef945280c17099c142126178a78e1e54manoj
1e585ba09ea32272e63c4c39c35491e975d21d98stoddardlint: $(LINT_DEPS)
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddardmodlintlib: $(MODLINTLIB_DEPS)
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddardclean.lint: $(CLEAN_LINT_DEPS)
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddardinstall: $(INSTALL_DEPS)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardcheck:
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
0bff2f28ef945280c17099c142126178a78e1e54manojLINT_LIB_DIR =$(DAKTARI_LINT_LIB_DIR)
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manoj$(PLATLIB): $(BINARY)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard $(BUILD.SO) $(BINARY)
75960f20f88dad6bc67892c711c429946063d133stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard$(SYM_MOD): $(UNIX_O) $(PLATLIB)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard @echo "resolving symbols against unix.o"
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj @(cd $(UNIX_DIR); pwd; \
f03d292915be9977eaf74e9be7b0404aec226f84manoj PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
f03d292915be9977eaf74e9be7b0404aec226f84manoj
f03d292915be9977eaf74e9be7b0404aec226f84manoj#
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj# Include common targets.
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojinclude $(UTSBASE)/sun4u/daktari/Makefile.targ
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj