about summary refs log tree commit diff
path: root/src/libstore/Makefile
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-25T15·25+0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-25T15·25+0000
commit7ce0e05ad875657a0fec10e192454b837146e190 (patch)
tree72e58bc1ef06755fdfd701d77a61a1144a6b576f /src/libstore/Makefile
parent962551a071da87589a97a2f40d72b87d6e6ba9e2 (diff)
Rename Makefile.new -> Makefile
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)\"