Debug in makefile
This commit is contained in:
parent
24048c387a
commit
0708a5fdbb
1 changed files with 10 additions and 3 deletions
13
makefile
13
makefile
|
|
@ -2,12 +2,19 @@ CP=clang
|
|||
CFLAGS=$(shell cat compiler_flags.txt | tr '\n' ' ')
|
||||
FILES=$(wildcard src/*.cpp)
|
||||
|
||||
.PHONY : clean cross-windows
|
||||
.PHONY : clean cross-windows all release debug
|
||||
|
||||
build/linux/raylib-test-linux.x86_64 : $(FILES)
|
||||
build/linux/raylib-test-linux-debug: $(FILES)
|
||||
mkdir -p build/linux
|
||||
$(CP) $(FILES) $(CFLAGS) -o build/linux/raylib-test-linux.x86_64
|
||||
$(CP) $(FILES) $(CFLAGS) -g3 -o build/linux/raylib-test-linux-debug
|
||||
|
||||
build/linux/raylib-test-linux-release: $(FILES)
|
||||
mkdir -p build/linux
|
||||
$(CP) $(FILES) $(CFLAGS) -o build/linux/raylib-test-linux-release
|
||||
|
||||
release: build/linux/raylib-test-linux-release
|
||||
|
||||
debug: build/linux/raylib-test-linux-debug
|
||||
|
||||
clean :
|
||||
rm -r build/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue