xref: /titanic_44/usr/src/psm/stand/cpr/sparcv9/sun4u/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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 1995-1999,2002-2003 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27TOPDIR =	../../../../..
28
29# override global macros as necessary
30TARGET_ARCH =	sun4u
31TARG_MACH =     sparcv9
32ARCH =		sun4u
33MACH =		sparc
34MMU =		sfmmu
35ARCHVER =	v9
36PROMTYPE =	ieee1275
37ARCH_PROMDIR =	$(TARG_MACH)/$(PROMTYPE)/common
38PROMIFDIR =	$(TOPDIR)/psm/stand/lib/promif
39PLATLIBDIR =	$(PROMIFDIR)/$(TARG_MACH)/$(PROMTYPE)/$(TARGET_ARCH)
40PLATLIB =	$(PLATLIBDIR)/libplat.a
41LDLIBS =	-L$(PLATLIBDIR) -lplat
42SALIBS =	$(PLATLIB)
43LINTLIBS =	$(PLATLIBDIR)/llib-lplat.ln
44
45CPRBOOTOBJ = cb_srt0.o cprboot.o machdep.o pages.o bitmap.o util.o
46
47ALL = cprboot
48
49include ../../common/Makefile.com
50include $(TOPDIR)/psm/Makefile.psm.64
51CFLAGS64 += -xchip=ultra $(CCABS32)
52CERRWARN += -_gcc=-Wno-uninitialized
53
54.KEEP_STATE:
55
56STANDDIR = 	$(TOPDIR)/stand
57CPPINCS	+=	-I$(STANDDIR)
58
59#
60# Cross-reference customization: build a cross-reference over all of
61# the sun4u-related CPR source files.
62#
63XRDIRS	+=	../../common \
64		$(STANDDIR)/lib $(STANDDIR)/sys \
65		../../../../promif/ieee1275 \
66		$(TOPDIR)/uts/common/os/compress.c \
67		$(TOPDIR)/uts/common/sys/cpr.h \
68		$(TOPDIR)/uts/sun4u/sys/cpr_impl.h
69