• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/urngd/Makefile

  1 CC ?= gcc
  2 CXX ?= g++
  3 CMAKE ?= cmake
  4 CMAKE_BUILD_TYPE ?= Release
  5 
  6 define build_cross
  7         -rm -fr build-$(2)
  8         mkdir build-$(2)
  9         cd build-$(2) && \
 10                 $(CMAKE) \
 11                         -D CMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE) \
 12                         -D CMAKE_TOOLCHAIN_FILE=cmake/$(1)-$(2).cmake \
 13                         ..
 14         make -j$$((nproc+1)) VERBOSE=$(VERBOSE) -C build-$(2)
 15 endef
 16 
 17 .PHONY: imx6 ath79
 18 
 19 all:
 20         -rm -fr build
 21         mkdir build
 22         cd build && CC=$(CC) CXX=$(CXX) $(CMAKE) \
 23                 -D CMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE) \
 24                 ..
 25         make -j$$((nproc+1)) VERBOSE=$(VERBOSE) -C build
 26 
 27 imx6:
 28         $(call build_cross,openwrt-toolchain,$@)
 29 
 30 ath79:
 31         $(call build_cross,openwrt-toolchain,$@)
 32 
 33 clean:
 34         @-rm -fr build*
 35 
 36 -include local.mk

This page was automatically generated by LXR 0.3.1.  •  OpenWrt