aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2022-10-03 11:38:07 -0500
committerjvech <jmvalenciae@unal.edu.co>2022-10-03 11:38:07 -0500
commit8fad4fc153d162598e432ca5740c5ec401b46696 (patch)
tree32cdf567cb433397db9594202c7b15358e002eb2 /Makefile
parentfc8d7fed3ccdf0998a7b9809aa825f2d14876b29 (diff)
feat: obj file reading and rendering implemented
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