1 Commits
klein ... alan2

Author SHA1 Message Date
PedroEdiaz
66254e80c9 Fix: Compilation errors alan 2024-11-27 19:31:36 -06:00
2 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
BIN = manigraph
OBJ = \
ext/glad/glad.o \
src/surface.o \
src/context.o \
src/texture.o \
@@ -14,6 +15,8 @@ OBJ = \
CFLAGS = \
-I./ext/cglm/include \
-I./ext/glfw/include \
-I./ext/glad \
-DGLAD \
-Wall -Wno-unused-function -std=c99 -D_GNU_SOURCE \
WAYLAND-LIB = \
@@ -42,6 +45,8 @@ help:
src/main.o: src/data/axis.h src/data/shaders.h
$(OBJ): src/main.h
# WINDOWS
windows: $(OBJ) glfw.dll
$(CC) $(CFLAGS) $(OBJ) -o $(BIN) -L. -lglfw -lopengl32 -lglew32
@@ -84,5 +89,5 @@ clean:
.SUFFIXES: .c .o
.c.o: src/main.h
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<

View File

@@ -4,8 +4,8 @@
#include <GL/gl.h>
#else
#ifdef GLAD
#include <GLFW/glfw3.h>
#include <glad.h>
#include <GLFW/glfw3.h>
#else
#include <GL/glew.h>
#endif