diff options
author | Uros Majstorovic <majstor@majstor.org> | 2018-01-17 18:42:47 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2018-01-17 18:42:47 +0100 |
commit | 1425f72c38fe23a9d3fcda583a7da1e7315acfc3 (patch) | |
tree | 2731c1f5b9e0c76e0a0775f6eddf81fd90b0817d /code/ecp/Makefile | |
parent | 97a7e6617f8ad06b7bff495603200b853766ecc8 (diff) |
build system improved
Diffstat (limited to 'code/ecp/Makefile')
-rw-r--r-- | code/ecp/Makefile | 15 |
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; \ |