targets=libSystem
cppflags_force=-I ../include
cppflags=
cflags_force=-fPIC
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
#XXX get rid of this dependency
ldflags_force=-lsocket
ldflags=-Wl,-z,relro -Wl,-z,now
dist=Makefile,token.h,python/project.conf,python/Makefile,python/libSystem.c,python/libSystem.py

#modes
[mode::debug]

[mode::release]
cppflags_force=-DNDEBUG
cflags=-W -Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector

#targets
[libSystem]
type=library
soname=libSystem.so.1
sources=array.c,buffer.c,config.c,error.c,event.c,file.c,hash.c,mutator.c,object.c,parser.c,plugin.c,string.c,token.c,variable.c
ldflags=`../tools/platform.sh -O DESTDIR="$(DESTDIR)" -l dl` `../tools/platform.sh -O DESTDIR="$(DESTDIR)" -l m`
install=$(LIBDIR)

#sources
[config.c]
depends=../config.h

[parser.c]
depends=token.h

[token.c]
depends=token.h
