Makefile revision 1.1
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.1SjakllschFILES = boxdraw smbios console crc data debug dpath \ 471.1Sjakllsch error event guid hand hw init lock \ 481.1Sjakllsch misc print sread str \ 491.1Sjakllsch runtime/rtlock runtime/efirtlib runtime/rtstr runtime/vm runtime/rtdata \ 501.1Sjakllsch $(ARCH)/initplat $(ARCH)/math 511.1Sjakllsch 521.1Sjakllschifeq ($(ARCH),ia64) 531.1SjakllschFILES += $(ARCH)/salpal $(ARCH)/palproc 541.1Sjakllschendif 551.1Sjakllsch 561.1Sjakllschifeq ($(ARCH),x86_64) 571.1SjakllschFILES += $(ARCH)/callwrap $(ARCH)/efi_stub 581.1Sjakllschendif 591.1Sjakllsch 601.1SjakllschOBJS = $(FILES:%=%.o) 611.1Sjakllsch 621.1SjakllschSUBDIRS = ia32 x86_64 ia64 runtime 631.1Sjakllsch 641.1Sjakllschall: libsubdirs libefi.a 651.1Sjakllsch 661.1Sjakllschlibsubdirs: 671.1Sjakllsch for sdir in $(SUBDIRS); do mkdir -p $$sdir; done 681.1Sjakllsch 691.1Sjakllschlibefi.a: $(patsubst %,libefi.a(%),$(OBJS)) 701.1Sjakllsch 711.1Sjakllschclean: 721.1Sjakllsch rm -f libefi.a *~ $(OBJS) */*.o 731.1Sjakllsch 741.1Sjakllschinstall: libefi.a 751.1Sjakllsch mkdir -p $(INSTALLROOT)/$(LIBDIR) 761.1Sjakllsch $(INSTALL) -m 644 libefi.a $(INSTALLROOT)/$(LIBDIR) 771.1Sjakllsch 781.1Sjakllschinclude $(SRCDIR)/../Make.rules 791.1Sjakllsch 801.1Sjakllsch.PHONY: libsubdirs 81