Final: Illumination
This commit is contained in:
10
Makefile
10
Makefile
@@ -13,7 +13,7 @@ OBJ = \
|
||||
CFLAGS = \
|
||||
-I./ext/cglm/include \
|
||||
-I./ext/glfw/include \
|
||||
-Wall -Wno-unused-function -std=c99 \
|
||||
-Wall -Wno-unused-function -std=c99 \
|
||||
|
||||
WAYLAND-LIB = \
|
||||
xdg-shell \
|
||||
@@ -38,6 +38,8 @@ help:
|
||||
@echo "Para ejecturar el programa sin instalarlos se puede usar:"
|
||||
@echo " $(MAKE) run-linux"
|
||||
|
||||
src/main.o: src/data/axis.h src/data/cube.h src/data/shaders.h
|
||||
|
||||
# WINDOWS
|
||||
windows: $(OBJ) glfw.dll
|
||||
$(CC) $(CFLAGS) $(OBJ) -o $(BIN) -L. -lglfw -lopengl32 -lglew32
|
||||
@@ -62,15 +64,13 @@ cocoa: $(OBJ)
|
||||
$(MAKE) BKN=_GLFW_COCOA libglfw.so
|
||||
$(CC) -framework OpenGL -o $(BIN) $(OBJ) -L. -lGLEW -lGL -lglfw
|
||||
|
||||
libglfw.so: wayland.h
|
||||
$(CC) -fPIC -shared -D$(BKN) -D_GLFW_BUILD_DLL -Iext/glfw/deps/wayland ./ext/glfw/src/*.c -o $@
|
||||
|
||||
wayland.h:
|
||||
libglfw.so:
|
||||
for i in $(WAYLAND-LIB); \
|
||||
do \
|
||||
wayland-scanner client-header ext/glfw/deps/wayland/$$i.xml ext/glfw/deps/wayland/$$i-client-protocol.h; \
|
||||
wayland-scanner private-code ext/glfw/deps/wayland/$$i.xml ext/glfw/deps/wayland/$$i-client-protocol-code.h; \
|
||||
done
|
||||
$(CC) -fPIC -shared -D$(BKN) -D_GLFW_BUILD_DLL -Iext/glfw/deps/wayland ./ext/glfw/src/*.c -o $@
|
||||
|
||||
clean:
|
||||
rm $(OBJ) $(BIN) ext/glfw/deps/wayland/*.h
|
||||
|
||||
Reference in New Issue
Block a user