aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-04 18:06:41 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-10 10:10:28 +0100
commit8baf95a19a0aba4b2be2b496ffff83a4ca2b03a4 (patch)
treeb85047137870b204067a58dcfe2e03de2847a075 /Makefile
parentf10ec90ea5bd75df4670ede9bfa8c364589ae57f (diff)
downloadsparse-dev-8baf95a19a0aba4b2be2b496ffff83a4ca2b03a4.tar.gz
build: use $LIBS directly in the dependency list
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c66f730a..61271e19 100644
--- a/Makefile
+++ b/Makefile
@@ -170,8 +170,8 @@ compile-objs:= compile-i386.o
ldflags += $($(@)-ldflags) $(LDFLAGS)
ldlibs += $($(@)-ldlibs) $(LDLIBS)
-$(foreach p,$(PROGRAMS),$(eval $(p): $($(p)-objs) $(LIBS)))
-$(PROGRAMS): % : %.o
+$(foreach p,$(PROGRAMS),$(eval $(p): $($(p)-objs)))
+$(PROGRAMS): % : %.o $(LIBS)
$(QUIET_LINK)$(LD) $(ldflags) -o $@ $^ $(ldlibs)
$(LIB_FILE): $(LIB_OBJS)