Makefile revision 03831d35f7499c87d51205817c93e9a8d42c4bae
012a352f4b26cfd874db8d06debc495c2303e8b2Bob Halley#
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# CDDL HEADER START
5c144477062a5df657acee41a82051d38537fd38Tinderbox User#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# The contents of this file are subject to the terms of the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# Common Development and Distribution License (the "License").
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You may not use this file except in compliance with the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# or http://www.opensolaris.org/os/licensing.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# See the License for the specific language governing permissions
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# and limitations under the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# CDDL HEADER END
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt# Use is subject to license terms.
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#pragma ident "%Z%%M% %I% %E% SMI"
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# This makefile drives the production of the cvc driver module.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt# sun4u starcat implementation architecture dependent
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Path to the base of the uts directory tree (usually /usr/src/uts).
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
c7b785510e3f517a0c98c0b6b6e6ad8f359e9e4cMark AndrewsUTSBASE = ../../..
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# Define the module and object file sets.
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyMODULE = cvc
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyOBJECTS = $(CVC_OBJS:%=$(OBJS_DIR)/%)
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntLINTS = $(CVC_OBJS:%.o=$(LINTS_DIR)/%.ln)
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntROOTMODULE = $(ROOT_STARCAT_DRV_DIR)/$(MODULE)
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntCONF_SRCDIR = $(UTSBASE)/sun4u/starcat/io
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt# Include common rules.
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Huntinclude $(UTSBASE)/sun4u/starcat/Makefile.starcat
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Define targets
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
18483fce5b9d1e02748bdcb916014cedea654f78Mark AndrewsALL_TARGET = $(BINARY)
18483fce5b9d1e02748bdcb916014cedea654f78Mark AndrewsLINT_TARGET = $(MODULE).lint
18483fce5b9d1e02748bdcb916014cedea654f78Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) .WAIT $(ROOT_CONFFILE)
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews#
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews# Overrides
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews#
460b427411b72da26b1836b9424e2e70d65d9394David LawrenceALL_BUILDS = $(ALL_BUILDSONLY64)
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyDEF_BUILDS = $(DEF_BUILDSONLY64)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCLEANLINTFILES += $(LINT32_FILES)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence# lint pass one enforcement
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence#
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark AndrewsCFLAGS += $(CCVERBOSE)
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews#
12a3ab37fe6556406acdf92fc7c5f198d603ca2eMark Andrews# module dependencies
f5cfcbf2f7906fb59c2b8b9b8fc9c7a75ac44dabMark Andrews#
2d46d268ccff30bb50e661b47c6496d23d9156c7Mark AndrewsLDFLAGS += -dy -Ndrv/iosram -Ndrv/sbbc
2d46d268ccff30bb50e661b47c6496d23d9156c7Mark Andrews
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Default build targets.
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence.KEEP_STATE:
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
460b427411b72da26b1836b9424e2e70d65d9394David Lawrencedef: $(DEF_DEPS)
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
2d9bd38ec3fbbfe920757b8972d94f664a9b354bMark Andrewsall: $(ALL_DEPS)
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceclean: $(CLEAN_DEPS)
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
8319af16557b81eba3277ee67215285f0823b587Mark Andrewsclobber: $(CLOBBER_DEPS)
8319af16557b81eba3277ee67215285f0823b587Mark Andrews
aee5e9cbacd8f88325840b8a498876f4319b0890Mark Andrewslint: $(LINT_DEPS)
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
9e5854255178c04170bc98839282d4cf3fae7443Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
f7a6d4f915ce622d988916397f313b33ae954afcMark Andrews
f7a6d4f915ce622d988916397f313b33ae954afcMark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceinstall: $(INSTALL_DEPS)
66c9805347f24da946c17a881e489ffe2e89c25dMark Andrews
66c9805347f24da946c17a881e489ffe2e89c25dMark Andrews#
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews# Include common targets.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
66c9805347f24da946c17a881e489ffe2e89c25dMark Andrewsinclude $(UTSBASE)/sun4u/starcat/Makefile.targ
66c9805347f24da946c17a881e489ffe2e89c25dMark Andrews