aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-07-20 11:39:39 +0200
committerAnton Khirnov <anton@khirnov.net>2021-07-20 11:39:39 +0200
commitc74e7f60c46c8e39e4c3633077d3992e653849c4 (patch)
tree26169f766d7049dfb54b80b56745164768711962
parent6a59a9926996ce350472678c4fb62b2242a117fb (diff)
Makefile: fix linking flag order
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 18ef85f..341c757 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ OBJS = basis.o \
all: $(TARGET)
$(TARGET): $(OBJS)
- $(CC) ${LDFLAGS} -o $@ $(OBJS)
+ $(CC) -o $@ $(OBJS) ${LDFLAGS}
%.o: %.c
$(CC) $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $<