Skip to content

Commit

Permalink
Immediately expand wildcards
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RealDeuce authored and jtsiomb committed Nov 30, 2024
1 parent 9433919 commit f87a784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f87a784

Please sign in to comment.