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