diff options
| author | Peter Jones <pjones@redhat.com> | 2017-07-24 20:07:07 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2017-07-24 20:11:28 -0400 |
| commit | 8a6d270d707df229a3f2a1d5bcf52a84141950b8 (patch) | |
| tree | f8963fadc5c2ff7397658dee9054052214f01fcc /lib | |
| parent | a1170bb00a116783cc6623b403e785d86b2f97d7 (diff) | |
| download | efi-boot-shim-8a6d270d707df229a3f2a1d5bcf52a84141950b8.tar.gz efi-boot-shim-8a6d270d707df229a3f2a1d5bcf52a84141950b8.zip | |
Make it possible to build in a subdirectory.
This lets you do:
mkdir build-x64 build-ia32
cd build-x64
make TOPDIR=.. -f ../Makefile
cd ../build-ia32
setarch i686 -B make ARCH=ia32 TOPDIR=.. -f ../Makefile
And not worry about generated sources and headers mixing and matching.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile index 37f5746d..ad18f391 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -2,7 +2,7 @@ TARGET = lib.a LIBFILES = simple_file.o guid.o console.o execute.o configtable.o shell.o variables.o security_policy.o -EFI_INCLUDES = -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -I../include +EFI_INCLUDES = -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol -I$(TOPDIR)/../include lib.a: $(LIBFILES) $(AR) rcs lib.a $(LIBFILES) |
