about summary refs log tree commit diff
path: root/src/libstore/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/Makefile')
-rw-r--r--src/libstore/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libstore/Makefile b/src/libstore/Makefile
new file mode 100644
index 000000000000..eaba1005f227
--- /dev/null
+++ b/src/libstore/Makefile
@@ -0,0 +1,23 @@
+LIBS += libstore
+
+libstore_NAME = libnixstore
+
+libstore_DIR := $(d)
+
+libstore_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
+
+libstore_LIBS = libutil libformat
+
+libstore_LDFLAGS = -lsqlite3 -lbz2
+
+libstore_CXXFLAGS = \
+ -DNIX_STORE_DIR=\"$(storedir)\" \
+ -DNIX_DATA_DIR=\"$(datadir)\" \
+ -DNIX_STATE_DIR=\"$(localstatedir)/nix\" \
+ -DNIX_LOG_DIR=\"$(localstatedir)/log/nix\" \
+ -DNIX_CONF_DIR=\"$(sysconfdir)/nix\" \
+ -DNIX_LIBEXEC_DIR=\"$(libexecdir)\" \
+ -DNIX_BIN_DIR=\"$(bindir)\" \
+ -DPACKAGE_VERSION=\"$(PACKAGE_VERSION)\"