Dragging adam into CMake kicking and screaming :)

This commit is contained in:
Grant Limberg 2019-08-16 10:45:14 -07:00
parent 206c85222c
commit cb4ebfdbd2
7 changed files with 34 additions and 23 deletions

View File

@ -1,28 +1,11 @@
# Common makefile -- loads make rules for each platform
OSTYPE=$(shell uname -s)
BUILDDIR := build
ifeq ($(OSTYPE),Darwin)
include make-mac.mk
endif
.PHONY: all
ifeq ($(OSTYPE),Linux)
include make-linux.mk
endif
all:
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. && $(MAKE)
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
clean:
rm -rf ${BUILDDIR}

28
attic/Makefile Normal file
View 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