diff options
Diffstat (limited to 'ecp/src')
-rw-r--r-- | ecp/src/Makefile | 15 | ||||
-rw-r--r-- | ecp/src/vconn/Makefile | 4 |
2 files changed, 10 insertions, 9 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 diff --git a/ecp/src/vconn/Makefile b/ecp/src/vconn/Makefile index 9d11406..459d16b 100644 --- a/ecp/src/vconn/Makefile +++ b/ecp/src/vconn/Makefile @@ -1,5 +1,5 @@ -include ../Makefile.platform -CFLAGS += $(PIC) -I.. +include ../platform.mk +CFLAGS += -I.. obj = vconn.o |