xref: /titanic_41/usr/src/uts/sun4u/opl/dm2s/Makefile (revision 25cf1a301a396c38e8adf52c15f537b80d2483f7)
1*25cf1a30Sjl139090#
2*25cf1a30Sjl139090# CDDL HEADER START
3*25cf1a30Sjl139090#
4*25cf1a30Sjl139090# The contents of this file are subject to the terms of the
5*25cf1a30Sjl139090# Common Development and Distribution License (the "License").
6*25cf1a30Sjl139090# You may not use this file except in compliance with the License.
7*25cf1a30Sjl139090#
8*25cf1a30Sjl139090# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*25cf1a30Sjl139090# or http://www.opensolaris.org/os/licensing.
10*25cf1a30Sjl139090# See the License for the specific language governing permissions
11*25cf1a30Sjl139090# and limitations under the License.
12*25cf1a30Sjl139090#
13*25cf1a30Sjl139090# When distributing Covered Code, include this CDDL HEADER in each
14*25cf1a30Sjl139090# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*25cf1a30Sjl139090# If applicable, add the following below this CDDL HEADER, with the
16*25cf1a30Sjl139090# fields enclosed by brackets "[]" replaced with your own identifying
17*25cf1a30Sjl139090# information: Portions Copyright [yyyy] [name of copyright owner]
18*25cf1a30Sjl139090#
19*25cf1a30Sjl139090# CDDL HEADER END
20*25cf1a30Sjl139090#
21*25cf1a30Sjl139090#
22*25cf1a30Sjl139090# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*25cf1a30Sjl139090# Use is subject to license terms.
24*25cf1a30Sjl139090#
25*25cf1a30Sjl139090# ident	"%Z%%M%	%I%	%E% SMI"
26*25cf1a30Sjl139090#
27*25cf1a30Sjl139090#	This makefile drives the production of the dm2s driver
28*25cf1a30Sjl139090#	kernel module.
29*25cf1a30Sjl139090#
30*25cf1a30Sjl139090#	sun4u implementation architecture dependent
31*25cf1a30Sjl139090#
32*25cf1a30Sjl139090
33*25cf1a30Sjl139090#
34*25cf1a30Sjl139090#	Path to the base of the uts directory tree (usually /usr/src/uts).
35*25cf1a30Sjl139090#
36*25cf1a30Sjl139090UTSBASE	= ../../..
37*25cf1a30Sjl139090
38*25cf1a30Sjl139090#
39*25cf1a30Sjl139090#	Define the module and object file sets.
40*25cf1a30Sjl139090#
41*25cf1a30Sjl139090
42*25cf1a30Sjl139090MODULE		= dm2s
43*25cf1a30Sjl139090OBJECTS		= $(DM2S_OBJS:%=$(OBJS_DIR)/%)
44*25cf1a30Sjl139090LINTS		= $(DM2S_OBJS:%.o=$(LINTS_DIR)/%.ln)
45*25cf1a30Sjl139090ROOTMODULE	= $(ROOT_OPL_DRV_DIR)/$(MODULE)
46*25cf1a30Sjl139090CONF_SRCDIR	= $(UTSBASE)/sun4u/opl/io
47*25cf1a30Sjl139090
48*25cf1a30Sjl139090#
49*25cf1a30Sjl139090#	Include common rules.
50*25cf1a30Sjl139090#
51*25cf1a30Sjl139090include $(UTSBASE)/sun4u/opl/Makefile.opl
52*25cf1a30Sjl139090
53*25cf1a30Sjl139090#
54*25cf1a30Sjl139090#	Define targets
55*25cf1a30Sjl139090#
56*25cf1a30Sjl139090ALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
57*25cf1a30Sjl139090LINT_TARGET	= $(MODULE).lint
58*25cf1a30Sjl139090INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59*25cf1a30Sjl139090
60*25cf1a30Sjl139090#
61*25cf1a30Sjl139090#	Overrides
62*25cf1a30Sjl139090#
63*25cf1a30Sjl139090ALL_BUILDS	= $(ALL_BUILDSONLY64)
64*25cf1a30Sjl139090DEF_BUILDS	= $(DEF_BUILDSONLY64)
65*25cf1a30Sjl139090CLEANLINTFILES	+= $(LINT32_FILES)
66*25cf1a30Sjl139090
67*25cf1a30Sjl139090#
68*25cf1a30Sjl139090# lint pass one enforcement
69*25cf1a30Sjl139090#
70*25cf1a30Sjl139090CFLAGS += $(CCVERBOSE)
71*25cf1a30Sjl139090
72*25cf1a30Sjl139090#
73*25cf1a30Sjl139090# Turn on doubleword alignment for 64 bit registers
74*25cf1a30Sjl139090#
75*25cf1a30Sjl139090CFLAGS += -dalign
76*25cf1a30Sjl139090
77*25cf1a30Sjl139090#
78*25cf1a30Sjl139090#	Dependency
79*25cf1a30Sjl139090LDFLAGS	+= -dy -Ndrv/scfd
80*25cf1a30Sjl139090
81*25cf1a30Sjl139090#
82*25cf1a30Sjl139090#	Default build targets.
83*25cf1a30Sjl139090#
84*25cf1a30Sjl139090.KEEP_STATE:
85*25cf1a30Sjl139090
86*25cf1a30Sjl139090def:		$(DEF_DEPS)
87*25cf1a30Sjl139090
88*25cf1a30Sjl139090all:		$(ALL_DEPS)
89*25cf1a30Sjl139090
90*25cf1a30Sjl139090clean:		$(CLEAN_DEPS)
91*25cf1a30Sjl139090
92*25cf1a30Sjl139090clobber:	$(CLOBBER_DEPS)
93*25cf1a30Sjl139090
94*25cf1a30Sjl139090lint:		$(LINT_DEPS)
95*25cf1a30Sjl139090
96*25cf1a30Sjl139090modlintlib:	$(MODLINTLIB_DEPS)
97*25cf1a30Sjl139090
98*25cf1a30Sjl139090clean.lint:	$(CLEAN_LINT_DEPS)
99*25cf1a30Sjl139090
100*25cf1a30Sjl139090install:	$(INSTALL_DEPS)
101*25cf1a30Sjl139090
102*25cf1a30Sjl139090#
103*25cf1a30Sjl139090#	Include common targets.
104*25cf1a30Sjl139090#
105*25cf1a30Sjl139090include $(UTSBASE)/sun4u/opl/Makefile.targ
106