xref: /titanic_41/usr/src/uts/sparc/kiconv_ko/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
115d9d0b5Syy154373#
215d9d0b5Syy154373# CDDL HEADER START
315d9d0b5Syy154373#
415d9d0b5Syy154373# The contents of this file are subject to the terms of the
515d9d0b5Syy154373# Common Development and Distribution License (the "License").
615d9d0b5Syy154373# You may not use this file except in compliance with the License.
715d9d0b5Syy154373#
815d9d0b5Syy154373# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
915d9d0b5Syy154373# or http://www.opensolaris.org/os/licensing.
1015d9d0b5Syy154373# See the License for the specific language governing permissions
1115d9d0b5Syy154373# and limitations under the License.
1215d9d0b5Syy154373#
1315d9d0b5Syy154373# When distributing Covered Code, include this CDDL HEADER in each
1415d9d0b5Syy154373# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1515d9d0b5Syy154373# If applicable, add the following below this CDDL HEADER, with the
1615d9d0b5Syy154373# fields enclosed by brackets "[]" replaced with your own identifying
1715d9d0b5Syy154373# information: Portions Copyright [yyyy] [name of copyright owner]
1815d9d0b5Syy154373#
1915d9d0b5Syy154373# CDDL HEADER END
2015d9d0b5Syy154373#
2115d9d0b5Syy154373#
2215d9d0b5Syy154373# uts/sparc/kiconv_ko/Makefile
2315d9d0b5Syy154373#
2415d9d0b5Syy154373# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2515d9d0b5Syy154373# Use is subject to license terms.
2615d9d0b5Syy154373#
27*7014882cSRichard Lowe
2815d9d0b5Syy154373#
2915d9d0b5Syy154373#	This makefile drives the production of the kiconv_ko
3015d9d0b5Syy154373#	kernel module.
3115d9d0b5Syy154373#
3215d9d0b5Syy154373#	sparc implementation architecture dependent
3315d9d0b5Syy154373#
3415d9d0b5Syy154373
3515d9d0b5Syy154373#
3615d9d0b5Syy154373#	Path to the base of the uts directory tree (usually /usr/src/uts).
3715d9d0b5Syy154373#
3815d9d0b5Syy154373UTSBASE	= ../..
3915d9d0b5Syy154373
4015d9d0b5Syy154373#
4115d9d0b5Syy154373#	Define the module and object file sets.
4215d9d0b5Syy154373#
4315d9d0b5Syy154373MODULE		= kiconv_ko
4415d9d0b5Syy154373OBJECTS		= $(KICONV_KO_OBJS:%=$(OBJS_DIR)/%)
4515d9d0b5Syy154373LINTS		= $(KICONV_KO_OBJS:%.o=$(LINTS_DIR)/%.ln)
4615d9d0b5Syy154373ROOTMODULE	= $(ROOT_KICONV_DIR)/$(MODULE)
4715d9d0b5Syy154373
4815d9d0b5Syy154373#
4915d9d0b5Syy154373#	Include common rules.
5015d9d0b5Syy154373#
5115d9d0b5Syy154373include $(UTSBASE)/sparc/Makefile.sparc
5215d9d0b5Syy154373
5315d9d0b5Syy154373#
5415d9d0b5Syy154373#	Define targets
5515d9d0b5Syy154373#
5615d9d0b5Syy154373ALL_TARGET	= $(BINARY)
5715d9d0b5Syy154373LINT_TARGET	= $(MODULE).lint
5815d9d0b5Syy154373INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5915d9d0b5Syy154373
6015d9d0b5Syy154373#
6115d9d0b5Syy154373#	Overrides
6215d9d0b5Syy154373#
6315d9d0b5Syy154373CFLAGS		+= $(CCVERBOSE)
6415d9d0b5Syy154373
6515d9d0b5Syy154373#
6615d9d0b5Syy154373# For now, disable these lint checks; maintainers should endeavor
6715d9d0b5Syy154373# to investigate and remove these for maximum lint coverage.
6815d9d0b5Syy154373# Please do not carry these forward to new Makefiles.
6915d9d0b5Syy154373#
7015d9d0b5Syy154373LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
7115d9d0b5Syy154373
72*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
73*7014882cSRichard Lowe
7415d9d0b5Syy154373#
7515d9d0b5Syy154373#	Default build targets.
7615d9d0b5Syy154373#
7715d9d0b5Syy154373.KEEP_STATE:
7815d9d0b5Syy154373
7915d9d0b5Syy154373def:		$(DEF_DEPS)
8015d9d0b5Syy154373
8115d9d0b5Syy154373all:		$(ALL_DEPS)
8215d9d0b5Syy154373
8315d9d0b5Syy154373clean:		$(CLEAN_DEPS)
8415d9d0b5Syy154373
8515d9d0b5Syy154373clobber:	$(CLOBBER_DEPS)
8615d9d0b5Syy154373
8715d9d0b5Syy154373lint:		$(LINT_DEPS)
8815d9d0b5Syy154373
8915d9d0b5Syy154373modlintlib:	$(MODLINTLIB_DEPS)
9015d9d0b5Syy154373
9115d9d0b5Syy154373clean.lint:	$(CLEAN_LINT_DEPS)
9215d9d0b5Syy154373
9315d9d0b5Syy154373install:	$(INSTALL_DEPS)
9415d9d0b5Syy154373
9515d9d0b5Syy154373#
9615d9d0b5Syy154373#	Include common targets.
9715d9d0b5Syy154373#
9815d9d0b5Syy154373include $(UTSBASE)/sparc/Makefile.targ
99