Blame view

RIOT/pkg/relic/Makefile 1.1 KB
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
22
23
24
25
26
27
28
29
30
  PKG_NAME=relic
  PKG_URL=http://github.com/relic-toolkit/relic.git
  PKG_VERSION=cdcfaeef101d18c3231c3b46359c519dd72682e8
  
  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
  
  all: $(PKG_BUILDDIR)/Makefile
  	"$(MAKE)" -C $(PKG_BUILDDIR) && \
  	cp $(PKG_BUILDDIR)/lib/librelic_s.a $(BINDIR)/$(PKG_NAME).a
  
  $(PKG_BUILDDIR)/comp-options.cmake: fix_source
  	cd "$(PKG_BUILDDIR)" && perl $(PKG_DIR)/generate-cmake-xcompile.perl > comp-options.cmake
  
  $(PKG_BUILDDIR)/Makefile: $(PKG_BUILDDIR)/comp-options.cmake
  	cd "$(PKG_BUILDDIR)" && COMP="$(filter-out -Werror=old-style-definition -Werror=strict-prototypes, $(CFLAGS) ) " cmake -DCMAKE_TOOLCHAIN_FILE=comp-options.cmake -DCHECK=off -DTESTS=0 -DBENCH=0 -DSHLIB=off -Wno-dev $(RELIC_CONFIG_FLAGS) .
  
  CFLAGS += -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function
  
  fix_source: git-download
  	./fix-util_print_wo_args.sh $(PKG_BUILDDIR)
  	./fix-old-style-definitions.sh $(PKG_BUILDDIR)
  
  clean::
  	@rm -rf $(BINDIR)/$(PKG_NAME).a
  include $(RIOTBASE)/pkg/pkg.mk