aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aaf20db..f50f361 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
CC := cc
CFLAGS := -Wall -pedantic -pedantic-errors -std=c11
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)
@@ -14,7 +15,7 @@ $(OBJDIR):
mkdir ${OBJDIR}
$(OBJDIR)/%.o: $(SRCDIR)/%.c
- ${CC} -c $< -o $@ ${CFLAGS}
+ ${CC} -c $< -o $@ ${CFLAGS} ${INCLUDE}
build: $(OBJS)
${CC} $^ -o ${BIN} ${DLIBS}
Feel free to download, copy and edit any repo