summaryrefslogtreecommitdiff
path: root/code/ecp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'code/ecp/Makefile')
-rw-r--r--code/ecp/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/code/ecp/Makefile b/code/ecp/Makefile
index 1b16f39..a62e6f0 100644
--- a/code/ecp/Makefile
+++ b/code/ecp/Makefile
@@ -2,7 +2,7 @@ include Makefile.platform
CFLAGS=$(CFLAGS_PL) $(PIC) -I.
obj = core.o timer.o $(obj_rbuf)
-subdirs = crypto $(vconn) $(htable) $(platform)
+subdirs = crypto platform $(htable) $(vconn)
%.o: %.c
$(CC) $(CFLAGS) -c $<
@@ -16,6 +16,19 @@ all: $(obj)
(cd $$i && $(MAKE) && cd ..) || exit; \
done
+install: all
+ mkdir -p build-$(platform)/
+ install libecpcore.a build-$(platform)/
+ install crypto/libecpcr.a build-$(platform)/
+ install platform/libecptm.a build-$(platform)/
+ install platform/libecptr.a build-$(platform)/
+ if [ -f htable/libecpht.a ]; then \
+ install htable/libecpht.a build-$(platform)/; \
+ fi
+ if [ -f vconn/libecpvconn.a ]; then \
+ install vconn/libecpvconn.a build-$(platform)/; \
+ fi
+
clean:
for i in $(subdirs); do \
(cd $$i && $(MAKE) clean && cd ..) || exit; \