summaryrefslogtreecommitdiff
path: root/ecp/src/Makefile
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-01-31 07:53:13 +0100
committerUros Majstorovic <majstor@majstor.org>2022-01-31 07:53:13 +0100
commit0eaf514b1f97cb1587815104477e43c50a3eebe6 (patch)
treee139a31e8e6360adbe93c9322bec7f6edabfdd19 /ecp/src/Makefile
parentdd19d6f5c7e0b335301a3f3e3d21bffb8c83e558 (diff)
fixed build sys
Diffstat (limited to 'ecp/src/Makefile')
-rw-r--r--ecp/src/Makefile15
1 files changed, 8 insertions, 7 deletions
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