xref: /titanic_41/usr/src/uts/sun4u/snowbird/Makefile (revision f841f6ad96ea6675d6c6b35c749eaac601799fdf)
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# uts/sun4u/snowbird/Makefile
24# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#ident	"%Z%%M%	%I%	%E% SMI"
28#
29#	This makefile drives the production of the sun4u snowbird platform
30#	module.
31#
32#	sun4u snowbird implementation architecture dependent
33#
34
35#
36#	Path to the base of the uts directory tree (usually /usr/src/uts).
37#
38UTSBASE	= ../..
39
40include $(UTSBASE)/sun4u/snowbird/Makefile.snowbird
41
42#
43#
44#
45
46def		:=	TARGET= def
47all		:=	TARGET= all
48install		:=	TARGET= install
49install_h	:=	TARGET= install_h
50clean		:=	TARGET= clean
51clobber		:=	TARGET= clobber
52lint		:=	TARGET= lint
53lintlib		:=	TARGET= lintlib
54modlintlib	:=	TARGET= modlintlib
55modlist		:=	TARGET= modlist
56modlist		:=	NO_STATE= -K $$MODSTATE$$$$
57clean.lint	:=	TARGET= clean.lint
58check		:=	TARGET= check
59
60IMPLEMENTED_PLATFORM	= SUNW,Netra-CP2300
61
62#
63#	Default build targets.
64#
65.KEEP_STATE:
66
67.PARALLEL:	$(SNOWBIRD_KMODS)
68
69def all clean clobber clean.lint modlist:	$(SNOWBIRD_KMODS)
70
71install:	$(ROOT_SNOWBIRD_DIR) $(USR_SNOWBIRD_DIR) \
72		$(USR_SNOWBIRD_INC_DIR) \
73		$(USR_SNOWBIRD_SBIN_DIR) \
74		$(USR_SNOWBIRD_SBIN_EEPROM) \
75		$(USR_SNOWBIRD_SBIN_PRTDIAG) \
76		$(USR_SNOWBIRD_SBIN_TRAPSTAT) \
77		$(USR_SNOWBIRD_SBIN_FRUADM) \
78		$(USR_SNOWBIRD_LIB_DIR) \
79		.WAIT $(SNOWBIRD_KMODS) \
80		ttymux_dacf ttymux.conf
81
82modlintlib:	$(SNOWBIRD_KMODS)
83
84$(SNOWBIRD_KMODS):	FRC
85	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
86
87ttymux_dacf:	$(ROOT_SNOWBIRD_DACF_DIR_64)
88		-@$(RM) $(ROOT_SNOWBIRD_DACF_DIR_64)/$@
89		$(SYMLINK) $(ROOT_SNOWBIRD_DACF_LINK_64)/$@ \
90		$(ROOT_SNOWBIRD_DACF_DIR_64)/$@
91
92
93ttymux.conf:	$(ROOT_SNOWBIRD_DRV_DIR)
94		-@$(RM) $(ROOT_SNOWBIRD_DRV_DIR_32)/$@
95		$(SYMLINK) $(ROOT_SNOWBIRD_DRV_LINK_32)/$@ \
96		$(ROOT_SNOWBIRD_DRV_DIR_32)/$@
97
98install_h check:	FRC
99	@cd sys; pwd; $(MAKE) $(TARGET)
100
101lint:	modlintlib
102
103LINT_LIBS	= $(LINT_LIB) \
104			-L$(SNOWBIRD_LINT_LIB_DIR) \
105			-L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
106			    $(CLOSED_LINT_KMODS:%=-l%) \
107			-L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
108
109lint.platmod:   modlintlib
110	@-$(ECHO) "\nSnowbird Platform-dependent module: global crosschecks:"
111	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
112
113#
114#	Include common targets.
115#
116include $(UTSBASE)/sun4u/snowbird/Makefile.targ
117