ce7098fb52
This patch enables building gnu-efi outside of the source tree. That in turn enables building for multiple architectures in parallel. The build directory is controlled by the OBJDIR make variable. It defaults to the value of ARCH, and can be overridden from the command line. This patch also cleans up some doubled slashes between INSTALLROOT and PREFIX. Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com> Signed-off-by: Nigel Croxon <nigel.croxon@hp.com>
28 lines
744 B
Makefile
28 lines
744 B
Makefile
SRCDIR = .
|
|
|
|
VPATH = $(SRCDIR)
|
|
|
|
include $(SRCDIR)/../Make.defaults
|
|
|
|
TOPDIR = $(SRCDIR)/..
|
|
|
|
CDIR=$(TOPDIR)/..
|
|
|
|
all:
|
|
|
|
clean:
|
|
|
|
install:
|
|
mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi
|
|
mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol
|
|
mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH)
|
|
$(INSTALL) -m 644 $(SRCDIR)/*.h $(INSTALLROOT)$(PREFIX)/include/efi
|
|
$(INSTALL) -m 644 $(SRCDIR)/protocol/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol
|
|
$(INSTALL) -m 644 $(SRCDIR)/$(ARCH)/*.h $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH)
|
|
ifeq ($(ARCH),ia64)
|
|
mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol/ia64
|
|
$(INSTALL) -m 644 $(SRCDIR)/protocol/ia64/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol/ia64
|
|
endif
|
|
|
|
include $(SRCDIR)/../Make.rules
|