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 27 TOPDIR = ../../../../.. 28 29 # override global macros as necessary 30 TARGET_ARCH = sun4u 31 TARG_MACH = sparcv9 32 ARCH = sun4u 33 MACH = sparc 34 MMU = sfmmu 35 ARCHVER = v9 36 PROMTYPE = ieee1275 37 ARCH_PROMDIR = $(TARG_MACH)/$(PROMTYPE)/common 38 PROMIFDIR = $(TOPDIR)/psm/stand/lib/promif 39 PLATLIBDIR = $(PROMIFDIR)/$(TARG_MACH)/$(PROMTYPE)/$(TARGET_ARCH) 40 PLATLIB = $(PLATLIBDIR)/libplat.a 41 LDLIBS = -L$(PLATLIBDIR) -lplat 42 SALIBS = $(PLATLIB) 43 LINTLIBS = $(PLATLIBDIR)/llib-lplat.ln 44 45 CPRBOOTOBJ = cb_srt0.o cprboot.o machdep.o pages.o bitmap.o util.o 46 47 ALL = cprboot 48 49 include ../../common/Makefile.com 50 include $(TOPDIR)/psm/Makefile.psm.64 51 CFLAGS64 += -xchip=ultra $(CCABS32) 52 CERRWARN += -_gcc=-Wno-uninitialized 53 54 .KEEP_STATE: 55 56 STANDDIR = $(TOPDIR)/stand 57 CPPINCS += -I$(STANDDIR) 58 59 # 60 # Cross-reference customization: build a cross-reference over all of 61 # the sun4u-related CPR source files. 62 # 63 XRDIRS += ../../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