added project files
This commit is contained in:
commit
267d73167b
4 changed files with 98 additions and 0 deletions
25
Makefile
Normal file
25
Makefile
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
project = fencer
|
||||
source = $(shell find src/ -type f -name *.c)
|
||||
libraries = -lSDL2 -lSDL2_image $(shell xml2-config --cflags --libs)
|
||||
includes = -Iinclude -Isrc
|
||||
|
||||
args_debug = -Wall -g
|
||||
args_package = -g0
|
||||
|
||||
build:
|
||||
cc $(source) $(args_debug) -o bin/$(project) $(libraries) $(includes)
|
||||
b: build
|
||||
|
||||
run: build
|
||||
ugdb -xrun.gdb -- bin/$(project)
|
||||
r: run
|
||||
|
||||
package: clean
|
||||
mkdir $(project)
|
||||
cp -r resources/ $(project)/resources/
|
||||
cc $(source) $(project)/$(project) $(args_package) $(libraries) $(includes)
|
||||
p: package
|
||||
|
||||
clean:
|
||||
rm -rf $(project)
|
||||
c: clean
|
||||
Loading…
Add table
Add a link
Reference in a new issue