fixed makefile
This commit is contained in:
parent
96bb3c3611
commit
cbb7200289
14
Makefile
14
Makefile
|
@ -1,18 +1,22 @@
|
|||
GLFW_DEP = -L./libs/glfw/ -lglfw
|
||||
GLAD_DEP = -I./libs/glad/include
|
||||
STB_IMAGE_DEP = -I./libs/stb_image
|
||||
SRC = $(wildcard ./*.cpp) ./libs/glad/src/gl.c ./libs/stb_image/stbi_image.cpp
|
||||
SRC = $(wildcard ./*.cpp) glad.o # ./libs/stb_image/stbi_image.cpp
|
||||
CPP_FLAGS = -std=c++17
|
||||
|
||||
game.out: $(SRC)
|
||||
$(CXX) $^ ${GLFW_DEP} -o $@ ${GLAD_DEP} ${STB_IMAGE_DEP} ${CPP_FLAGS}
|
||||
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}
|
||||
|
||||
.PHONY:clean pack
|
||||
clean:
|
||||
-rm -rf output
|
||||
-rm *.o
|
||||
-rm *.out
|
||||
|
||||
pack:
|
||||
-rm -r output
|
||||
-rm -rf output
|
||||
-mkdir output
|
||||
-mv game.out output/
|
||||
-cp libs/glfw/libglfw.3.dylib output/
|
||||
|
|
Reference in New Issue