xref: /titanic_41/usr/src/uts/intel/sockrds/Makefile (revision c0dd49bdd68c0d758a67d56f07826f3b45cfc664)
1*c0dd49bdSEiji Ota#
2*c0dd49bdSEiji Ota# CDDL HEADER START
3*c0dd49bdSEiji Ota#
4*c0dd49bdSEiji Ota# The contents of this file are subject to the terms of the
5*c0dd49bdSEiji Ota# Common Development and Distribution License (the "License").
6*c0dd49bdSEiji Ota# You may not use this file except in compliance with the License.
7*c0dd49bdSEiji Ota#
8*c0dd49bdSEiji Ota# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*c0dd49bdSEiji Ota# or http://www.opensolaris.org/os/licensing.
10*c0dd49bdSEiji Ota# See the License for the specific language governing permissions
11*c0dd49bdSEiji Ota# and limitations under the License.
12*c0dd49bdSEiji Ota#
13*c0dd49bdSEiji Ota# When distributing Covered Code, include this CDDL HEADER in each
14*c0dd49bdSEiji Ota# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*c0dd49bdSEiji Ota# If applicable, add the following below this CDDL HEADER, with the
16*c0dd49bdSEiji Ota# fields enclosed by brackets "[]" replaced with your own identifying
17*c0dd49bdSEiji Ota# information: Portions Copyright [yyyy] [name of copyright owner]
18*c0dd49bdSEiji Ota#
19*c0dd49bdSEiji Ota# CDDL HEADER END
20*c0dd49bdSEiji Ota#
21*c0dd49bdSEiji Ota#
22*c0dd49bdSEiji Ota# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23*c0dd49bdSEiji Ota#
24*c0dd49bdSEiji Ota#	This makefile drives the production of the nca driver
25*c0dd49bdSEiji Ota#	kernel module.
26*c0dd49bdSEiji Ota#
27*c0dd49bdSEiji Ota#	intel architecture dependent
28*c0dd49bdSEiji Ota#
29*c0dd49bdSEiji Ota
30*c0dd49bdSEiji Ota#
31*c0dd49bdSEiji Ota#	Path to the base of the uts directory tree (usually /usr/src/uts).
32*c0dd49bdSEiji Ota#
33*c0dd49bdSEiji OtaUTSBASE	= ../..
34*c0dd49bdSEiji Ota
35*c0dd49bdSEiji Ota#
36*c0dd49bdSEiji Ota#	Define the module and object file sets.
37*c0dd49bdSEiji Ota#
38*c0dd49bdSEiji OtaMODULE		= sockrds
39*c0dd49bdSEiji OtaOBJECTS		= $(RDS_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%)
40*c0dd49bdSEiji OtaLINTS		= $(RDS_SOCK_MOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
41*c0dd49bdSEiji OtaROOTMODULE	= $(ROOT_SOCK_DIR)/$(MODULE)
42*c0dd49bdSEiji Ota
43*c0dd49bdSEiji Ota#
44*c0dd49bdSEiji Ota#	Include common rules.
45*c0dd49bdSEiji Ota#
46*c0dd49bdSEiji Otainclude $(UTSBASE)/intel/Makefile.intel
47*c0dd49bdSEiji Ota
48*c0dd49bdSEiji Ota#
49*c0dd49bdSEiji Ota#	Define targets
50*c0dd49bdSEiji Ota#
51*c0dd49bdSEiji OtaALL_TARGET	= $(BINARY)
52*c0dd49bdSEiji OtaLINT_TARGET	= $(MODULE).lint
53*c0dd49bdSEiji OtaINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54*c0dd49bdSEiji Ota
55*c0dd49bdSEiji Ota#
56*c0dd49bdSEiji Ota# lint pass one enforcement and OS version
57*c0dd49bdSEiji Ota#
58*c0dd49bdSEiji OtaCFLAGS += $(CCVERBOSE)
59*c0dd49bdSEiji Ota
60*c0dd49bdSEiji OtaLDFLAGS += -dy -Nfs/sockfs -Ndrv/ip -Ndrv/rdsv3
61*c0dd49bdSEiji Ota
62*c0dd49bdSEiji Ota#
63*c0dd49bdSEiji Ota#	Default build targets.
64*c0dd49bdSEiji Ota#
65*c0dd49bdSEiji Ota.KEEP_STATE:
66*c0dd49bdSEiji Ota
67*c0dd49bdSEiji Otadef:		$(DEF_DEPS)
68*c0dd49bdSEiji Ota
69*c0dd49bdSEiji Otaall:		$(ALL_DEPS)
70*c0dd49bdSEiji Ota
71*c0dd49bdSEiji Otaclean:		$(CLEAN_DEPS)
72*c0dd49bdSEiji Ota
73*c0dd49bdSEiji Otaclobber:	$(CLOBBER_DEPS)
74*c0dd49bdSEiji Ota
75*c0dd49bdSEiji Otalint:		$(LINT_DEPS)
76*c0dd49bdSEiji Ota
77*c0dd49bdSEiji Otamodlintlib:	$(MODLINTLIB_DEPS)
78*c0dd49bdSEiji Ota
79*c0dd49bdSEiji Otaclean.lint:	$(CLEAN_LINT_DEPS)
80*c0dd49bdSEiji Ota
81*c0dd49bdSEiji Otainstall:	$(INSTALL_DEPS)
82*c0dd49bdSEiji Ota
83*c0dd49bdSEiji Ota#
84*c0dd49bdSEiji Ota#	Include common targets.
85*c0dd49bdSEiji Ota#
86*c0dd49bdSEiji Otainclude $(UTSBASE)/intel/Makefile.targ
87