xref: /titanic_44/usr/src/uts/sparc/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
25*c0dd49bdSEiji Ota#
26*c0dd49bdSEiji Ota#	This makefile drives the production of the nca driver
27*c0dd49bdSEiji Ota#	kernel module.
28*c0dd49bdSEiji Ota#
29*c0dd49bdSEiji Ota#	sparc architecture dependent
30*c0dd49bdSEiji Ota#
31*c0dd49bdSEiji Ota
32*c0dd49bdSEiji Ota#
33*c0dd49bdSEiji Ota#	Path to the base of the uts directory tree (usually /usr/src/uts).
34*c0dd49bdSEiji Ota#
35*c0dd49bdSEiji OtaUTSBASE	= ../..
36*c0dd49bdSEiji Ota
37*c0dd49bdSEiji Ota#
38*c0dd49bdSEiji Ota#	Define the module and object file sets.
39*c0dd49bdSEiji Ota#
40*c0dd49bdSEiji OtaMODULE		= sockrds
41*c0dd49bdSEiji OtaOBJECTS		= $(RDS_SOCK_MOD_OBJS:%=$(OBJS_DIR)/%)
42*c0dd49bdSEiji OtaLINTS		= $(RDS_SOCK_MOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
43*c0dd49bdSEiji OtaROOTMODULE	= $(ROOT_SOCK_DIR)/$(MODULE)
44*c0dd49bdSEiji Ota
45*c0dd49bdSEiji Ota#
46*c0dd49bdSEiji Ota#	Include common rules.
47*c0dd49bdSEiji Ota#
48*c0dd49bdSEiji Otainclude $(UTSBASE)/sparc/Makefile.sparc
49*c0dd49bdSEiji Ota
50*c0dd49bdSEiji Ota#
51*c0dd49bdSEiji Ota#	Define targets
52*c0dd49bdSEiji Ota#
53*c0dd49bdSEiji OtaALL_TARGET	= $(BINARY)
54*c0dd49bdSEiji OtaLINT_TARGET	= $(MODULE).lint
55*c0dd49bdSEiji OtaINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
56*c0dd49bdSEiji Ota
57*c0dd49bdSEiji Ota#
58*c0dd49bdSEiji Ota# lint pass one enforcement and OS version
59*c0dd49bdSEiji Ota#
60*c0dd49bdSEiji OtaCFLAGS += $(CCVERBOSE)
61*c0dd49bdSEiji Ota
62*c0dd49bdSEiji OtaLDFLAGS += -dy -Nfs/sockfs -Ndrv/ip -Ndrv/rdsv3
63*c0dd49bdSEiji Ota
64*c0dd49bdSEiji Ota#
65*c0dd49bdSEiji Ota#	Default build targets.
66*c0dd49bdSEiji Ota#
67*c0dd49bdSEiji Ota.KEEP_STATE:
68*c0dd49bdSEiji Ota
69*c0dd49bdSEiji Otadef:		$(DEF_DEPS)
70*c0dd49bdSEiji Ota
71*c0dd49bdSEiji Otaall:		$(ALL_DEPS)
72*c0dd49bdSEiji Ota
73*c0dd49bdSEiji Otaclean:		$(CLEAN_DEPS)
74*c0dd49bdSEiji Ota
75*c0dd49bdSEiji Otaclobber:	$(CLOBBER_DEPS)
76*c0dd49bdSEiji Ota
77*c0dd49bdSEiji Otalint:		$(LINT_DEPS)
78*c0dd49bdSEiji Ota
79*c0dd49bdSEiji Otamodlintlib:	$(MODLINTLIB_DEPS)
80*c0dd49bdSEiji Ota
81*c0dd49bdSEiji Otaclean.lint:	$(CLEAN_LINT_DEPS)
82*c0dd49bdSEiji Ota
83*c0dd49bdSEiji Otainstall:	$(INSTALL_DEPS)
84*c0dd49bdSEiji Ota
85*c0dd49bdSEiji Ota#
86*c0dd49bdSEiji Ota#	Include common targets.
87*c0dd49bdSEiji Ota#
88*c0dd49bdSEiji Otainclude $(UTSBASE)/sparc/Makefile.targ
89