Fixes to make GCC happier.

This commit is contained in:
Bob Nystrom
2014-11-26 14:03:05 -08:00
parent f6cbb6ad75
commit 83c2013dfb
5 changed files with 13 additions and 4 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ debug: prep wrend
# Debug command-line interpreter.
wrend: $(DEBUG_OBJECTS)
$(CC) $(CFLAGS) $(DEBUG_CFLAGS) -Iinclude -o wrend $^
$(CC) $(CFLAGS) $(DEBUG_CFLAGS) -Iinclude -lm -o wrend $^
# Debug object files.
build/debug/%.o: src/%.c include/wren.h $(HEADERS)
@@ -38,7 +38,7 @@ release: prep wren
# Release command-line interpreter.
wren: $(RELEASE_OBJECTS)
$(CC) $(CFLAGS) $(RELEASE_CFLAGS) -Iinclude -o wren $^
$(CC) $(CFLAGS) $(RELEASE_CFLAGS) -Iinclude -lm -o wren $^
# Release object files.
build/release/%.o: src/%.c include/wren.h $(HEADERS)