summaryrefslogtreecommitdiff
path: root/gnuefi
diff options
context:
space:
mode:
authorNigel Croxon <ncroxon@redhat.com>2019-04-02 09:47:24 -0400
committerNigel Croxon <ncroxon@redhat.com>2019-04-02 09:47:24 -0400
commit230c36c6aa4fcb1db61ce177264e224c26314da1 (patch)
treedf68ada87a02f7178da22deb7d41ba379f367f6b /gnuefi
parent7604ff262930063ee71251fde31a38083868e808 (diff)
downloadgnu-efi-230c36c6aa4fcb1db61ce177264e224c26314da1.tar.gz
gnuefi/Makefile uses a strange rule to create libgnuefi.a, which only works
because of a "make" builtin rule. This breaks make -r, and it is an inefficient way to build, at least for multiple files. I have made a git tree which includes a patch for this problem, and also forces -r by adding it to MAKEFLAGS: git://git.zytor.com/users/hpa/gnu-efi.git make-r-fixes Signed-off-by: H. Peter Anvin <hpa@users.sourceforge.net> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Diffstat (limited to 'gnuefi')
-rw-r--r--gnuefi/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnuefi/Makefile b/gnuefi/Makefile
index 2a61699..10d4e7a 100644
--- a/gnuefi/Makefile
+++ b/gnuefi/Makefile
@@ -54,7 +54,9 @@ TARGETS = crt0-efi-$(ARCH).o libgnuefi.a
all: $(TARGETS)
-libgnuefi.a: $(patsubst %,libgnuefi.a(%),$(OBJS))
+libgnuefi.a: $(OBJS)
+ $(AR) $(ARFLAGS) $@ $^
+
clean:
rm -f $(TARGETS) *~ *.o $(OBJS)