From bef14cbb293fbe43ba816e0c49bce30e7d4daee4 Mon Sep 17 00:00:00 2001 From: Stephen Hurd Date: Sat, 30 Nov 2024 14:20:01 -0500 Subject: [PATCH] Immediately expand wildcards If wildcards are expanded later, a duplicate of ui.moc.o can be added to the link command-line, which will fail with some linkers due to duplicate symbols. --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index f66ba22..a19c89f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,5 +1,5 @@ -csrc = $(wildcard src/*.c) -ccsrc = $(wildcard src/*.cc) +csrc := $(wildcard src/*.c) +ccsrc := $(wildcard src/*.cc) mochdr = src/ui.h mocsrc = $(mochdr:.h=.moc.cc) obj = $(sort $(csrc:.c=.o) $(ccsrc:.cc=.o) $(mocsrc:.cc=.o)) res.cc