xref: /titanic_44/usr/src/uts/sparc/fcodem/Makefile (revision 7aadd8d46c796a3216546b68c6a9d6de40f9d80d)
1b65731f1Skini#
2b65731f1Skini# CDDL HEADER START
3b65731f1Skini#
4b65731f1Skini# The contents of this file are subject to the terms of the
5*7aadd8d4Skini# Common Development and Distribution License (the "License").
6*7aadd8d4Skini# You may not use this file except in compliance with the License.
7b65731f1Skini#
8b65731f1Skini# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b65731f1Skini# or http://www.opensolaris.org/os/licensing.
10b65731f1Skini# See the License for the specific language governing permissions
11b65731f1Skini# and limitations under the License.
12b65731f1Skini#
13b65731f1Skini# When distributing Covered Code, include this CDDL HEADER in each
14b65731f1Skini# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b65731f1Skini# If applicable, add the following below this CDDL HEADER, with the
16b65731f1Skini# fields enclosed by brackets "[]" replaced with your own identifying
17b65731f1Skini# information: Portions Copyright [yyyy] [name of copyright owner]
18b65731f1Skini#
19b65731f1Skini# CDDL HEADER END
20b65731f1Skini#
21b65731f1Skini#
22b65731f1Skini# uts/sparc/fcodem/Makefile
23b65731f1Skini#
24b65731f1Skini# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25b65731f1Skini# Use is subject to license terms.
26b65731f1Skini#
27b65731f1Skini#ident	"%Z%%M%	%I%	%E% SMI"
28b65731f1Skini#
29b65731f1Skini#	This makefile drives the production of the fcodem misc kernel module
30b65731f1Skini#
31b65731f1Skini#	sparc implementation architecture dependent
32b65731f1Skini#
33b65731f1Skini
34b65731f1Skini#
35b65731f1Skini#	Path to the base of the uts directory tree (usually /usr/src/uts).
36b65731f1Skini#
37b65731f1SkiniUTSBASE	= ../..
38b65731f1Skini
39b65731f1Skini#
40b65731f1Skini#	Define the module and object file sets.
41b65731f1Skini#
42b65731f1SkiniMODULE		= fcodem
43b65731f1SkiniOBJECTS		= $(FCODEM_OBJS:%=$(OBJS_DIR)/%)
44b65731f1SkiniLINTS		= $(FCODEM_OBJS:%.o=$(LINTS_DIR)/%.ln)
45b65731f1SkiniROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
46b65731f1Skini
47b65731f1Skini#
48b65731f1Skini#	Include common rules.
49b65731f1Skini#
50b65731f1Skiniinclude $(UTSBASE)/sparc/Makefile.sparc
51b65731f1Skini
52b65731f1Skini#
53b65731f1Skini#	Define targets
54b65731f1Skini#
55b65731f1SkiniALL_TARGET	= $(BINARY)
56b65731f1SkiniLINT_TARGET	= $(MODULE).lint
57b65731f1SkiniINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
58b65731f1Skini
59b65731f1Skini#
60b65731f1Skini#	Include sun4 specific headers files
61b65731f1Skini#
62b65731f1SkiniINC_PATH	+= -I$(UTSBASE)/sun4
63b65731f1Skini
64b65731f1Skini# Turn this on once compiler understands v9 in it's backend
65b65731f1Skini#INLINES		+= $(UTSBASE)/sun4/io/fcode.il
66b65731f1Skini
67b65731f1Skini#
68b65731f1Skini# lint pass one enforcement
69b65731f1Skini#
70b65731f1SkiniCFLAGS += $(CCVERBOSE)
71b65731f1Skini
72b65731f1Skini#
73b65731f1Skini# Turn on doubleword alignment for 64 bit registers
74b65731f1Skini#
75b65731f1SkiniCFLAGS += -dalign
76b65731f1Skini
77b65731f1Skini#
78b65731f1Skini#	Default build targets.
79b65731f1Skini#
80b65731f1Skini.KEEP_STATE:
81b65731f1Skini
82b65731f1Skinidef:		$(DEF_DEPS)
83b65731f1Skini
84b65731f1Skiniall:		$(ALL_DEPS)
85b65731f1Skini
86b65731f1Skiniclean:		$(CLEAN_DEPS)
87b65731f1Skini
88b65731f1Skiniclobber:	$(CLOBBER_DEPS)
89b65731f1Skini
90b65731f1Skinilint:		$(LINT_DEPS)
91b65731f1Skini
92b65731f1Skinimodlintlib:	$(MODLINTLIB_DEPS)
93b65731f1Skini
94b65731f1Skiniclean.lint:	$(CLEAN_LINT_DEPS)
95b65731f1Skini
96b65731f1Skiniinstall:	$(INSTALL_DEPS)
97b65731f1Skini
98b65731f1Skini#
99b65731f1Skini#	Include common targets.
100b65731f1Skini#
101b65731f1Skiniinclude $(UTSBASE)/sparc/Makefile.targ
102