Compare commits
1 Commits
pedro-klei
...
alan2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66254e80c9 |
7
Makefile
7
Makefile
@@ -1,6 +1,7 @@
|
|||||||
BIN = manigraph
|
BIN = manigraph
|
||||||
|
|
||||||
OBJ = \
|
OBJ = \
|
||||||
|
ext/glad/glad.o \
|
||||||
src/surface.o \
|
src/surface.o \
|
||||||
src/context.o \
|
src/context.o \
|
||||||
src/texture.o \
|
src/texture.o \
|
||||||
@@ -14,6 +15,8 @@ OBJ = \
|
|||||||
CFLAGS = \
|
CFLAGS = \
|
||||||
-I./ext/cglm/include \
|
-I./ext/cglm/include \
|
||||||
-I./ext/glfw/include \
|
-I./ext/glfw/include \
|
||||||
|
-I./ext/glad \
|
||||||
|
-DGLAD \
|
||||||
-Wall -Wno-unused-function -std=c99 -D_GNU_SOURCE \
|
-Wall -Wno-unused-function -std=c99 -D_GNU_SOURCE \
|
||||||
|
|
||||||
WAYLAND-LIB = \
|
WAYLAND-LIB = \
|
||||||
@@ -42,6 +45,8 @@ help:
|
|||||||
|
|
||||||
src/main.o: src/data/axis.h src/data/shaders.h
|
src/main.o: src/data/axis.h src/data/shaders.h
|
||||||
|
|
||||||
|
$(OBJ): src/main.h
|
||||||
|
|
||||||
# WINDOWS
|
# WINDOWS
|
||||||
windows: $(OBJ) glfw.dll
|
windows: $(OBJ) glfw.dll
|
||||||
$(CC) $(CFLAGS) $(OBJ) -o $(BIN) -L. -lglfw -lopengl32 -lglew32
|
$(CC) $(CFLAGS) $(OBJ) -o $(BIN) -L. -lglfw -lopengl32 -lglew32
|
||||||
@@ -84,5 +89,5 @@ clean:
|
|||||||
|
|
||||||
.SUFFIXES: .c .o
|
.SUFFIXES: .c .o
|
||||||
|
|
||||||
.c.o: src/main.h
|
.c.o:
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#else
|
#else
|
||||||
#ifdef GLAD
|
#ifdef GLAD
|
||||||
#include <GLFW/glfw3.h>
|
|
||||||
#include <glad.h>
|
#include <glad.h>
|
||||||
|
#include <GLFW/glfw3.h>
|
||||||
#else
|
#else
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user