mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
Dragging adam into CMake kicking and screaming :)
This commit is contained in:
parent
206c85222c
commit
cb4ebfdbd2
7 changed files with 34 additions and 23 deletions
29
Makefile
29
Makefile
|
@ -1,28 +1,11 @@
|
||||||
# Common makefile -- loads make rules for each platform
|
# Common makefile -- loads make rules for each platform
|
||||||
|
|
||||||
OSTYPE=$(shell uname -s)
|
BUILDDIR := build
|
||||||
|
|
||||||
ifeq ($(OSTYPE),Darwin)
|
.PHONY: all
|
||||||
include make-mac.mk
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(OSTYPE),Linux)
|
all:
|
||||||
include make-linux.mk
|
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. && $(MAKE)
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(OSTYPE),FreeBSD)
|
clean:
|
||||||
CC=clang
|
rm -rf ${BUILDDIR}
|
||||||
CXX=clang++
|
|
||||||
ZT_BUILD_PLATFORM=7
|
|
||||||
include make-bsd.mk
|
|
||||||
endif
|
|
||||||
ifeq ($(OSTYPE),OpenBSD)
|
|
||||||
CC=egcc
|
|
||||||
CXX=eg++
|
|
||||||
ZT_BUILD_PLATFORM=9
|
|
||||||
include make-bsd.mk
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(OSTYPE),NetBSD)
|
|
||||||
include make-netbsd.mk
|
|
||||||
endif
|
|
||||||
|
|
28
attic/Makefile
Normal file
28
attic/Makefile
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# Common makefile -- loads make rules for each platform
|
||||||
|
|
||||||
|
OSTYPE=$(shell uname -s)
|
||||||
|
|
||||||
|
ifeq ($(OSTYPE),Darwin)
|
||||||
|
include make-mac.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(OSTYPE),Linux)
|
||||||
|
include make-linux.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(OSTYPE),FreeBSD)
|
||||||
|
CC=clang
|
||||||
|
CXX=clang++
|
||||||
|
ZT_BUILD_PLATFORM=7
|
||||||
|
include make-bsd.mk
|
||||||
|
endif
|
||||||
|
ifeq ($(OSTYPE),OpenBSD)
|
||||||
|
CC=egcc
|
||||||
|
CXX=eg++
|
||||||
|
ZT_BUILD_PLATFORM=9
|
||||||
|
include make-bsd.mk
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(OSTYPE),NetBSD)
|
||||||
|
include make-netbsd.mk
|
||||||
|
endif
|
Loading…
Add table
Reference in a new issue