aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f50f361..3895e4d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,10 @@ DLIBS := -lm $(shell pkg-config --libs glfw3 opengl glew)
INCLUDE := $(addprefix -I,./include)
OBJDIR = objs
SRCDIR = src
-OBJS = $(addprefix objs/,main.o shader.o linear.o)
+OBJS = $(addprefix objs/,main.o shader.o linear.o obj.o)
BIN = mverse
-all: build run
+all: build
$(OBJS): | $(OBJDIR)
@@ -15,7 +15,7 @@ $(OBJDIR):
mkdir ${OBJDIR}
$(OBJDIR)/%.o: $(SRCDIR)/%.c
- ${CC} -c $< -o $@ ${CFLAGS} ${INCLUDE}
+ ${CC} -g -c $< -o $@ ${CFLAGS} ${INCLUDE}
build: $(OBJS)
${CC} $^ -o ${BIN} ${DLIBS}
Feel free to download, copy and edit any repo