summaryrefslogtreecommitdiff
path: root/ecp/src/ecp/crypto/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/src/ecp/crypto/Makefile')
-rw-r--r--ecp/src/ecp/crypto/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/ecp/src/ecp/crypto/Makefile b/ecp/src/ecp/crypto/Makefile
new file mode 100644
index 0000000..b1d2996
--- /dev/null
+++ b/ecp/src/ecp/crypto/Makefile
@@ -0,0 +1,25 @@
+include ../common.mk
+ssl_dir = ../../../ext/libressl
+CFLAGS += -I$(ssl_dir)/include
+MAKEFLAGS += -I$(pwd)/..
+
+include $(ssl_dir)/ssl_obj.mk
+obj = crypto.o
+obj_ssl = $(addprefix $(ssl_dir)/,$(obj_dep))
+subdirs = $(ssl_dir)
+
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+all: $(obj)
+ for i in $(subdirs); do \
+ (cd $$i && $(MAKE)) || exit; \
+ done
+ $(AR) rcs libecpcr.a $(obj) $(obj_ssl)
+
+clean:
+ for i in $(subdirs); do \
+ (cd $$i && $(MAKE) clean) || exit; \
+ done
+ rm -f *.o *.a