From 0eaf514b1f97cb1587815104477e43c50a3eebe6 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Mon, 31 Jan 2022 07:53:13 +0100 Subject: fixed build sys --- ecp/src/Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'ecp/src/Makefile') diff --git a/ecp/src/Makefile b/ecp/src/Makefile index 502f582..120fcbc 100644 --- a/ecp/src/Makefile +++ b/ecp/src/Makefile @@ -1,9 +1,10 @@ -CFLAGS += $(PIC) -I. +include platform.mk +CFLAGS += -I. obj = core.o timer.o dir.o dir_srv.o -subdirs = crypto platform +subdirs = crypto ../platform/$(platform) -include Makefile.platform +include ../platform/$(platform)_obj.mk %.o: %.c $(CC) $(CFLAGS) -c $< @@ -12,17 +13,17 @@ include Makefile.platform $(CC) $(CFLAGS) -c $< all: $(obj) - $(AR) rcs libecpcore.a $(obj) + $(AR) rcs libecp.a $(obj) for i in $(subdirs); do \ (cd $$i && $(MAKE)) || exit; \ done install: all mkdir -p build-$(platform)/ - install libecpcore.a build-$(platform)/ + install libecp.a build-$(platform)/ install crypto/libecpcr.a build-$(platform)/ - install platform/libecptm.a build-$(platform)/ - install platform/libecptr.a build-$(platform)/ + install ../platform/$(platform)/libecptm.a build-$(platform)/ + install ../platform/$(platform)/libecptr.a build-$(platform)/ if [ -f htable/libecpht.a ]; then \ install htable/libecpht.a build-$(platform)/; \ fi -- cgit v1.2.3