xref: /titanic_41/usr/src/uts/intel/rdsib/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1b86efd96Sagiri#
2b86efd96Sagiri# CDDL HEADER START
3b86efd96Sagiri#
4b86efd96Sagiri# The contents of this file are subject to the terms of the
5b86efd96Sagiri# Common Development and Distribution License (the "License").
6b86efd96Sagiri# You may not use this file except in compliance with the License.
7b86efd96Sagiri#
8b86efd96Sagiri# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b86efd96Sagiri# or http://www.opensolaris.org/os/licensing.
10b86efd96Sagiri# See the License for the specific language governing permissions
11b86efd96Sagiri# and limitations under the License.
12b86efd96Sagiri#
13b86efd96Sagiri# When distributing Covered Code, include this CDDL HEADER in each
14b86efd96Sagiri# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b86efd96Sagiri# If applicable, add the following below this CDDL HEADER, with the
16b86efd96Sagiri# fields enclosed by brackets "[]" replaced with your own identifying
17b86efd96Sagiri# information: Portions Copyright [yyyy] [name of copyright owner]
18b86efd96Sagiri#
19b86efd96Sagiri# CDDL HEADER END
20b86efd96Sagiri#
21b86efd96Sagiri#
225ce5f367Srshoaib# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23b86efd96Sagiri# Use is subject to license terms.
24b86efd96Sagiri#
25b86efd96Sagiri
26b86efd96Sagiri#
27b86efd96Sagiri#	Path to the base of the uts directory tree (usually /usr/src/uts).
28b86efd96Sagiri#
29b86efd96SagiriUTSBASE	= ../..
30b86efd96Sagiri
31b86efd96Sagiri#
32b86efd96Sagiri#	Define the module and object file sets.
33b86efd96Sagiri#
34b86efd96SagiriMODULE		= rdsib
35b86efd96SagiriOBJECTS		= $(RDSIB_OBJS:%=$(OBJS_DIR)/%)
36b86efd96SagiriLINTS		= $(RDSIB_OBJS:%.o=$(LINTS_DIR)/%.ln)
37b86efd96SagiriROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
385ce5f367SrshoaibLDFLAGS		+= -dy -Ndrv/rds -Nmisc/ibtl -Nmisc/ibcm -Ndrv/ip
39b86efd96SagiriCONF_SRCDIR	= $(UTSBASE)/common/io/ib/clients/rds
40b86efd96Sagiri#
41b86efd96Sagiri#	Include common rules.
42b86efd96Sagiri#
43b86efd96Sagiriinclude $(UTSBASE)/intel/Makefile.intel
44b86efd96Sagiri
45*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
46*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
47*7014882cSRichard Lowe
48b86efd96Sagiri#
49b86efd96Sagiri#	Define targets
50b86efd96Sagiri#
51b86efd96SagiriALL_TARGET	= $(BINARY) $(SRC_CONFILE)
52b86efd96SagiriLINT_TARGET	= $(MODULE).lint
53b86efd96SagiriINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
54b86efd96Sagiri
55b86efd96Sagiri#
56b86efd96Sagiri#	Default build targets.
57b86efd96Sagiri#
58b86efd96Sagiri.KEEP_STATE:
59b86efd96Sagiri
60b86efd96Sagiridef:		$(DEF_DEPS)
61b86efd96Sagiri
62b86efd96Sagiriall:		$(ALL_DEPS)
63b86efd96Sagiri
64b86efd96Sagiriclean:		$(CLEAN_DEPS)
65b86efd96Sagiri
66b86efd96Sagiriclobber:	$(CLOBBER_DEPS)
67b86efd96Sagiri
68b86efd96Sagirilint:		$(LINT_DEPS)
69b86efd96Sagiri
70b86efd96Sagirimodlintlib:	$(MODLINTLIB_DEPS)
71b86efd96Sagiri
72b86efd96Sagiriclean.lint:	$(CLEAN_LINT_DEPS)
73b86efd96Sagiri
74b86efd96Sagiriinstall:	$(INSTALL_DEPS)
75b86efd96Sagiri
76b86efd96Sagiri#
77b86efd96Sagiri#	Include common targets.
78b86efd96Sagiri#
79b86efd96Sagiriinclude $(UTSBASE)/intel/Makefile.targ
80b86efd96Sagiri
81