aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-07-19 18:54:01 +0200
committerAnton Khirnov <anton@khirnov.net>2021-08-27 13:37:29 +0200
commit83bc788ae55b49d633ead8fa7ad5136f919826ce (patch)
tree8098d4ca036ce53787af533cc815b0c5fa2ae85e
parentac164e2c6a88ea527a7a9ae4da9e33fb1c06ec2c (diff)
Makefile: fix linking order
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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 $@ $<