Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
3eb95d6629bb326ae90e5eec693b7e628951751brbb#
b9cf7102006ac2ccfebcb78174585986ff127ba9jwoolley# CDDL HEADER START
d757628a07145aa711ba75b4e7c7c01a33133ca1jerenkrantz#
d757628a07145aa711ba75b4e7c7c01a33133ca1jerenkrantz# The contents of this file are subject to the terms of the
d757628a07145aa711ba75b4e7c7c01a33133ca1jerenkrantz# Common Development and Distribution License (the "License").
1585c2979d749ee71edb6a1d57bc9ff6db12a426jerenkrantz# You may not use this file except in compliance with the License.
1585c2979d749ee71edb6a1d57bc9ff6db12a426jerenkrantz#
1585c2979d749ee71edb6a1d57bc9ff6db12a426jerenkrantz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6bdb2c094666367615890147775bb18761216c8dminfrin# or http://www.opensolaris.org/os/licensing.
6bdb2c094666367615890147775bb18761216c8dminfrin# See the License for the specific language governing permissions
6bdb2c094666367615890147775bb18761216c8dminfrin# and limitations under the License.
c069757188a3cd9ab19b05169b005a824b60b6fcaaron#
c069757188a3cd9ab19b05169b005a824b60b6fcaaron# When distributing Covered Code, include this CDDL HEADER in each
c069757188a3cd9ab19b05169b005a824b60b6fcaaron# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c069757188a3cd9ab19b05169b005a824b60b6fcaaron# If applicable, add the following below this CDDL HEADER, with the
c069757188a3cd9ab19b05169b005a824b60b6fcaaron# fields enclosed by brackets "[]" replaced with your own identifying
11ce97701b22d795fd1a5ec3769a3367bc220921wrowe# information: Portions Copyright [yyyy] [name of copyright owner]
11ce97701b22d795fd1a5ec3769a3367bc220921wrowe#
11ce97701b22d795fd1a5ec3769a3367bc220921wrowe# CDDL HEADER END
11ce97701b22d795fd1a5ec3769a3367bc220921wrowe#
11ce97701b22d795fd1a5ec3769a3367bc220921wrowe#
6cdd5cd95d8323de5cfb912d8fc0df8c5e3d02cejerenkrantz# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
e45d7d4ca98387c2898f8302bafb31e3b4f5a5d8jwoolley# Use is subject to license terms.
6cdd5cd95d8323de5cfb912d8fc0df8c5e3d02cejerenkrantz#
239ab9d14d3851c2efc1312b3b42c838073533f4jerenkrantz#ident "%Z%%M% %I% %E% SMI"
239ab9d14d3851c2efc1312b3b42c838073533f4jerenkrantz#
239ab9d14d3851c2efc1312b3b42c838073533f4jerenkrantz# This makefile drives the production of the kernel component of
239ab9d14d3851c2efc1312b3b42c838073533f4jerenkrantz# the lx brand
c5fb76caa5498c60b991fcba8dfbf3c229f0f4d5rbb#
c5fb76caa5498c60b991fcba8dfbf3c229f0f4d5rbb
c5fb76caa5498c60b991fcba8dfbf3c229f0f4d5rbb#
c5fb76caa5498c60b991fcba8dfbf3c229f0f4d5rbb# Path to the base of the uts directory tree (usually /usr/src/uts).
c5fb76caa5498c60b991fcba8dfbf3c229f0f4d5rbb#
c5fb76caa5498c60b991fcba8dfbf3c229f0f4d5rbbUTSBASE = ../..
b9cf7102006ac2ccfebcb78174585986ff127ba9jwoolley
b9cf7102006ac2ccfebcb78174585986ff127ba9jwoolley#
2b13bc45632d72cdf50ac42149e4fc8bc0d05bf2stoddard# Path to where brand common sources live
2b13bc45632d72cdf50ac42149e4fc8bc0d05bf2stoddard#
2b13bc45632d72cdf50ac42149e4fc8bc0d05bf2stoddardLX_CMN = $(SRC)/common/brand/lx
2b13bc45632d72cdf50ac42149e4fc8bc0d05bf2stoddard
2b13bc45632d72cdf50ac42149e4fc8bc0d05bf2stoddard#
2b13bc45632d72cdf50ac42149e4fc8bc0d05bf2stoddard# Define the module and object file sets.
2b13bc45632d72cdf50ac42149e4fc8bc0d05bf2stoddard#
2b13bc45632d72cdf50ac42149e4fc8bc0d05bf2stoddardMODULE = lx_brand
52617e76a53b1d90da027a5311790e1ccef8f60ftrawickOBJECTS = $(LX_BRAND_OBJS:%=$(OBJS_DIR)/%)
b584ec31a47334b1253f4a5ad73f023336ab2f28jwoolleyLINTS = $(LX_BRAND_OBJS:%.o=$(LINTS_DIR)/%.ln)
b584ec31a47334b1253f4a5ad73f023336ab2f28jwoolleyROOTMODULE = $(ROOT_BRAND_DIR)/$(MODULE)
b584ec31a47334b1253f4a5ad73f023336ab2f28jwoolley
b584ec31a47334b1253f4a5ad73f023336ab2f28jwoolley#
b584ec31a47334b1253f4a5ad73f023336ab2f28jwoolley# Include common rules.
7ac88dc1ac207b9a434fd76c0406651d68018d69rederpj#
7ac88dc1ac207b9a434fd76c0406651d68018d69rederpjinclude $(UTSBASE)/intel/Makefile.intel
52617e76a53b1d90da027a5311790e1ccef8f60ftrawick
52617e76a53b1d90da027a5311790e1ccef8f60ftrawick#
f905b21d99b264dbf26acc30b430ebe92838cdcejerenkrantz# Define targets
d157b208942316e96c34fa8b2222ed4cc2e56783trawick#
d157b208942316e96c34fa8b2222ed4cc2e56783trawickALL_TARGET = $(BINARY)
d157b208942316e96c34fa8b2222ed4cc2e56783trawickLINT_TARGET = $(MODULE).lint
d157b208942316e96c34fa8b2222ed4cc2e56783trawickINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
dc903d97a896d4e414efb1cb49f22ce00a49f070trawick
dc903d97a896d4e414efb1cb49f22ce00a49f070trawickINC_PATH += -I$(UTSBASE)/common/brand/lx -I$(LX_CMN)
dc903d97a896d4e414efb1cb49f22ce00a49f070trawick
dc903d97a896d4e414efb1cb49f22ce00a49f070trawick#
dc903d97a896d4e414efb1cb49f22ce00a49f070trawick# lint pass one enforcement
dc903d97a896d4e414efb1cb49f22ce00a49f070trawick#
dc903d97a896d4e414efb1cb49f22ce00a49f070trawickCFLAGS += $(CCVERBOSE)
68f803c489cf61918fb4e61745fcd1e0cc980541jerenkrantz
68f803c489cf61918fb4e61745fcd1e0cc980541jerenkrantzLDFLAGS += -dy -Nexec/elfexec
68f803c489cf61918fb4e61745fcd1e0cc980541jerenkrantz
15405e91bb3fad5a80f7abe828a00b44a3a65bf8jerenkrantz#
15405e91bb3fad5a80f7abe828a00b44a3a65bf8jerenkrantz# For now, disable these lint checks; maintainers should endeavor
15405e91bb3fad5a80f7abe828a00b44a3a65bf8jerenkrantz# to investigate and remove these for maximum lint coverage.
f905b21d99b264dbf26acc30b430ebe92838cdcejerenkrantz# Please do not carry these forward to new Makefiles.
f905b21d99b264dbf26acc30b430ebe92838cdcejerenkrantz#
f905b21d99b264dbf26acc30b430ebe92838cdcejerenkrantzLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0e2340134f2336b98c92d7f157fb65d0a6f477d4stoddardLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
0e2340134f2336b98c92d7f157fb65d0a6f477d4stoddard
431d6106eaf796cc8dfa8cb0db2b180dd93ed6dftrawick#
b3edf21d591bfd0e64bbec0dda73c0e41d7ecdb6wrowe# Default build targets.
b3edf21d591bfd0e64bbec0dda73c0e41d7ecdb6wrowe#
b3edf21d591bfd0e64bbec0dda73c0e41d7ecdb6wrowe.KEEP_STATE:
b3edf21d591bfd0e64bbec0dda73c0e41d7ecdb6wrowe
b3edf21d591bfd0e64bbec0dda73c0e41d7ecdb6wrowedef: $(DEF_DEPS)
b3edf21d591bfd0e64bbec0dda73c0e41d7ecdb6wrowe
5d238058bc748dfa13ff21890ae4a58481e3be89jerenkrantzall: $(ALL_DEPS)
5d238058bc748dfa13ff21890ae4a58481e3be89jerenkrantz
5d238058bc748dfa13ff21890ae4a58481e3be89jerenkrantzclean: $(CLEAN_DEPS)
9282327b0ffe8981d39835130dfb334af192b508jerenkrantz
9282327b0ffe8981d39835130dfb334af192b508jerenkrantzclobber: $(CLOBBER_DEPS)
9282327b0ffe8981d39835130dfb334af192b508jerenkrantz
8fcaadcb287f361bb304d53a69d508500840fafcjerenkrantzlint: $(LINT_DEPS)
8fcaadcb287f361bb304d53a69d508500840fafcjerenkrantz
8fcaadcb287f361bb304d53a69d508500840fafcjerenkrantzmodlintlib: $(MODLINTLIB_DEPS)
8fcaadcb287f361bb304d53a69d508500840fafcjerenkrantz
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantzclean.lint: $(CLEAN_LINT_DEPS)
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantzinstall: $(INSTALL_DEPS)
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz
8af88bd6958b80c224e964892b8237720b13ab1ajerenkrantz#
25b812bcab8b61981e288996b991e0ab4d224b92jerenkrantz# Include common targets.
25b812bcab8b61981e288996b991e0ab4d224b92jerenkrantz#
87f0329e30de94828e08d53a99ea23cda86a9fccjerenkrantzinclude $(UTSBASE)/intel/Makefile.targ
87f0329e30de94828e08d53a99ea23cda86a9fccjerenkrantz
87f0329e30de94828e08d53a99ea23cda86a9fccjerenkrantz#
0396e75f271f51be57be778655e32ba8d64d240bwrowe# Include brand-specific rules
0396e75f271f51be57be778655e32ba8d64d240bwrowe#
0396e75f271f51be57be778655e32ba8d64d240bwrowe
0396e75f271f51be57be778655e32ba8d64d240bwroweinclude $(UTSBASE)/intel/lx_brand/Makefile.rules
0396e75f271f51be57be778655e32ba8d64d240bwrowe