aboutsummaryrefslogtreecommitdiffstats
path: root/demos/kdf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'demos/kdf/Makefile')
-rw-r--r--demos/kdf/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/demos/kdf/Makefile b/demos/kdf/Makefile
index 28ad7209b1..81efbeeff7 100644
--- a/demos/kdf/Makefile
+++ b/demos/kdf/Makefile
@@ -1,24 +1,28 @@
#
-# To run the demos when linked with a shared library (default):
+# To run the demos when linked with a shared library (default) ensure that
+# libcrypto is on the library path. For example:
#
# LD_LIBRARY_PATH=../.. ./hkdf
-CFLAGS = -I../../include -g
-LDFLAGS = -L../..
-LDLIBS = -lcrypto
+TESTS = hkdf \
+ pbkdf2 \
+ scrypt \
+ argon2
-TESTS=hkdf pbkdf2 scrypt argon2
+CFLAGS = -I../../include -g -Wall
+LDFLAGS = -L../..
+LDLIBS = -lcrypto
all: $(TESTS)
-%.o: %.c
- $(CC) $(CFLAGS) -c $<
-
hkdf: hkdf.o
pbkdf2: pbkdf2.o
scrypt: scrypt.o
argon2: argon2.o
+$(TESTS):
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
+
clean:
$(RM) *.o $(TESTS)