Blame view

RIOT/pkg/oonf_api/Makefile 532 Bytes
fb11e647   vrobic   reseau statique a...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  PKG_NAME=oonf_api
  PKG_URL=https://github.com/OLSR/OONF.git
  PKG_VERSION=v0.3.0
  
  ifneq ($(RIOTBASE),)
  INCLUDES += -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/sys/net/include \
  			-I$(RIOTBASE)/sys/posix/include
  endif
  
  MODULE:=$(PKG_NAME)
  
  .PHONY: all
  
  all: git-download
  	"$(MAKE)" -C $(PKG_BUILDDIR)
  	"$(MAKE)" $(BINDIR)/$(MODULE).a
  
  $(BINDIR)/$(MODULE).a: $(BINDIR)/oonf_*.a
  	mkdir -p $(BINDIR)/$(MODULE); cd $(BINDIR)/$(MODULE); for var in $?; do ar -x $$var; done; ar -r -c -s $(BINDIR)/$(MODULE).a *.o
  
  include $(RIOTBASE)/pkg/pkg.mk