xref: /titanic_41/usr/src/uts/sun4u/snowbird/Makefile (revision 70025d765b044c6d8594bb965a2247a61e991a99)
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 2004 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
55clean.lint	:=	TARGET= clean.lint
56check		:=	TARGET= check
57
58IMPLEMENTED_PLATFORM	= SUNW,Netra-CP2300
59
60#
61#	Default build targets.
62#
63.KEEP_STATE:
64
65.PARALLEL:	$(SNOWBIRD_KMODS)
66
67def all clean clobber clean.lint:	$(SNOWBIRD_KMODS)
68
69install:	$(ROOT_SNOWBIRD_DIR) $(USR_SNOWBIRD_DIR) \
70		$(USR_SNOWBIRD_INC_DIR) \
71		$(USR_SNOWBIRD_SBIN_DIR) \
72		$(USR_SNOWBIRD_SBIN_EEPROM) \
73		$(USR_SNOWBIRD_SBIN_PRTDIAG) \
74		$(USR_SNOWBIRD_SBIN_TRAPSTAT) \
75		$(USR_SNOWBIRD_SBIN_FRUADM) \
76		$(USR_SNOWBIRD_LIB_DIR) \
77		.WAIT $(SNOWBIRD_KMODS) \
78		ttymux_dacf ttymux.conf
79
80modlintlib:	$(SNOWBIRD_KMODS)
81
82$(SNOWBIRD_KMODS):	FRC
83	@cd $@; pwd; $(MAKE) $(TARGET)
84
85ttymux_dacf:	$(ROOT_SNOWBIRD_DACF_DIR_64)
86		-@$(RM) $(ROOT_SNOWBIRD_DACF_DIR_64)/$@
87		$(SYMLINK) $(ROOT_SNOWBIRD_DACF_LINK_64)/$@ \
88		$(ROOT_SNOWBIRD_DACF_DIR_64)/$@
89
90
91ttymux.conf:	$(ROOT_SNOWBIRD_DRV_DIR)
92		-@$(RM) $(ROOT_SNOWBIRD_DRV_DIR_32)/$@
93		$(SYMLINK) $(ROOT_SNOWBIRD_DRV_LINK_32)/$@ \
94		$(ROOT_SNOWBIRD_DRV_DIR_32)/$@
95
96install_h check:	FRC
97	@cd sys; pwd; $(MAKE) $(TARGET)
98
99lint:	modlintlib
100
101LINT_LIBS	= $(LINT_LIB) \
102			-L$(SNOWBIRD_LINT_LIB_DIR) \
103			-L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
104			-L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
105
106lint.platmod:   modlintlib
107	@-$(ECHO) "\nSnowbird Platform-dependent module: global crosschecks:"
108	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
109
110#
111#	Include common targets.
112#
113include $(UTSBASE)/sun4u/snowbird/Makefile.targ
114