From 83bc788ae55b49d633ead8fa7ad5136f919826ce Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 19 Jul 2021 18:54:01 +0200 Subject: Makefile: fix linking order --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fae7da1..9e07249 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ TESTPROGS := $(addprefix tests/,$(TESTPROGS)) all: $(TARGET) $(TARGET): $(OBJS) - $(CC) ${TARGET_LDFLAGS} -o $@ $(OBJS) + $(CC) -o $@ $(OBJS) ${TARGET_LDFLAGS} %.o: %.c $(CC) $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $< -- cgit v1.2.3