xref: /titanic_44/usr/src/psm/stand/bootblks/Makefile.com (revision 78432d5ed5122db8b0bbfa41e00d063bf8ae7171)
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# ident	"%Z%%M%	%I%	%E% SMI"
26#
27# psm/stand/bootblks/Makefile.com
28#
29TOPDIR = ../../../$(BASEDIR)
30
31#
32# Hack until stand makefiles are fixed
33#
34CLASS	= 32
35
36include $(TOPDIR)/Makefile.master
37include $(TOPDIR)/Makefile.psm
38
39STANDDIR	= $(TOPDIR)/stand
40PSMSTANDDIR	= $(TOPDIR)/psm/stand
41
42SYSHDRDIR	= $(STANDDIR)
43SYSLIBDIR	= $(ROOT)/stand/lib
44
45PSMSYSHDRDIR	= $(PSMSTANDDIR)
46PSMNAMELIBDIR	= $(PSMSTANDDIR)/lib/names/$(MACH)
47PSMPROMLIBDIR	= $(PSMSTANDDIR)/lib/promif/$(MACH)
48
49#
50# 'bootblk' is the basic target we build - in many flavours
51#
52PROG		= bootblk
53
54#
55# base prefix for the usr/platform bootblk links
56#
57BOOTBLK_LINK_PREFIX	=../../../../../../platform/$(PLATFORM)/lib/fs
58
59#
60# Used to convert Forth source to isa-independent FCode.
61#
62TOKENIZE	= tokenize
63
64#
65# Common install modes and owners
66#
67FILEMODE	= 444
68DIRMODE		= 755
69OWNER		= root
70GROUP		= sys
71
72#
73# Lint rules (adapted from Makefile.uts)
74#
75LHEAD		= ( $(ECHO) "\n$@";
76LGREP		= grep -v "pointer cast may result in improper alignment"
77LTAIL		= ) 2>&1 | $(LGREP)
78LINT_DEFS	+= -Dlint
79
80#
81# For building lint objects
82#
83LINTFLAGS.c	= -nsxum
84LINT.c		= $(LINT) $(LINTFLAGS.c) $(LINT_DEFS) $(CPPFLAGS) -c
85LINT.s		= $(LINT) $(LINTFLAGS.s) $(LINT_DEFS) $(CPPFLAGS) -c
86
87#
88# For building lint libraries
89#
90LINTFLAGS.lib	= -nsxum
91LINT.lib	= $(LINT) $(LINTFLAGS.lib) $(LINT_DEFS) $(CPPFLAGS)
92
93#
94# For complete pass 2 cross-checks
95# XXX: lint flags should exclude -u, but the standalone libs confuse lint.
96#
97LINTFLAGS.2	= -nsxum
98LINT.2		= $(LINT) $(LINTFLAGS.2) $(LINT_DEFS) $(CPPFLAGS)
99