Makefile revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb# 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").
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb# You may not use this file except in compliance with the License.
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb#
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# or http://www.opensolaris.org/os/licensing.
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# See the License for the specific language governing permissions
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# and limitations under the License.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# When distributing Covered Code, include this CDDL HEADER in each
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard# 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#
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard# CDDL HEADER END
91a71946d0fb28c0866139edef3dd59f36ba5b9cstoddard#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj#
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Use is subject to license terms.
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard#
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard#
85cbdc16ac57fa68ce1358a308269abcd417f4d9stoddard# This makefile drives the production of the xnbo
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard# network driver kernel module.
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard#
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard# i86xpv architecture dependent
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard#
10b386767f6c87b45937244371cb751f0b454d16wrowe
10b386767f6c87b45937244371cb751f0b454d16wrowe#
75960f20f88dad6bc67892c711c429946063d133stoddard# Path to the base of the uts directory tree (usually /usr/src/uts).
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddardUTSBASE = ../..
75960f20f88dad6bc67892c711c429946063d133stoddard
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddard# Define the module and object file sets.
75960f20f88dad6bc67892c711c429946063d133stoddard#
10b386767f6c87b45937244371cb751f0b454d16wroweMODULE = xnbo
10b386767f6c87b45937244371cb751f0b454d16wroweOBJECTS = $(XNBO_OBJS:%=$(OBJS_DIR)/%)
10b386767f6c87b45937244371cb751f0b454d16wroweLINTS = $(XNBO_OBJS:%.o=$(LINTS_DIR)/%.ln)
10b386767f6c87b45937244371cb751f0b454d16wroweROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
10b386767f6c87b45937244371cb751f0b454d16wrowe
10b386767f6c87b45937244371cb751f0b454d16wrowe#
10b386767f6c87b45937244371cb751f0b454d16wrowe# Include common rules.
10b386767f6c87b45937244371cb751f0b454d16wrowe#
10b386767f6c87b45937244371cb751f0b454d16wroweinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
10b386767f6c87b45937244371cb751f0b454d16wrowe
10b386767f6c87b45937244371cb751f0b454d16wrowe#
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj# Define targets
f6a6245816cd866361da8c576b1f47c7a54b6610fanf#
f6a6245816cd866361da8c576b1f47c7a54b6610fanfALL_TARGET = $(BINARY)
97b758d0b174d7b7c5a1de1a583f5840ec3fc910trawickLINT_TARGET = $(MODULE).lint
db3ccce11afac4fc1d4f51a65424412f7480c46cgsteinINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
641cb23141f2238ed09e3b9fa79189225f8a2bcbrbb
641cb23141f2238ed09e3b9fa79189225f8a2bcbrbb#
641cb23141f2238ed09e3b9fa79189225f8a2bcbrbb# Overrides
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
b187d568e1507d75139ebc13ca945b38fc05d55cstoddardDEF_BUILDS = $(DEF_BUILDS64)
b187d568e1507d75139ebc13ca945b38fc05d55cstoddardALL_BUILDS = $(ALL_BUILDS64)
b187d568e1507d75139ebc13ca945b38fc05d55cstoddard
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard#
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard# Driver depends on xnb and mac.
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard#
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddardLDFLAGS += -dy -N misc/xnb -N misc/mac
1c6fb1e726ce22694de0e9a957adb67b929e5d4fstoddard
8bed76428f56e5c643174a2d6807c3f18016af5cbjh#
8bed76428f56e5c643174a2d6807c3f18016af5cbjh# use Solaris specific code in xen public header files
8bed76428f56e5c643174a2d6807c3f18016af5cbjh#
8bed76428f56e5c643174a2d6807c3f18016af5cbjhCFLAGS += -D_SOLARIS
8bed76428f56e5c643174a2d6807c3f18016af5cbjhLINTFLAGS += -D_SOLARIS
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard#
cfc020d6d6fc9b31d8945915e65a8787a796eb73stoddard# Default build targets.
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard#
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard.KEEP_STATE:
10b386767f6c87b45937244371cb751f0b454d16wrowe
10b386767f6c87b45937244371cb751f0b454d16wrowedef: $(DEF_DEPS)
10b386767f6c87b45937244371cb751f0b454d16wrowe
10b386767f6c87b45937244371cb751f0b454d16wroweall: $(ALL_DEPS)
10b386767f6c87b45937244371cb751f0b454d16wrowe
10b386767f6c87b45937244371cb751f0b454d16wrowe# This build only 64-bit, but the lint32 below
10b386767f6c87b45937244371cb751f0b454d16wrowe# needs corresponding clean/clobber deps.
10b386767f6c87b45937244371cb751f0b454d16wroweclean: $(CLEAN_DEPS) clean.debug32
75960f20f88dad6bc67892c711c429946063d133stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardclobber: $(CLOBBER_DEPS) clobber.debug32
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardlint: $(LINT_DEPS)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardmodlintlib: $(MODLINTLIB_DEPS) lint32
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanojclean.lint: $(CLEAN_LINT_DEPS)
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj
56ca30c968906053ae61acb218420667bb58d996rbbinstall: $(INSTALL_DEPS)
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manoj#
0bff2f28ef945280c17099c142126178a78e1e54manoj# Include common targets.
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard#
1e585ba09ea32272e63c4c39c35491e975d21d98stoddardinclude $(UTSBASE)/i86xpv/Makefile.targ
1e585ba09ea32272e63c4c39c35491e975d21d98stoddard