This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
2022-01-30 21:24:16 +08:00
|
|
|
GLFW_DEP = -L./libs/glfw/ -lglfw
|
|
|
|
GLAD_DEP = -I./libs/glad/include
|
|
|
|
STB_IMAGE_DEP = -I./libs/stb_image
|
2022-01-30 21:35:04 +08:00
|
|
|
SRC = $(wildcard ./*.cpp) glad.o # ./libs/stb_image/stbi_image.cpp
|
2022-01-30 21:24:16 +08:00
|
|
|
CPP_FLAGS = -std=c++17
|
|
|
|
|
2022-01-30 21:35:04 +08:00
|
|
|
game.out: ${SRC}
|
|
|
|
$(CXX) $^ ${GLFW_DEP} -o $@ ${GLAD_DEP} ${CPP_FLAGS} #${STB_IMAGE_DEP}
|
|
|
|
|
|
|
|
glad.o: ./libs/glad/src/gl.c
|
|
|
|
$(CC) $^ -c -o $@ ${GLAD_DEP}
|
2022-01-30 21:24:16 +08:00
|
|
|
|
|
|
|
.PHONY:clean pack
|
|
|
|
clean:
|
2022-01-30 21:35:04 +08:00
|
|
|
-rm -rf output
|
2022-01-30 21:24:16 +08:00
|
|
|
-rm *.o
|
2022-01-30 21:35:04 +08:00
|
|
|
|
2022-01-30 21:24:16 +08:00
|
|
|
pack:
|
2022-01-30 21:35:04 +08:00
|
|
|
-rm -rf output
|
2022-01-30 21:24:16 +08:00
|
|
|
-mkdir output
|
|
|
|
-mv game.out output/
|
|
|
|
-cp libs/glfw/libglfw.3.dylib output/
|