about summary refs log tree commit diff
path: root/src/libstore/Makefile.am
blob: e19256b925ea6ea2f8d9f1d0d5ab9c911c93b5bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkglib_LTLIBRARIES = libstore.la

libstore_la_SOURCES = \
  store-api.cc local-store.cc remote-store.cc derivations.cc build.cc misc.cc \
  globals.cc references.cc pathlocks.cc gc.cc \
  optimise-store.cc

pkginclude_HEADERS = \
  store-api.hh local-store.hh remote-store.hh derivations.hh misc.hh \
  globals.hh references.hh pathlocks.hh \
  worker-protocol.hh

libstore_la_LIBADD = ../libutil/libutil.la ../boost/format/libformat.la ${aterm_lib} ${sqlite_lib}

EXTRA_DIST = schema.sql

AM_CXXFLAGS = -Wall \
 ${sqlite_include} -I$(srcdir)/.. -I$(srcdir)/../libutil

local-store.lo: schema.sql.hh

%.sql.hh: %.sql
	../bin2c/bin2c schema < $< > $@ || (rm $@ && exit 1)