diff options
| author | Peter Jones <pjones@redhat.com> | 2021-03-24 17:51:48 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-03-25 14:36:53 -0400 |
| commit | 8578b75f9c18fd267c8a0746192ab3f051561df2 (patch) | |
| tree | 437dd31143333ddf9bfdd3bba7a2de9a67c9c80a /lib | |
| parent | d74629207188d290810db15dbfe91a89e7751ffb (diff) | |
| download | efi-boot-shim-8578b75f9c18fd267c8a0746192ab3f051561df2.tar.gz efi-boot-shim-8578b75f9c18fd267c8a0746192ab3f051561df2.zip | |
Make building outside of the top directory work.
This also makes the cross-build targets (and not the others) /use/ this
functionality, so we'll catch it if we break it again.
This fixes issue #340.
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 6d83f789..a4a4855b 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,6 +1,6 @@ TARGET = lib.a -LIBFILES_UNSORTED := $(foreach x,$(wildcard *.c),$(patsubst %.c,%.o,$(x))) +LIBFILES_UNSORTED := $(patsubst %.c,%.o,$(subst $(TOPDIR)/lib/,,$(wildcard $(TOPDIR)/lib/*.c))) LIBFILES := $(sort $(LIBFILES_UNSORTED)) CRYPTDIR = $(TOPDIR)/Cryptlib |
