diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-07-19 18:54:01 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-08-27 13:37:29 +0200 |
commit | 83bc788ae55b49d633ead8fa7ad5136f919826ce (patch) | |
tree | 8098d4ca036ce53787af533cc815b0c5fa2ae85e | |
parent | ac164e2c6a88ea527a7a9ae4da9e33fb1c06ec2c (diff) |
Makefile: fix linking order
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 $@ $< |