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