Imported Upstream version 3.0
[platform/upstream/gnu-efi.git] / inc / Makefile
1 SRCDIR = .
2
3 VPATH = $(SRCDIR)
4
5 include $(SRCDIR)/../Make.defaults
6
7 TOPDIR = $(SRCDIR)/..
8
9 CDIR=$(TOPDIR)/..
10
11 all:
12
13 clean:
14
15 install:
16         mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi
17         mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol
18         mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH)
19         $(INSTALL) -m 644 *.h $(INSTALLROOT)$(PREFIX)/include/efi
20         $(INSTALL) -m 644 protocol/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol
21         $(INSTALL) -m 644 $(ARCH)/*.h $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH)
22 ifeq ($(ARCH),ia64)
23         mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol/ia64
24         $(INSTALL) -m 644 protocol/ia64/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol/ia64
25 endif
26
27 include $(SRCDIR)/../Make.rules