aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3d6b855..33cb622 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-CC = clang
-CLAGS = -Wall -g
+CC = gcc
+CFLAGS = -Wall
LDFLAGS =
BUILDDIR = build
SOURCEDIR = src
@@ -14,6 +14,9 @@ build: dir $(OBJ)
@echo [LD] $(OBJ)
@$(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS)
+debug: CFLAGS += -g -D _DEBUG
+debug: build;
+
dir:
@mkdir -p $(OBJECTDIR)
@mkdir -p $(BUILDDIR)