Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66254e80c9 |
7
Makefile
7
Makefile
@@ -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 $@ $<
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user