switched libxml for cjson
This commit is contained in:
parent
cb869cb647
commit
a89d3a1e1b
2 changed files with 81 additions and 13 deletions
10
Makefile
10
Makefile
|
|
@ -1,14 +1,14 @@
|
|||
project = fencer
|
||||
source = $(shell find src/ -type f -name *.c)
|
||||
libraries = -lSDL2 -lSDL2_image $(shell xml2-config --cflags --libs)
|
||||
libraries = -lSDL2 -lSDL2_image -lcjson -lm
|
||||
includes = -Iinclude -Isrc
|
||||
|
||||
args_debug = -Wall -g3
|
||||
args_package = -g0
|
||||
args_debug = -Wall -g3 -DVMATH_SDL=1
|
||||
args_package = -g0 -DVMATH_SDL=1
|
||||
|
||||
# build from source
|
||||
build:
|
||||
cc $(source) $(args_debug) -o bin/$(project) $(libraries) $(includes)
|
||||
cc $(source) $(args_debug) -o bin/$(project) $(libraries) $(includes) $(CFLAGS)
|
||||
b: build
|
||||
|
||||
# build and run using debugger
|
||||
|
|
@ -25,7 +25,7 @@ d: debug
|
|||
package: clean
|
||||
mkdir $(project)
|
||||
cp -r resources/ $(project)/resources/
|
||||
cc $(source) -o $(project)/$(project) $(args_package) $(libraries) $(includes)
|
||||
cc $(source) -o $(project)/$(project) $(args_package) $(libraries) $(includes) $(CFLAGS)
|
||||
p: package
|
||||
|
||||
# clean up build directories
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue