mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
21 lines
407 B
Makefile
21 lines
407 B
Makefile
# Common makefile -- loads make rules for each platform
|
|
|
|
BUILDDIR := build
|
|
|
|
.PHONY: all
|
|
|
|
all: setup
|
|
cd ${BUILDDIR} && $(MAKE) -j$(shell getconf _NPROCESSORS_ONLN)
|
|
|
|
setup:
|
|
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. -DCMAKE_BUILD_TYPE=Release
|
|
|
|
debug:
|
|
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. -DCMAKE_BUILD_TYPE=Debug && $(MAKE)
|
|
|
|
clean:
|
|
rm -rf ${BUILDDIR}
|
|
|
|
distclean:
|
|
rm -rf ${BUILDDIR}
|