xref: /titanic_52/usr/src/uts/sun4u/blade/Makefile (revision 1a7c1b724419d3cb5fa6eea75123c6b2060ba31b)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#pragma ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2002-2003 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28#	This makefile drives the production of the sun4u JBOS - blade platform
29#	module.
30#
31#	sun4u jbos-blade implementation architecture dependent
32#
33
34#
35#	Path to the base of the uts directory tree (usually /usr/src/uts).
36#
37UTSBASE	= ../..
38
39include $(UTSBASE)/sun4u/blade/Makefile.blade
40
41#
42#
43#
44
45def		:=	TARGET= def
46all		:=	TARGET= all
47install		:=	TARGET= install
48install_h	:=	TARGET= install_h
49clean		:=	TARGET= clean
50clobber		:=	TARGET= clobber
51lint		:=	TARGET= lint
52lintlib		:=	TARGET= lintlib
53modlintlib	:=	TARGET= modlintlib
54clean.lint	:=	TARGET= clean.lint
55check		:=	TARGET= check
56
57IMPLEMENTED_PLATFORM	= SUNW,Serverblade1
58LINK1DESTDIR	=	../../../../SUNW,Sun-Blade-100/kernel/drv/sparcv9
59BLADE_LINK_1	=	SUNW,Serverblade1/kernel/drv/sparcv9/pmubus
60BLADE_PLAT_LINK1 =	$(BLADE_LINK_1:%=$(ROOT_PLAT_DIR)/%)
61
62#
63#	Default build targets.
64#
65.KEEP_STATE:
66
67.PARALLEL:	$(BLADE_KMODS)
68
69def all clean clobber clean.lint:	$(BLADE_KMODS)
70
71install:	$(ROOT_BLADE_DIR) \
72		$(USR_BLADE_DIR) \
73		$(USR_BLADE_INC_DIR) \
74		$(USR_BLADE_SBIN_DIR) \
75		$(USR_BLADE_LIB_DIR) \
76		.WAIT $(BLADE_KMODS) \
77		$(BLADE_OPTION) \
78		$(BLADE_PLAT_LINK_1)
79
80modlintlib:	$(BLADE_KMODS)
81
82$(BLADE_KMODS):	FRC
83	@cd $@; pwd; $(MAKE) $(TARGET)
84
85$(BLADE_OPTION):	FRC
86	@cd $@; pwd; $(MAKE) $(TARGET)
87
88install_h check:
89
90lint:	modlintlib .WAIT $(LINT_DEPS)
91
92LINT_LIBS	= $(LINT_LIB) \
93			-L$(BLADE_LINT_LIB_DIR) \
94			-L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
95			-L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
96
97lint.platmod:   modlintlib
98	@-$(ECHO) "\nJBOS-blade Platform-dependent module: global crosschecks:"
99	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
100
101
102$(BLADE_PLAT_LINK_1): $(ROOT_BLADE_DRV_DIR)
103	$(RM) $@; $(SYMLINK) $(LINK1DESTDIR)/$(@F) $@ $(CHOWNLINK) $(CHGRPLINK)
104#
105#	Include common targets.
106#
107include $(UTSBASE)/sun4u/blade/Makefile.targ
108