xref: /titanic_44/usr/src/uts/sparc/Makefile (revision bde3d612a7c090234c60e6e4578821237a5db135)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# uts/sparc/Makefile
26#
27#	This makefile drives the production of all implementation architecture
28#	independent modules for the SPARC processor. (For those unsure, this
29#	means the module will run on all SPARC processor based machines
30#	running SunOS.)
31
32UTSBASE = ..
33
34include Makefile.sparc
35
36LINT_KMODS_X1	= $(LINT_KMODS:nsmb=)
37LINT_KMODS_X2	= $(LINT_KMODS_X1:smbfs=)
38LINT_KMODLIBS	= $(LINT_KMODS_X2:e1000g=)
39LINT_LIBS	= $(LINT_LIB) $(GEN_LINT_LIB) \
40		  $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
41		  $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
42
43DRV_KMODS	+= dprov
44
45def		:=	TARGET= def
46all		:=	TARGET= all
47install		:=	TARGET= install
48clean		:=	TARGET= clean
49clobber		:=	TARGET= clobber
50lint		:=	TARGET= lint
51modlintlib	:=	TARGET= modlintlib
52modlist		:=	TARGET= modlist
53modlist		:=	NO_STATE= -K $$MODSTATE$$$$
54clean.lint	:=	TARGET= clean.lint
55check		:=	TARGET= check
56install_h	:=	TARGET= install_h
57
58.KEEP_STATE:
59
60.PARALLEL:	$(PARALLEL_KMODS) $(XMODS) config $(LINT_DEPS)
61
62def all install clean clobber modlist: $(KMODS) $(XMODS) config
63
64modlintlib clean.lint: $(LINT_KMODS) $(XMODS)
65
66$(KMODS) config:	FRC
67	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
68
69$(XMODS):	FRC
70	@if [ -f $@/Makefile  ]; then \
71		cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
72	else \
73		true; \
74	fi
75
76install_h check:	FRC
77	@cd asm; pwd; $(MAKE) $(TARGET)
78	@cd sys; pwd; $(MAKE) $(TARGET)
79	@cd v7/sys; pwd; $(MAKE) $(TARGET)
80	@cd v9/sys; pwd; $(MAKE) $(TARGET)
81
82#
83#	Full kernel lint target.
84#
85LINT_TARGET	= globallint
86
87globallint:
88	@-$(ECHO) "\nFULL KERNEL: global crosschecks:"
89	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
90
91lint:	modlintlib .WAIT $(LINT_DEPS)
92
93include ../Makefile.targ
94