Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
415bb21f281e9b4f905d5893fede9165bdf1491bjim# CDDL HEADER START
415bb21f281e9b4f905d5893fede9165bdf1491bjim#
f743002678eb67b99bbc29fee116b65d9530fec0wrowe# The contents of this file are subject to the terms of the
f743002678eb67b99bbc29fee116b65d9530fec0wrowe# Common Development and Distribution License (the "License").
f743002678eb67b99bbc29fee116b65d9530fec0wrowe# You may not use this file except in compliance with the License.
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
2cd2891cea784de97020bcada4e834e224428d0ccovener# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2cd2891cea784de97020bcada4e834e224428d0ccovener# or http://www.opensolaris.org/os/licensing.
2cd2891cea784de97020bcada4e834e224428d0ccovener# See the License for the specific language governing permissions
2cd2891cea784de97020bcada4e834e224428d0ccovener# and limitations under the License.
1f9c3dc1ba4b56b2c14f40db86f532114504b5cfwrowe#
1f9c3dc1ba4b56b2c14f40db86f532114504b5cfwrowe# When distributing Covered Code, include this CDDL HEADER in each
2cd2891cea784de97020bcada4e834e224428d0ccovener# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2c238b83c08ac2d040d9057b1ba83ba7f71138b7kbrand# If applicable, add the following below this CDDL HEADER, with the
2c238b83c08ac2d040d9057b1ba83ba7f71138b7kbrand# fields enclosed by brackets "[]" replaced with your own identifying
2c238b83c08ac2d040d9057b1ba83ba7f71138b7kbrand# information: Portions Copyright [yyyy] [name of copyright owner]
2c238b83c08ac2d040d9057b1ba83ba7f71138b7kbrand#
067fc2710958d8d2a276cd8e54284a178d232a8bsf# CDDL HEADER END
067fc2710958d8d2a276cd8e54284a178d232a8bsf#
067fc2710958d8d2a276cd8e54284a178d232a8bsf#
40a9ce7a0e17b10b08693f98ed4f64e456ef69a1kbrand# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
40a9ce7a0e17b10b08693f98ed4f64e456ef69a1kbrand# Use is subject to license terms.
40a9ce7a0e17b10b08693f98ed4f64e456ef69a1kbrand#
3a59bb90be3bc6246632384c3d885b875ae507d5sf
3a59bb90be3bc6246632384c3d885b875ae507d5sf# This makefile drives the production of the ibdm kernel module.
3a59bb90be3bc6246632384c3d885b875ae507d5sf#
3a59bb90be3bc6246632384c3d885b875ae507d5sf# intel architecture dependent
c9d1b78375e7ce7c2ccd7162d48da0eb84631bd3covener#
c9d1b78375e7ce7c2ccd7162d48da0eb84631bd3covener
c9d1b78375e7ce7c2ccd7162d48da0eb84631bd3covener#
f7407ba6bea5ed1151cfcefcfa774b531c26eecdrpluem# Path to the base of the uts directory tree (usually /usr/src/uts).
f7407ba6bea5ed1151cfcefcfa774b531c26eecdrpluem#
f7407ba6bea5ed1151cfcefcfa774b531c26eecdrpluemUTSBASE = ../..
f7407ba6bea5ed1151cfcefcfa774b531c26eecdrpluem
650d8321b62cccd1830684935bb5362b4c495b17sf#
650d8321b62cccd1830684935bb5362b4c495b17sf# Define the module and object file sets.
650d8321b62cccd1830684935bb5362b4c495b17sf#
7bf4eb9638a127fbfbc402d2c0e4ec0085934cf0sfMODULE = ibdm
7bf4eb9638a127fbfbc402d2c0e4ec0085934cf0sfOBJECTS = $(IBDM_OBJS:%=$(OBJS_DIR)/%)
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjimLINTS = $(IBDM_OBJS:%.o=$(LINTS_DIR)/%.ln)
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjimROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjimWARLOCK_OUT = $(IBDM_OBJS:%.o=%.ll)
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjimWARLOCK_OK = $(MODULE).ok
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
03944c8577b204701c849fce01f3fcb423a615f1covener#
03944c8577b204701c849fce01f3fcb423a615f1covener# Include common rules.
03944c8577b204701c849fce01f3fcb423a615f1covener#
03944c8577b204701c849fce01f3fcb423a615f1covenerinclude $(UTSBASE)/intel/Makefile.intel
f97e1288a50b3da1022b515d84bc57a5091f2fefcovener
f97e1288a50b3da1022b515d84bc57a5091f2fefcovener#
f97e1288a50b3da1022b515d84bc57a5091f2fefcovener# Define targets
f97e1288a50b3da1022b515d84bc57a5091f2fefcovener#
7a975d0413ba303546b7619e4785cb641f7f09fdcovenerALL_TARGET = $(BINARY)
7a975d0413ba303546b7619e4785cb641f7f09fdcovenerLINT_TARGET = $(MODULE).lint
7a975d0413ba303546b7619e4785cb641f7f09fdcovenerINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
7a975d0413ba303546b7619e4785cb641f7f09fdcovener
77504f17963a8dd941a921d9ddfa25ddb0f348d6kbrand#
77504f17963a8dd941a921d9ddfa25ddb0f348d6kbrand# Overrides.
77504f17963a8dd941a921d9ddfa25ddb0f348d6kbrand#
77504f17963a8dd941a921d9ddfa25ddb0f348d6kbrand
77504f17963a8dd941a921d9ddfa25ddb0f348d6kbrand#
75c2b964ca7ebfb32ad08c68c9db3bca5ecced55covener# lint pass one enforcement
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim#
75c2b964ca7ebfb32ad08c68c9db3bca5ecced55covenerCFLAGS += $(CCVERBOSE)
75c2b964ca7ebfb32ad08c68c9db3bca5ecced55covener
5ab58649d9a4b3af01a4141920613fbf74ced7fdminfrin#
5ab58649d9a4b3af01a4141920613fbf74ced7fdminfrin# depends on misc/ibtl, drv/ib and misc/ibmf
5ab58649d9a4b3af01a4141920613fbf74ced7fdminfrin#
97f293b98fc6777e5baa836c30293f433f3c12e1minfrinLDFLAGS += -dy -Nmisc/ibtl -Nmisc/ibmf
97f293b98fc6777e5baa836c30293f433f3c12e1minfrin
97f293b98fc6777e5baa836c30293f433f3c12e1minfrin#
97f293b98fc6777e5baa836c30293f433f3c12e1minfrin# For now, disable these lint checks; maintainers should endeavor
0e6c63c34b6c118ec6c28ddadda5eefb2584bf7dkbrand# to investigate and remove these for maximum lint coverage.
0e6c63c34b6c118ec6c28ddadda5eefb2584bf7dkbrand# Please do not carry these forward to new Makefiles.
fa0316cc0d5c0e80d275877df428fd8061c0a79dsf#
fa0316cc0d5c0e80d275877df428fd8061c0a79dsfLINTTAGS += -erroff=E_STATIC_UNUSED
fa0316cc0d5c0e80d275877df428fd8061c0a79dsfLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
fa0316cc0d5c0e80d275877df428fd8061c0a79dsf
fa0316cc0d5c0e80d275877df428fd8061c0a79dsfCERRWARN += -_gcc=-Wno-uninitialized
fa0316cc0d5c0e80d275877df428fd8061c0a79dsf
fa0316cc0d5c0e80d275877df428fd8061c0a79dsf#
fa0316cc0d5c0e80d275877df428fd8061c0a79dsf# Default build targets.
97cd2f98ad4abe68aaaba96b5bfc9ebf7109a2c1covener#
97cd2f98ad4abe68aaaba96b5bfc9ebf7109a2c1covener.KEEP_STATE:
97cd2f98ad4abe68aaaba96b5bfc9ebf7109a2c1covener
97cd2f98ad4abe68aaaba96b5bfc9ebf7109a2c1covenerdef: $(DEF_DEPS)
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
60d81cab99dccfbb0c8d378cf6aa7338be0fdb74covenerall: $(ALL_DEPS)
60d81cab99dccfbb0c8d378cf6aa7338be0fdb74covener
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjimclean: $(CLEAN_DEPS)
22ce742224c6aeadcb31b381c203232f578fc507covener $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
22ce742224c6aeadcb31b381c203232f578fc507covener
54e36aed6866e09e1a572dc84996e93cdb487b7bsfclobber: $(CLOBBER_DEPS)
54e36aed6866e09e1a572dc84996e93cdb487b7bsf $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
54e36aed6866e09e1a572dc84996e93cdb487b7bsf
7fc2cdc3683b47fcf5f39a094eddefa7b22dbfc0covenerlint: $(LINT_DEPS)
7fc2cdc3683b47fcf5f39a094eddefa7b22dbfc0covener
7fc2cdc3683b47fcf5f39a094eddefa7b22dbfc0covenermodlintlib: $(MODLINTLIB_DEPS)
7fc2cdc3683b47fcf5f39a094eddefa7b22dbfc0covener
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjimclean.lint: $(CLEAN_LINT_DEPS)
292707b9868335763d6f2bb74a263134eeeb8cadkbrand
292707b9868335763d6f2bb74a263134eeeb8cadkbrandinstall: $(INSTALL_DEPS)
070235bcb25af37efebf6405b082413144968289kbrand
070235bcb25af37efebf6405b082413144968289kbrand#
4281cf6a722c99ae21394dc2000bd48efcebdb3akbrand# Include common targets.
4281cf6a722c99ae21394dc2000bd48efcebdb3akbrand#
4281cf6a722c99ae21394dc2000bd48efcebdb3akbrandinclude $(UTSBASE)/intel/Makefile.targ
f7acc4b00a8bf92fea10fce6ac09aa57eafec0ecjim
c7715b8cd6f5b5f4a27b12d816c6f48c522715f5covener
c7715b8cd6f5b5f4a27b12d816c6f48c522715f5covener#
c7715b8cd6f5b5f4a27b12d816c6f48c522715f5covener# Defines for local commands.
c7715b8cd6f5b5f4a27b12d816c6f48c522715f5covener#
df58c3a1c000d76859808ca4746a41623b432c81sfWARLOCK = warlock
df58c3a1c000d76859808ca4746a41623b432c81sfWLCC = wlcc
df58c3a1c000d76859808ca4746a41623b432c81sfTOUCH = touch
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfTEST = test
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sf
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfwarlock: $(WARLOCK_OK)
bcb2c4ef861e8f8260284631b6753e1088643c8asf
bcb2c4ef861e8f8260284631b6753e1088643c8asf
bcb2c4ef861e8f8260284631b6753e1088643c8asf$(WARLOCK_OK): $(WARLOCK_OUT)
6defa5d20691765eb0b98daf5db4b1004353222esf $(TOUCH) $@
6defa5d20691765eb0b98daf5db4b1004353222esf
415bb21f281e9b4f905d5893fede9165bdf1491bjim%.ll: $(UTSBASE)/common/io/ib/mgt/ibdm/%.c \
09359a90ff115fc5eeb96e1e5c78a58dd9fc59d3jim $(UTSBASE)/common/sys/ib/mgt/ibdm/ibdm_impl.h \
09359a90ff115fc5eeb96e1e5c78a58dd9fc59d3jim $(UTSBASE)/common/sys/ib/mgt/ibdm/ibdm_ibnex.h
3e13c3c3e6517a04c8c20ffb8e62aadb3b13f8dfrjung $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
3e13c3c3e6517a04c8c20ffb8e62aadb3b13f8dfrjung