aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8b56258..c16ae21 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
CC = clang
CFLAGS = -Wall
-LDFLAGS =
+LDFLAGS = -lm
BUILDDIR = build
SOURCEDIR = src
OBJECTDIR = obj
@@ -18,7 +18,7 @@ build: dir $(OBJ)
debug: CFLAGS += -g -D _DEBUG
debug: build;
-test: LDFLAGS += -Wl,-etest_main
+test: CFLAGS += -D _TEST
test: debug
$(BUILDDIR)/$(OUTPUT)