2013-11-18 11:21:50 +01:00
|
|
|
PKG_NAME=libcoap
|
|
|
|
PKG_URL=http://git.code.sf.net/p/libcoap/code
|
|
|
|
PKG_VERSION=89acaa6775ca3a4aedea510557e6b9c0c01fa5db
|
|
|
|
|
|
|
|
ifneq ($(RIOTBOARD),)
|
|
|
|
include $(RIOTBOARD)/$(BOARD)/Makefile.include
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(RIOTBASE),)
|
|
|
|
INCLUDES += -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/sys/net/include \
|
|
|
|
-I$(RIOTBASE)/sys/posix/include -I$(RIOTBASE)/sys/posix/pnet/include
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: all clean patch reset
|
|
|
|
|
2014-02-11 18:15:43 +01:00
|
|
|
all: patch
|
2013-11-18 11:21:50 +01:00
|
|
|
make -C $(CURDIR)/$(PKG_NAME)
|
|
|
|
|
|
|
|
patch: $(CURDIR)/$(PKG_NAME)/Makefile
|
2014-02-11 18:15:43 +01:00
|
|
|
|
2013-11-18 11:21:50 +01:00
|
|
|
$(CURDIR)/$(PKG_NAME)/Makefile: $(CURDIR)/$(PKG_NAME)
|
|
|
|
cd $< && git apply ../patch.txt
|
|
|
|
|
2014-01-28 18:52:55 +01:00
|
|
|
$(CURDIR)/$(PKG_NAME)/:
|
2013-11-18 11:21:50 +01:00
|
|
|
git clone $(PKG_URL) $@ && \
|
|
|
|
cd $@ && git checkout $(PKG_VERSION)
|
|
|
|
|
|
|
|
clean::
|
|
|
|
cd $(CURDIR)/$(PKG_NAME) && \
|
|
|
|
git clean -x -f && \
|
|
|
|
git reset --hard $(PKG_VERSION) || true
|
|
|
|
|
|
|
|
distclean::
|
|
|
|
rm -rf $(CURDIR)/$(PKG_NAME)
|
2014-01-28 21:12:55 +01:00
|
|
|
|
|
|
|
Makefile.include:
|
|
|
|
@true
|