about summary refs log tree commit diff
path: root/src/libutil/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/Makefile')
-rw-r--r--src/libutil/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libutil/Makefile b/src/libutil/Makefile
new file mode 100644
index 000000000000..83bd05f281d6
--- /dev/null
+++ b/src/libutil/Makefile
@@ -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