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