Make a chess demo
This commit is contained in:
@@ -7,7 +7,7 @@ else
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
EXT =
|
||||
CFLAGS = -ggdb -I3p/glad/include -fsanitize=address,undefined
|
||||
CFLAGS = -ggdb -I3p/glad/include #-fsanitize=address,undefined
|
||||
LDFLAGS = -lglfw -lm
|
||||
endif
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
@@ -23,7 +23,7 @@ test_vector$(EXT): Makefile src/test_vector.cpp src/vector.c
|
||||
g++ src/test_vector.cpp src/vector.c -o $@ -I3p/glm
|
||||
|
||||
pbrex$(EXT): Makefile $(wildcard src/*.c src/*.h)
|
||||
gcc -o $@ src/main.c src/camera.c src/mesh.c src/vector.c src/graphics.c 3p/glad/src/glad.c -std=c11 $(CFLAGS) $(LDFLAGS)
|
||||
gcc -o $@ src/main.c src/utils.c src/camera.c src/mesh.c src/vector.c src/graphics.c 3p/glad/src/glad.c -std=c11 $(CFLAGS) $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm pbrex pbrex.exe
|
||||
|
||||
Reference in New Issue
Block a user