diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-01-31 22:22:19 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-01-31 22:22:19 +0100 |
commit | 76be7c9a79da62e0a52d932bdfdf56671c82e33d (patch) | |
tree | 6385d50acb932766a11ded22901f1b333eb9856d /ecp/src/Makefile | |
parent | 6594778ab99958c3efb7325e4203bb4e593fc1a6 (diff) |
build fix
Diffstat (limited to 'ecp/src/Makefile')
-rw-r--r-- | ecp/src/Makefile | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/ecp/src/Makefile b/ecp/src/Makefile index 120fcbc..5fed12a 100644 --- a/ecp/src/Makefile +++ b/ecp/src/Makefile @@ -1,10 +1,11 @@ -include platform.mk -CFLAGS += -I. +include common.mk obj = core.o timer.o dir.o dir_srv.o -subdirs = crypto ../platform/$(platform) +subdirs = crypto $(platform_dir) +build_dir = ../build-$(platform) + +include $(platform_dir)/platform_obj.mk -include ../platform/$(platform)_obj.mk %.o: %.c $(CC) $(CFLAGS) -c $< @@ -19,16 +20,16 @@ all: $(obj) done install: all - mkdir -p build-$(platform)/ - install libecp.a build-$(platform)/ - install crypto/libecpcr.a build-$(platform)/ - install ../platform/$(platform)/libecptm.a build-$(platform)/ - install ../platform/$(platform)/libecptr.a build-$(platform)/ + mkdir -p $(build_dir) + install libecp.a $(build_dir) + install crypto/libecpcr.a $(build_dir) + install $(platform_dir)/libecptm.a $(build_dir) + install $(platform_dir)/libecptr.a $(build_dir) if [ -f htable/libecpht.a ]; then \ - install htable/libecpht.a build-$(platform)/; \ + install htable/libecpht.a $(build_dir); \ fi if [ -f vconn/libecpvconn.a ]; then \ - install vconn/libecpvconn.a build-$(platform)/; \ + install vconn/libecpvconn.a $(build_dir); \ fi clean: |