aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2022-09-12 10:18:08 -0500
committerjvech <jmvalenciae@unal.edu.co>2022-09-12 10:18:08 -0500
commit6781af306edc8f6b0928013ed9ec2fa87d63da81 (patch)
tree9cd2cf01b7592c3ac353606fe1b34693ae8b5eee /Makefile
parent86c7bdee944ce2f60d63124e9ddb76198ddbc676 (diff)
learn: 15. lightning maps
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