]> git.cworth.org Git - dvonn/blobdiff - Makefile
Fix compilation by putting libraries late on the command line
[dvonn] / Makefile
index ab8e9a0a9ab70004e381ca733fc794e2407f6151..baa960bc8bb86211f90125e6ba0396c4ef88e62f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ all: $(ALL)
        $(CC) $(CFLAGS) $(MYCFLAGS) -c -o $@ -c $<
 
 dvonn: dvonn.o dvonn-board.o
-       $(CC) $(LDLAGS) $(MYLDFLAGS) -o $@ $^ -lm
+       $(CC) -o $@ $^ $(LDFLAGS) $(MYLDFLAGS) -lm
 
 Makefile.dep: *.c
        $(CC) -M $(CPPFLAGS) $(MYCFLAGS) $^ > $@