switched libxml for cjson
This commit is contained in:
parent
cb869cb647
commit
a89d3a1e1b
10
Makefile
10
Makefile
|
@ -1,14 +1,14 @@
|
||||||
project = fencer
|
project = fencer
|
||||||
source = $(shell find src/ -type f -name *.c)
|
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
|
includes = -Iinclude -Isrc
|
||||||
|
|
||||||
args_debug = -Wall -g3
|
args_debug = -Wall -g3 -DVMATH_SDL=1
|
||||||
args_package = -g0
|
args_package = -g0 -DVMATH_SDL=1
|
||||||
|
|
||||||
# build from source
|
# build from source
|
||||||
build:
|
build:
|
||||||
cc $(source) $(args_debug) -o bin/$(project) $(libraries) $(includes)
|
cc $(source) $(args_debug) -o bin/$(project) $(libraries) $(includes) $(CFLAGS)
|
||||||
b: build
|
b: build
|
||||||
|
|
||||||
# build and run using debugger
|
# build and run using debugger
|
||||||
|
@ -25,7 +25,7 @@ d: debug
|
||||||
package: clean
|
package: clean
|
||||||
mkdir $(project)
|
mkdir $(project)
|
||||||
cp -r resources/ $(project)/resources/
|
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
|
p: package
|
||||||
|
|
||||||
# clean up build directories
|
# clean up build directories
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
"/usr/lib64/ccache/cc",
|
"/usr/lib64/ccache/cc",
|
||||||
"-c",
|
"-c",
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-g",
|
"-g3",
|
||||||
"-I/usr/include/libxml2",
|
"-DVMATH_SDL=1",
|
||||||
"-Iinclude",
|
"-Iinclude",
|
||||||
"-Isrc",
|
"-Isrc",
|
||||||
"-o",
|
"-o",
|
||||||
|
@ -21,8 +21,8 @@
|
||||||
"/usr/lib64/ccache/cc",
|
"/usr/lib64/ccache/cc",
|
||||||
"-c",
|
"-c",
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-g",
|
"-g3",
|
||||||
"-I/usr/include/libxml2",
|
"-DVMATH_SDL=1",
|
||||||
"-Iinclude",
|
"-Iinclude",
|
||||||
"-Isrc",
|
"-Isrc",
|
||||||
"-o",
|
"-o",
|
||||||
|
@ -38,8 +38,8 @@
|
||||||
"/usr/lib64/ccache/cc",
|
"/usr/lib64/ccache/cc",
|
||||||
"-c",
|
"-c",
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-g",
|
"-g3",
|
||||||
"-I/usr/include/libxml2",
|
"-DVMATH_SDL=1",
|
||||||
"-Iinclude",
|
"-Iinclude",
|
||||||
"-Isrc",
|
"-Isrc",
|
||||||
"-o",
|
"-o",
|
||||||
|
@ -55,8 +55,8 @@
|
||||||
"/usr/lib64/ccache/cc",
|
"/usr/lib64/ccache/cc",
|
||||||
"-c",
|
"-c",
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-g",
|
"-g3",
|
||||||
"-I/usr/include/libxml2",
|
"-DVMATH_SDL=1",
|
||||||
"-Iinclude",
|
"-Iinclude",
|
||||||
"-Isrc",
|
"-Isrc",
|
||||||
"-o",
|
"-o",
|
||||||
|
@ -66,5 +66,73 @@
|
||||||
"directory": "/home/sara/Documents/c-projects/fencer",
|
"directory": "/home/sara/Documents/c-projects/fencer",
|
||||||
"file": "/home/sara/Documents/c-projects/fencer/src/tilemap.c",
|
"file": "/home/sara/Documents/c-projects/fencer/src/tilemap.c",
|
||||||
"output": "/home/sara/Documents/c-projects/fencer/bin/fencer"
|
"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