Makefile revision 1.1.1.1
1848b8605Smrg# 2848b8605Smrg# Copyright (C) 1999-2001 Hewlett-Packard Co. 3848b8605Smrg# Contributed by David Mosberger <davidm@hpl.hp.com> 4848b8605Smrg# Contributed by Stephane Eranian <eranian@hpl.hp.com> 5848b8605Smrg# 6848b8605Smrg# All rights reserved. 7848b8605Smrg# 8848b8605Smrg# Redistribution and use in source and binary forms, with or without 9848b8605Smrg# modification, are permitted provided that the following conditions 10848b8605Smrg# are met: 11848b8605Smrg# 12848b8605Smrg# * Redistributions of source code must retain the above copyright 13848b8605Smrg# notice, this list of conditions and the following disclaimer. 14848b8605Smrg# * Redistributions in binary form must reproduce the above 15848b8605Smrg# copyright notice, this list of conditions and the following 16848b8605Smrg# disclaimer in the documentation and/or other materials 17848b8605Smrg# provided with the distribution. 18848b8605Smrg# * Neither the name of Hewlett-Packard Co. nor the names of its 19848b8605Smrg# contributors may be used to endorse or promote products derived 20848b8605Smrg# from this software without specific prior written permission. 21848b8605Smrg# 22b8e80941Smrg# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 23b8e80941Smrg# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 24b8e80941Smrg# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 25b8e80941Smrg# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 26b8e80941Smrg# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 27b8e80941Smrg# BE LIABLE FOR ANYDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 28b8e80941Smrg# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 29b8e80941Smrg# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30b8e80941Smrg# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 31b8e80941Smrg# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 32b8e80941Smrg# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 33b8e80941Smrg# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34b8e80941Smrg# SUCH DAMAGE. 35b8e80941Smrg# 36b8e80941Smrg 37b8e80941SmrgSRCDIR = . 38b8e80941Smrg 39b8e80941SmrgVPATH = $(SRCDIR) 40b8e80941Smrg 41b8e80941Smrginclude $(SRCDIR)/../Make.defaults 42b8e80941Smrg 43b8e80941SmrgTOPDIR = $(SRCDIR)/.. 44b8e80941Smrg 45b8e80941SmrgCDIR = $(TOPDIR)/.. 46b8e80941SmrgFILES = boxdraw smbios console crc data debug dpath \ 47b8e80941Smrg error event guid hand hw init lock \ 48b8e80941Smrg misc print sread str \ 49b8e80941Smrg runtime/rtlock runtime/efirtlib runtime/rtstr runtime/vm runtime/rtdata \ 50b8e80941Smrg $(ARCH)/initplat $(ARCH)/math 51b8e80941Smrg 52b8e80941Smrgifeq ($(ARCH),ia64) 53b8e80941SmrgFILES += $(ARCH)/salpal $(ARCH)/palproc 54b8e80941Smrgendif 55b8e80941Smrg 56b8e80941Smrgifeq ($(ARCH),x86_64) 57b8e80941SmrgFILES += $(ARCH)/callwrap $(ARCH)/efi_stub 58b8e80941Smrgendif 59b8e80941Smrg 60b8e80941SmrgOBJS = $(FILES:%=%.o) 61b8e80941Smrg 62b8e80941SmrgSUBDIRS = ia32 x86_64 ia64 runtime 63b8e80941Smrg 64b8e80941Smrgall: libsubdirs libefi.a 65b8e80941Smrg 66b8e80941Smrglibsubdirs: 67b8e80941Smrg for sdir in $(SUBDIRS); do mkdir -p $$sdir; done 68b8e80941Smrg 69b8e80941Smrglibefi.a: $(patsubst %,libefi.a(%),$(OBJS)) 70b8e80941Smrg 71b8e80941Smrgclean: 72b8e80941Smrg rm -f libefi.a *~ $(OBJS) */*.o 73b8e80941Smrg 74b8e80941Smrginstall: libefi.a 75b8e80941Smrg mkdir -p $(INSTALLROOT)/$(LIBDIR) 76b8e80941Smrg $(INSTALL) -m 644 libefi.a $(INSTALLROOT)/$(LIBDIR) 77b8e80941Smrg 78b8e80941Smrginclude $(SRCDIR)/../Make.rules 79b8e80941Smrg 80b8e80941Smrg.PHONY: libsubdirs 81b8e80941Smrg