summaryrefslogtreecommitdiff
path: root/ecp/src/crypto/Makefile
blob: b1d299631408bf29b76fc14e05fec1322a6808ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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