Fix linking issues
This commit is contained in:
parent
bfbdbf75f3
commit
806c260893
6
compile
6
compile
@ -3,15 +3,15 @@
|
|||||||
CC=clang
|
CC=clang
|
||||||
CFLAGS="-g -c -Wall -Isrc/glad/include"
|
CFLAGS="-g -c -Wall -Isrc/glad/include"
|
||||||
CXX=clang++
|
CXX=clang++
|
||||||
CXXFLAGS="-g -Wall -std=c++20 $(pkg-config --cflags sdl2) -Isrc/glad/include -Isrc/glm -Isrc/assimp/build/include"
|
CXXFLAGS="-g -Wall -std=c++20 $(pkg-config --cflags sdl2) -Isrc/glad/include -Isrc/glm -Isrc/assimp/include -Isrc/assimp/build/include"
|
||||||
LIBS="$(pkg-config --libs sdl2) -ldl -Lsrc/assimp/build/lib -lassimp"
|
LIBS="$(pkg-config --libs sdl2) -ldl -lz -lminizip -Lsrc/assimp/build/lib/ -lassimp"
|
||||||
GLAD_SRC="src/glad/src/glad.c"
|
GLAD_SRC="src/glad/src/glad.c"
|
||||||
GLAD_OBJ="glad.o"
|
GLAD_OBJ="glad.o"
|
||||||
SRC="src/*.cc $GLAD_OBJ src/glm/glm/glm.cppm"
|
SRC="src/*.cc $GLAD_OBJ src/glm/glm/glm.cppm"
|
||||||
OUT=main
|
OUT=main
|
||||||
|
|
||||||
(set -x ; $CC $CFLAGS $GLAD_SRC -o $GLAD_OBJ)
|
(set -x ; $CC $CFLAGS $GLAD_SRC -o $GLAD_OBJ)
|
||||||
(set -x ; $CXX $CXXFLAGS $LIBS $SRC -o $OUT)
|
(set -x ; $CXX $CXXFLAGS $SRC $LIBS -o $OUT)
|
||||||
|
|
||||||
if [[ -f $GLAD_OBJ ]]; then
|
if [[ -f $GLAD_OBJ ]]; then
|
||||||
rm $GLAD_OBJ
|
rm $GLAD_OBJ
|
||||||
|
Loading…
Reference in New Issue
Block a user