xref: /titanic_50/usr/src/psm/stand/bootlst/sparc/sun4u/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1e7cbe64fSgw25295#
2e7cbe64fSgw25295# CDDL HEADER START
3e7cbe64fSgw25295#
4e7cbe64fSgw25295# The contents of this file are subject to the terms of the
5e7cbe64fSgw25295# Common Development and Distribution License (the "License").
6e7cbe64fSgw25295# You may not use this file except in compliance with the License.
7e7cbe64fSgw25295#
8e7cbe64fSgw25295# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e7cbe64fSgw25295# or http://www.opensolaris.org/os/licensing.
10e7cbe64fSgw25295# See the License for the specific language governing permissions
11e7cbe64fSgw25295# and limitations under the License.
12e7cbe64fSgw25295#
13e7cbe64fSgw25295# When distributing Covered Code, include this CDDL HEADER in each
14e7cbe64fSgw25295# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15e7cbe64fSgw25295# If applicable, add the following below this CDDL HEADER, with the
16e7cbe64fSgw25295# fields enclosed by brackets "[]" replaced with your own identifying
17e7cbe64fSgw25295# information: Portions Copyright [yyyy] [name of copyright owner]
18e7cbe64fSgw25295#
19e7cbe64fSgw25295# CDDL HEADER END
20e7cbe64fSgw25295#
21e7cbe64fSgw25295#
22b31b5de1SJerry Gilliam# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23e7cbe64fSgw25295# Use is subject to license terms.
24e7cbe64fSgw25295#
25e7cbe64fSgw25295
26e7cbe64fSgw25295TOPDIR =	../../../../..
27e7cbe64fSgw25295SPARCDIR =	..
28e7cbe64fSgw25295
29e7cbe64fSgw25295# override global macros as necessary
30e7cbe64fSgw25295ARCH =		sun4u
31e7cbe64fSgw25295TARG_MACH =	sparcv9
32e7cbe64fSgw25295PROMTYPE =	ieee1275
33e7cbe64fSgw25295PROMIFDIR =	$(TOPDIR)/psm/stand/lib/promif
34e7cbe64fSgw25295PLATDIR =	$(TOPDIR)/uts/$(ARCH)
35e7cbe64fSgw25295
36e7cbe64fSgw25295ARCH_PROMDIR =	$(TARG_MACH)/$(PROMTYPE)/common
37e7cbe64fSgw25295PLAT_PROMDIR =	$(PROMTYPE)/$(ARCH)
38e7cbe64fSgw25295PLATLIBDIR =	$(PROMIFDIR)/$(TARG_MACH)/$(PLAT_PROMDIR)
39e7cbe64fSgw25295PLATLIB =	$(PLATLIBDIR)/libplat.a
40e7cbe64fSgw25295
41e7cbe64fSgw25295LDPLATLIBS =	-L$(PLATLIBDIR) -lplat
42e7cbe64fSgw25295SALIBS =	$(PLATLIB)
43e7cbe64fSgw25295MAPFILE =	$(SPARCDIR)/mapfile
44e7cbe64fSgw25295LINTPLATLIBS =	$(PLATLIBDIR)/llib-lplat.ln
45e7cbe64fSgw25295
46e7cbe64fSgw25295BOOTLSTOBJ = srt0.o
47e7cbe64fSgw25295
48e7cbe64fSgw25295ALL = bootlst
49e7cbe64fSgw25295
50e7cbe64fSgw25295%.o: $(SPARCDIR)/%.s
51e7cbe64fSgw25295	$(COMPILE.s) -o $@ $<
52e7cbe64fSgw25295
53e7cbe64fSgw25295%.ln: $(SPARCDIR)/%.s
54e7cbe64fSgw25295	@$(LHEAD) $(LINT.s) $< $(LTAIL)
55e7cbe64fSgw25295
56e7cbe64fSgw25295
57e7cbe64fSgw25295include ../../common/Makefile.com
58e7cbe64fSgw25295include $(TOPDIR)/psm/Makefile.psm.64
59e7cbe64fSgw25295CFLAGS64 += -xchip=ultra $(CCABS32)
60*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts
61e7cbe64fSgw25295
62b31b5de1SJerry GilliamPOST_PROCESS +=	; $(CHK4UBINARY)
63e7cbe64fSgw25295
64b31b5de1SJerry Gilliam.KEEP_STATE:
65