subdirs=engines
targets=libDatabase
cppflags_force=-I../include
cflags_force=`pkg-config --cflags libSystem` -fPIC
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libSystem`
ldflags=-Wl,-z,relro -Wl,-z,now
dist=Makefile,database.h,python/project.conf,python/Makefile,python/libDatabase.c,python/libDatabase.py

[libDatabase]
type=library
sources=database.c,statement.c
install=$(LIBDIR)

[database.c]
depends=../include/Database/database.h,../include/Database/engine.h,database.h,../config.h
cppflags=-D PREFIX=\"$(PREFIX)\" -D LIBDIR=\"$(LIBDIR)\"

[statement.c]
depends=../include/Database/database.h,../include/Database/statement.h,database.h
