Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
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#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt# Use is subject to license terms.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#ident "%Z%%M% %I% %E% SMI"
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# This file makes the PCMCIA Event Manager driver for a sparc system
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# sparc architecture dependent
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Path to the base of the uts directory tree (usually /usr/src/uts).
c7b785510e3f517a0c98c0b6b6e6ad8f359e9e4cMark Andrews#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntUTSBASE = ../..
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt# Define the module and object file sets.
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyMODULE = pem
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntOBJECTS = $(PEM_OBJS:%=$(OBJS_DIR)/%)
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntLINTS = $(PEM_OBJS:%.o=$(LINTS_DIR)/%.ln)
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntCONF_SRCDIR = $(UTSBASE)/common/pcmcia/pem
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt# Include common rules.
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt#
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Huntinclude $(UTSBASE)/sparc/Makefile.sparc
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# Define targets
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews#
18483fce5b9d1e02748bdcb916014cedea654f78Mark AndrewsALL_TARGET = $(BINARY) $(SRC_CONFILE)
18483fce5b9d1e02748bdcb916014cedea654f78Mark AndrewsLINT_TARGET = $(MODULE).lint
18483fce5b9d1e02748bdcb916014cedea654f78Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews#
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews# Override defaults to build a unique, local modstubs.o.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
0b72c791466d0807bcf22522b5ddb7da902c2720Bob HalleyMODSTUBS_DIR = $(OBJS_DIR)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence$(MODSTUBS_O) := AS_CPPFLAGS += -DPEM_MODULE
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCLEANFILES += $(MODSTUBS_O)
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan HuntDEF_BUILDS = $(DEF_BUILDS64)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceALL_BUILDS = $(ALL_BUILDS64)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David LawrenceCLEANLINTFILES += $(LINT64_FILES)
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews#
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews# lint pass one enforcement
12a3ab37fe6556406acdf92fc7c5f198d603ca2eMark Andrews#
f5cfcbf2f7906fb59c2b8b9b8fc9c7a75ac44dabMark AndrewsCFLAGS += $(CCVERBOSE)
2d46d268ccff30bb50e661b47c6496d23d9156c7Mark Andrews
2d46d268ccff30bb50e661b47c6496d23d9156c7Mark Andrews#
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews# For now, disable these lint checks; maintainers should endeavor
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# to investigate and remove these for maximum lint coverage.
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews# Please do not carry these forward to new Makefiles.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
18483fce5b9d1e02748bdcb916014cedea654f78Mark AndrewsLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews#
2d9bd38ec3fbbfe920757b8972d94f664a9b354bMark Andrews# Default build targets.
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews#
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence.KEEP_STATE:
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
8319af16557b81eba3277ee67215285f0823b587Mark Andrewsdef: $(DEF_DEPS)
8319af16557b81eba3277ee67215285f0823b587Mark Andrews
aee5e9cbacd8f88325840b8a498876f4319b0890Mark Andrewsall: $(ALL_DEPS)
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
9e5854255178c04170bc98839282d4cf3fae7443Mark Andrewsclean: $(CLEAN_DEPS)
f7a6d4f915ce622d988916397f313b33ae954afcMark Andrews
f7a6d4f915ce622d988916397f313b33ae954afcMark Andrewsclobber: $(CLOBBER_DEPS)
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
460b427411b72da26b1836b9424e2e70d65d9394David Lawrencelint: $(LINT_DEPS)
66c9805347f24da946c17a881e489ffe2e89c25dMark Andrews
66c9805347f24da946c17a881e489ffe2e89c25dMark Andrewsmodlintlib: $(MODLINTLIB_DEPS) lint64
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceclean.lint: $(CLEAN_LINT_DEPS)
66c9805347f24da946c17a881e489ffe2e89c25dMark Andrews
66c9805347f24da946c17a881e489ffe2e89c25dMark Andrewsinstall: $(INSTALL_DEPS)
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence
c32b87bc54abacf95fb3b063d72b7d1855c1643bMichael Graff#
7f9f8c13c5e5e26e0ba2b82c0900d11ecf6269ceMark Andrews# Include common targets.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence#
c3e6fbe4b7471d843d015e3f1737b7edb9d0c547Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
c3e6fbe4b7471d843d015e3f1737b7edb9d0c547Mark Andrews