From: kang Date: Tue, 10 Oct 2017 07:21:41 +0000 (+0900) Subject: protocol:libcoap Fix build error X-Git-Tag: 1.1_Public_Release~70^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea1f475cc7db480b055ff71e51b17da839e882f7;p=rtos%2Ftinyara.git protocol:libcoap Fix build error mbedtls and libcoap cause a conflict because there are object files which are same name To fix it I added prefix at object files --- diff --git a/external/libcoap/Makefile b/external/libcoap/Makefile index ae746d5..53bacef 100644 --- a/external/libcoap/Makefile +++ b/external/libcoap/Makefile @@ -73,7 +73,7 @@ CSRCS += subscribe.c CSRCS += uri.c AOBJS = $(ASRCS:.S=$(OBJEXT)) -COBJS = $(CSRCS:.c=$(OBJEXT)) +COBJS = $(patsubst %.c, libcoap_%$(OBJEXT), $(CSRCS)) SRCS = $(ASRCS) $(CSRCS) OBJS = $(AOBJS) $(COBJS) @@ -100,7 +100,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS): libcoap_%$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS)