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