libs/xml: Pass XML_CFLAGS
This commit is contained in:
parent
cfd78e199f
commit
5efca7848b
2 changed files with 6 additions and 6 deletions
|
@ -27,15 +27,13 @@ There's plenty of other editors for the first-party id Tech games.
|
||||||
|
|
||||||
## Compiling
|
## Compiling
|
||||||
To compile on a standard GNU/Linux system:
|
To compile on a standard GNU/Linux system:
|
||||||
`LDFLAGS=-ldl gmake -j $(nproc)`
|
`LDFLAGS=-ldl make -j $(nproc)`
|
||||||
|
|
||||||
For BSD systems you'll have to point CFLAGS to whereever your package headers are installed.
|
|
||||||
gtkgtlext-1.0 is notorious for using both include and lib/gtkgtlext-1.0/include for headers. Yes.
|
|
||||||
|
|
||||||
|
On BSD you should probably use GNU make right now. The Makefiles are simple enough however.
|
||||||
Clang should also be supported, pass CC=clang and CXX=clang++ if you want to use it.
|
Clang should also be supported, pass CC=clang and CXX=clang++ if you want to use it.
|
||||||
|
|
||||||
On NT you'll probably have a build command-line likes this:
|
On NT you'll probably have a build command-line likes this:
|
||||||
`CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig make -j 4`
|
`CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig make -j 4`
|
||||||
Not all works yet, but stay tuned.
|
Not all works yet, but stay tuned.
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
# WorldSpawn Makefile
|
# WorldSpawn Makefile
|
||||||
|
|
||||||
GTK_CFLAGS=$(shell pkg-config --cflags gtk+-2.0)
|
GTK_CFLAGS=$(shell pkg-config --cflags gtk+-2.0)
|
||||||
LIB_CFLAGS=$(CFLAGS) $(GTK_CFLAGS) -I../../include -I../../libs -DGTK_TARGET=2
|
XML_CFLAGS=$(shell pkg-config --cflags libxml-2.0)
|
||||||
|
|
||||||
|
LIB_CFLAGS=$(CFLAGS) $(GTK_CFLAGS) $(XML_CFLAGS) -I../../include -I../../libs -DGTK_TARGET=2
|
||||||
DO_CXX=$(CXX) -static -fPIC $(LIB_CFLAGS) -o $@ -c $<
|
DO_CXX=$(CXX) -static -fPIC $(LIB_CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
.cpp.o:
|
.cpp.o:
|
||||||
|
|
Loading…
Reference in a new issue