Fix compilation

This commit is contained in:
PedroEdiaz
2024-12-03 22:21:22 -06:00
parent f514fc7ffe
commit 65017c859c

View File

@@ -2,19 +2,23 @@ BIN = manigraph
OBJ = \
ext/glad/glad.o \
src/surface.o \
src/context.o \
src/window.o \
src/load.o \
src/shader.o \
src/klein.o \
src/input.o \
src/load.o \
src/mesh.o \
src/main.o
EXAMPLES = \
example/basic.o
CFLAGS = \
-I./ext/cglm/include \
-I./ext/glfw/include \
-I./ext/glad \
-I./include \
-Wall -Wno-unused-function -std=c99 -D_GNU_SOURCE \
WAYLAND-LIB = \
@@ -38,7 +42,7 @@ help:
@echo "Clean"
@echo " $(MAKE) clean"
src/main.o: src/data/axis.h src/data/shaders.h
src/main.o: src/data/shaders.h
windows: $(OBJ)
cd ext; $(MAKE) -f glfw.mk windows; cd -
@@ -72,6 +76,8 @@ clean:
cd ext; $(MAKE) -f glfw.mk clean; cd -
examples: $(EXAMPLES)
.SUFFIXES: .c .o
.c.o: