Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
f28466227fec298258b3f134dcc8cb795e44c3d7rbb# 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.
f28466227fec298258b3f134dcc8cb795e44c3d7rbb#
f28466227fec298258b3f134dcc8cb795e44c3d7rbb# 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
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# information: Portions Copyright [yyyy] [name of copyright owner]
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard#
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# CDDL HEADER END
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb# Use is subject to license terms.
632b0b53511f3bb9c32aa2869fbc73ee35081b38rbb#
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb
f6a6245816cd866361da8c576b1f47c7a54b6610fanf#
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj# This makefile drives the production of the pcan driver kernel module.
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# intel implementation architecture dependent
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj#
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# Path to the base of the uts directory tree (usually /usr/src/uts).
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard#
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddardUTSBASE = ../..
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard#
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard# Define the module and object file sets.
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard#
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardMODULE = pcan
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardOBJECTS = $(PCAN_OBJS:%=$(OBJS_DIR)/%)
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardLINTS = $(PCAN_OBJS:%.o=$(LINTS_DIR)/%.ln)
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard
75960f20f88dad6bc67892c711c429946063d133stoddard
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddard# Include common rules.
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddardinclude $(UTSBASE)/intel/Makefile.intel
75960f20f88dad6bc67892c711c429946063d133stoddard
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddard# Define targets
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj#
f6a6245816cd866361da8c576b1f47c7a54b6610fanfALL_TARGET = $(BINARY) $(ITUMOD)
f6a6245816cd866361da8c576b1f47c7a54b6610fanfLINT_TARGET = $(MODULE).lint
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manojINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard#
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard# Override defaults to build a unique, local modstubs.o.
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard#
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddardMODSTUBS_DIR = $(OBJS_DIR)
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddardCLEANFILES += $(MODSTUBS_O)
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddardINC_PATH += -I$(UTSBASE)/common/pcmcia
f824925ac58ff729289c017235eeb3bdd21ec3a2stoddard
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard#
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard# lint pass one enforcement
670734c2ee137c587411795c6f82566c9d3729b7coar#
670734c2ee137c587411795c6f82566c9d3729b7coarCFLAGS += $(CCVERBOSE)
75960f20f88dad6bc67892c711c429946063d133stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# STREAMS API limitations force us to turn off these lint checks.
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
56ca30c968906053ae61acb218420667bb58d996rbbCERRWARN += -_gcc=-Wno-parentheses
56ca30c968906053ae61acb218420667bb58d996rbbCERRWARN += -_gcc=-Wno-unused-label
56ca30c968906053ae61acb218420667bb58d996rbbCERRWARN += -_gcc=-Wno-switch
56ca30c968906053ae61acb218420667bb58d996rbb
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj#
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# dependency
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj#
56ca30c968906053ae61acb218420667bb58d996rbbLDFLAGS += -dy -Nmisc/mac -Ndrv/ip
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manoj#
0bff2f28ef945280c17099c142126178a78e1e54manoj# Default build targets.
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard#
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard.KEEP_STATE:
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddarddef: $(DEF_DEPS)
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddardall: $(ALL_DEPS)
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardclean: $(CLEAN_DEPS)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardclobber: $(CLOBBER_DEPS)
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manojlint: $(LINT_DEPS)
0bff2f28ef945280c17099c142126178a78e1e54manoj
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardmodlintlib: $(MODLINTLIB_DEPS)
75960f20f88dad6bc67892c711c429946063d133stoddard
1e585ba09ea32272e63c4c39c35491e975d21d98stoddardclean.lint: $(CLEAN_LINT_DEPS)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
aa1faea36e4ae357bc603a2337b6adc54f5daec1manojinstall: $(INSTALL_DEPS)
f03d292915be9977eaf74e9be7b0404aec226f84manoj
f03d292915be9977eaf74e9be7b0404aec226f84manoj#
f03d292915be9977eaf74e9be7b0404aec226f84manoj# Include common targets.
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj#
bd929c73ef04789b7183b840d8db6e01d03a4d86rbbinclude $(UTSBASE)/intel/Makefile.targ
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj