about summary refs log tree commit diff
path: root/src/libutil/local.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-30T11·11+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-30T11·11+0100
commite0234dfddc8343a6bca80ba6e6e93d083ce51a85 (patch)
treec7d85ccf88f723b97b384afa6936c60d7bb3e0df /src/libutil/local.mk
parent4a2ec9c6598aafb98e5495c2cf3a24e166668790 (diff)
Rename Makefile -> local.mk
Diffstat (limited to 'src/libutil/local.mk')
-rw-r--r--src/libutil/local.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libutil/local.mk b/src/libutil/local.mk
new file mode 100644
index 000000000000..83bd05f281d6
--- /dev/null
+++ b/src/libutil/local.mk
@@ -0,0 +1,15 @@
+LIBS += libutil
+
+libutil_NAME = libnixutil
+
+libutil_DIR := $(d)
+
+libutil_SOURCES := $(wildcard $(d)/*.cc)
+
+ifeq ($(HAVE_OPENSSL), 1)
+  libutil_LDFLAGS = $(OPENSSL_LIBS)
+else
+  libutil_SOURCES += $(d)/md5.c $(d)/sha1.c $(d)/sha256.c
+endif
+
+libutil_LIBS = libformat