11.1Sjakllsch# 21.1Sjakllsch# Copyright (C) 1999-2001 Hewlett-Packard Co. 31.1Sjakllsch# Contributed by David Mosberger <davidm@hpl.hp.com> 41.1Sjakllsch# Contributed by Stephane Eranian <eranian@hpl.hp.com> 51.1Sjakllsch# 61.1Sjakllsch# All rights reserved. 71.1Sjakllsch# 81.1Sjakllsch# Redistribution and use in source and binary forms, with or without 91.1Sjakllsch# modification, are permitted provided that the following conditions 101.1Sjakllsch# are met: 111.1Sjakllsch# 121.1Sjakllsch# * Redistributions of source code must retain the above copyright 131.1Sjakllsch# notice, this list of conditions and the following disclaimer. 141.1Sjakllsch# * Redistributions in binary form must reproduce the above 151.1Sjakllsch# copyright notice, this list of conditions and the following 161.1Sjakllsch# disclaimer in the documentation and/or other materials 171.1Sjakllsch# provided with the distribution. 181.1Sjakllsch# * Neither the name of Hewlett-Packard Co. nor the names of its 191.1Sjakllsch# contributors may be used to endorse or promote products derived 201.1Sjakllsch# from this software without specific prior written permission. 211.1Sjakllsch# 221.1Sjakllsch# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 231.1Sjakllsch# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 241.1Sjakllsch# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 251.1Sjakllsch# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 261.1Sjakllsch# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 271.1Sjakllsch# BE LIABLE FOR ANYDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 281.1Sjakllsch# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 291.1Sjakllsch# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 301.1Sjakllsch# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 311.1Sjakllsch# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 321.1Sjakllsch# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 331.1Sjakllsch# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 341.1Sjakllsch# SUCH DAMAGE. 351.1Sjakllsch# 361.1Sjakllsch 371.1SjakllschSRCDIR = . 381.1Sjakllsch 391.1SjakllschVPATH = $(SRCDIR) 401.1Sjakllsch 411.1Sjakllschinclude $(SRCDIR)/../Make.defaults 421.1Sjakllsch 431.1SjakllschTOPDIR = $(SRCDIR)/.. 441.1Sjakllsch 451.1SjakllschCDIR=$(TOPDIR)/.. 461.1.1.2SjmcneillFILES = reloc_$(ARCH) 471.1Sjakllsch 481.1SjakllschOBJS = $(FILES:%=%.o) 491.1Sjakllsch 501.1.1.2Sjmcneill# on aarch64, avoid jump tables before all relocations have been processed 511.1.1.2Sjmcneillreloc_aarch64.o: CFLAGS += -fno-jump-tables 521.1.1.2Sjmcneill 531.1SjakllschTARGETS = crt0-efi-$(ARCH).o libgnuefi.a 541.1Sjakllsch 551.1Sjakllschall: $(TARGETS) 561.1Sjakllsch 571.1.1.3Sjmcneilllibgnuefi.a: $(OBJS) 581.1.1.3Sjmcneill $(AR) $(ARFLAGS) $@ $^ 591.1.1.3Sjmcneill 601.1Sjakllsch 611.1Sjakllschclean: 621.1Sjakllsch rm -f $(TARGETS) *~ *.o $(OBJS) 631.1Sjakllsch 641.1Sjakllschinstall: 651.1.1.2Sjmcneill mkdir -p $(INSTALLROOT)$(LIBDIR) 661.1.1.2Sjmcneill $(INSTALL) -m 644 $(TARGETS) $(INSTALLROOT)$(LIBDIR) 671.1Sjakllschifneq (,$(findstring FreeBSD,$(OS))) 681.1Sjakllsch ifeq ($(ARCH),x86_64) 691.1.1.2Sjmcneill $(INSTALL) -m 644 $(SRCDIR)/elf_$(ARCH)_fbsd_efi.lds $(INSTALLROOT)$(LIBDIR) 701.1Sjakllsch else 711.1.1.2Sjmcneill $(INSTALL) -m 644 $(SRCDIR)/elf_$(ARCH)_efi.lds $(INSTALLROOT)$(LIBDIR) 721.1Sjakllsch endif 731.1Sjakllschelse 741.1.1.2Sjmcneill $(INSTALL) -m 644 $(SRCDIR)/elf_$(ARCH)_efi.lds $(INSTALLROOT)$(LIBDIR) 751.1Sjakllschendif 761.1Sjakllsch 771.1Sjakllschinclude $(SRCDIR)/../Make.rules 78