switched libxml for cjson
This commit is contained in:
parent
cb869cb647
commit
a89d3a1e1b
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
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
"/usr/lib64/ccache/cc",
|
||||
"-c",
|
||||
"-Wall",
|
||||
"-g",
|
||||
"-I/usr/include/libxml2",
|
||||
"-g3",
|
||||
"-DVMATH_SDL=1",
|
||||
"-Iinclude",
|
||||
"-Isrc",
|
||||
"-o",
|
||||
|
@ -21,8 +21,8 @@
|
|||
"/usr/lib64/ccache/cc",
|
||||
"-c",
|
||||
"-Wall",
|
||||
"-g",
|
||||
"-I/usr/include/libxml2",
|
||||
"-g3",
|
||||
"-DVMATH_SDL=1",
|
||||
"-Iinclude",
|
||||
"-Isrc",
|
||||
"-o",
|
||||
|
@ -38,8 +38,8 @@
|
|||
"/usr/lib64/ccache/cc",
|
||||
"-c",
|
||||
"-Wall",
|
||||
"-g",
|
||||
"-I/usr/include/libxml2",
|
||||
"-g3",
|
||||
"-DVMATH_SDL=1",
|
||||
"-Iinclude",
|
||||
"-Isrc",
|
||||
"-o",
|
||||
|
@ -55,8 +55,8 @@
|
|||
"/usr/lib64/ccache/cc",
|
||||
"-c",
|
||||
"-Wall",
|
||||
"-g",
|
||||
"-I/usr/include/libxml2",
|
||||
"-g3",
|
||||
"-DVMATH_SDL=1",
|
||||
"-Iinclude",
|
||||
"-Isrc",
|
||||
"-o",
|
||||
|
@ -66,5 +66,73 @@
|
|||
"directory": "/home/sara/Documents/c-projects/fencer",
|
||||
"file": "/home/sara/Documents/c-projects/fencer/src/tilemap.c",
|
||||
"output": "/home/sara/Documents/c-projects/fencer/bin/fencer"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
"/usr/lib64/ccache/cc",
|
||||
"-c",
|
||||
"-Wall",
|
||||
"-g3",
|
||||
"-DVMATH_SDL=1",
|
||||
"-Iinclude",
|
||||
"-Isrc",
|
||||
"-o",
|
||||
"bin/fencer",
|
||||
"src/camera.c"
|
||||
],
|
||||
"directory": "/home/sara/Documents/c-projects/fencer",
|
||||
"file": "/home/sara/Documents/c-projects/fencer/src/camera.c",
|
||||
"output": "/home/sara/Documents/c-projects/fencer/bin/fencer"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
"/usr/lib64/ccache/cc",
|
||||
"-c",
|
||||
"-Wall",
|
||||
"-g3",
|
||||
"-DVMATH_SDL=1",
|
||||
"-Iinclude",
|
||||
"-Isrc",
|
||||
"-o",
|
||||
"bin/fencer",
|
||||
"src/sprite.c"
|
||||
],
|
||||
"directory": "/home/sara/Documents/c-projects/fencer",
|
||||
"file": "/home/sara/Documents/c-projects/fencer/src/sprite.c",
|
||||
"output": "/home/sara/Documents/c-projects/fencer/bin/fencer"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
"/usr/lib64/ccache/cc",
|
||||
"-c",
|
||||
"-Wall",
|
||||
"-g3",
|
||||
"-DVMATH_SDL=1",
|
||||
"-Iinclude",
|
||||
"-Isrc",
|
||||
"-o",
|
||||
"bin/fencer",
|
||||
"src/spritesheet.c"
|
||||
],
|
||||
"directory": "/home/sara/Documents/c-projects/fencer",
|
||||
"file": "/home/sara/Documents/c-projects/fencer/src/spritesheet.c",
|
||||
"output": "/home/sara/Documents/c-projects/fencer/bin/fencer"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
"/usr/lib64/ccache/cc",
|
||||
"-c",
|
||||
"-Wall",
|
||||
"-g3",
|
||||
"-DVMATH_SDL=1",
|
||||
"-Iinclude",
|
||||
"-Isrc",
|
||||
"-o",
|
||||
"bin/fencer",
|
||||
"src/assets.c"
|
||||
],
|
||||
"directory": "/home/sara/Documents/c-projects/fencer",
|
||||
"file": "/home/sara/Documents/c-projects/fencer/src/assets.c",
|
||||
"output": "/home/sara/Documents/c-projects/fencer/bin/fencer"
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue