ZeroTierOne/Makefile

19 lines
339 B
Makefile

# Common makefile -- loads make rules for each platform
BUILDDIR := build
CMAKE_OPTS := -DCMAKE_BUILD_TYPE=Release
.PHONY: all
all: setup
cd ${BUILDDIR} && $(MAKE) -j$(shell getconf _NPROCESSORS_ONLN)
setup:
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. ${CMAKE_OPTS}
clean:
rm -rf ${BUILDDIR}
distclean:
rm -rf ${BUILDDIR}