xref: /titanic_44/usr/src/uts/sparc/cmlb/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
13ccda647Slclee#
2342440ecSPrasad Singamsetty# CDDL HEADER START
3342440ecSPrasad Singamsetty#
4342440ecSPrasad Singamsetty# The contents of this file are subject to the terms of the
5342440ecSPrasad Singamsetty# Common Development and Distribution License (the "License").
6342440ecSPrasad Singamsetty# You may not use this file except in compliance with the License.
7342440ecSPrasad Singamsetty#
8342440ecSPrasad Singamsetty# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9342440ecSPrasad Singamsetty# or http://www.opensolaris.org/os/licensing.
10342440ecSPrasad Singamsetty# See the License for the specific language governing permissions
11342440ecSPrasad Singamsetty# and limitations under the License.
12342440ecSPrasad Singamsetty#
13342440ecSPrasad Singamsetty# When distributing Covered Code, include this CDDL HEADER in each
14342440ecSPrasad Singamsetty# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15342440ecSPrasad Singamsetty# If applicable, add the following below this CDDL HEADER, with the
16342440ecSPrasad Singamsetty# fields enclosed by brackets "[]" replaced with your own identifying
17342440ecSPrasad Singamsetty# information: Portions Copyright [yyyy] [name of copyright owner]
18342440ecSPrasad Singamsetty#
19342440ecSPrasad Singamsetty# CDDL HEADER END
20342440ecSPrasad Singamsetty#
21342440ecSPrasad Singamsetty#
223ccda647Slclee# uts/sparc/cmlb/Makefile
233ccda647Slclee#
24342440ecSPrasad Singamsetty# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
253ccda647Slclee# Use is subject to license terms.
263ccda647Slclee#
273ccda647Slclee#	This makefile drives the production of the cmlb "misc"
283ccda647Slclee#	kernel module.
293ccda647Slclee#
303ccda647Slclee#
313ccda647Slclee#
323ccda647Slclee#	Path to the base of the uts directory tree (usually /usr/src/uts).
333ccda647Slclee#
343ccda647SlcleeUTSBASE	= ../..
353ccda647Slclee
363ccda647Slclee#
373ccda647Slclee#	Define the module and object file sets.
383ccda647Slclee#
393ccda647SlcleeMODULE		= cmlb
403ccda647SlcleeOBJECTS		= $(CMLB_OBJS:%=$(OBJS_DIR)/%)
413ccda647SlcleeLINTS		= $(CMLB_OBJS:%.o=$(LINTS_DIR)/%.ln)
423ccda647SlcleeWARLOCK_OUT	= $(CMLB_OBJS:%.o=%.ll)
433ccda647SlcleeWARLOCK_OK	= $(MODULE).ok
443ccda647SlcleeROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
453ccda647Slclee
463ccda647Slclee#
473ccda647Slclee#	Include common rules.
483ccda647Slclee#
493ccda647Slcleeinclude $(UTSBASE)/sparc/Makefile.sparc
503ccda647Slclee
513ccda647Slclee#
523ccda647Slclee#	Define targets
533ccda647Slclee#
543ccda647SlcleeALL_TARGET	= $(BINARY)
553ccda647SlcleeLINT_TARGET	= $(MODULE).lint
563ccda647SlcleeINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
573ccda647Slclee
583ccda647Slclee#
593ccda647Slclee#	Overrides.
603ccda647Slclee#
613ccda647SlcleeDEBUG_FLGS	=
623ccda647SlcleeDEBUG_DEFS	+= $(DEBUG_FLGS)
633ccda647Slclee
64342440ecSPrasad Singamsetty# Larger than 1TB VTOC
65342440ecSPrasad Singamsetty
66342440ecSPrasad SingamsettyCPPFLAGS	+= -D_EXTVTOC
67342440ecSPrasad Singamsetty
683ccda647Slclee#
69bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
70bb25c06cSjg# to investigate and remove these for maximum lint coverage.
71bb25c06cSjg# Please do not carry these forward to new Makefiles.
72bb25c06cSjg#
73bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
74bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
75bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
76bb25c06cSjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
77bb25c06cSjg
78*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
79*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-type-limits
80*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
81*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
82*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
83*7014882cSRichard Lowe
84bb25c06cSjg#
853ccda647Slclee#	Default build targets.
863ccda647Slclee#
873ccda647Slclee.KEEP_STATE:
883ccda647Slclee
893ccda647Slcleedef:		$(DEF_DEPS)
903ccda647Slclee
913ccda647Slcleeall:		$(ALL_DEPS)
923ccda647Slclee
93f1b64740Slcleeclean:		$(CLEAN_DEPS)
943ccda647Slclee		$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
953ccda647Slclee
96f1b64740Slcleeclobber:	$(CLOBBER_DEPS)
973ccda647Slclee		$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
983ccda647Slclee
993ccda647Slcleelint:		$(LINT_DEPS)
1003ccda647Slclee
1013ccda647Slcleemodlintlib:	$(MODLINTLIB_DEPS)
1023ccda647Slclee
1033ccda647Slcleeclean.lint:	$(CLEAN_LINT_DEPS)
1043ccda647Slclee
1053ccda647Slcleeinstall:	$(INSTALL_DEPS)
1063ccda647Slclee
1073ccda647Slclee#
1083ccda647Slclee#	Include common targets.
1093ccda647Slclee#
1103ccda647Slcleeinclude $(UTSBASE)/sparc/Makefile.targ
1113ccda647Slclee
1123ccda647Slclee#
1133ccda647Slclee#	Defines for local commands.
1143ccda647Slclee#
1153ccda647SlcleeWLCC		= wlcc
1163ccda647SlcleeTOUCH		= touch
1173ccda647SlcleeWARLOCK		= warlock
1183ccda647Slclee
1193ccda647Slclee#
1203ccda647Slclee#	Warlock targets
1213ccda647Slclee#
1224ebb14b2Sfritswarlock: $(WARLOCK_OK)
1233ccda647Slclee
1244ebb14b2Sfrits$(WARLOCK_OK):	$(WARLOCK_OUT)
1253ccda647Slclee	$(TOUCH) $@
1263ccda647Slclee
1273ccda647Slclee%.ll: $(UTSBASE)/common/io/%.c
1283ccda647Slclee	$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
129