aboutsummaryrefslogtreecommitdiffstats
path: root/src/libfreeswan/libcrypto/libsha2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/libfreeswan/libcrypto/libsha2/Makefile')
-rw-r--r--src/libfreeswan/libcrypto/libsha2/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/libfreeswan/libcrypto/libsha2/Makefile b/src/libfreeswan/libcrypto/libsha2/Makefile
new file mode 100644
index 000000000..cee7e6109
--- /dev/null
+++ b/src/libfreeswan/libcrypto/libsha2/Makefile
@@ -0,0 +1,21 @@
+CFLAGS=-O3 -fomit-frame-pointer -I../include $(EXTRA_CFLAGS)
+
+LIBOBJ := hmac_sha2.o sha2.o
+
+BLIB := libsha2.a
+
+.S.o:
+ $(CC) $(AFLAGS) -c $< -o $@
+
+$(BLIB): $(LIBOBJ)
+ /bin/rm -f $(BLIB)
+ ar cr $(BLIB) $(LIBOBJ)
+ -if test -s /bin/ranlib; then /bin/ranlib $(BLIB); \
+ else if test -s /usr/bin/ranlib; then /usr/bin/ranlib $(BLIB); \
+ else exit 0; fi; fi
+
+test: test_main.o $(BLIB)
+ $(CC) -o $@ $^
+
+clean:
+ rm -f *.[oa] core $(TARGET) test