Files
MapLibreParticleLab/Makefile
Konstantin Käfer 66ca191ab2 add first render test
2015-02-04 20:09:02 +01:00

48 lines
819 B
Makefile

BUILDTYPE ?= Release
MBGL ?= vendor/mbgl
DEBUG_FLAG =
ifeq ($(BUILDTYPE), Debug)
DEBUG_FLAG = -d
endif
ifeq ($(shell uname -s), Darwin)
HOST ?= osx
endif
HOST ?= linux
# Explicitly disable the default FileSource implementation
ASSET = none
HTTP = none
CACHE = none
include $(MBGL)/config/defaults.mk
global: build
.PHONY: build
build: build/Makefile
@node-gyp build $(DEBUG_FLAG) -- -j8
.PHONY: build/Makefile
build/Makefile: $(MBGL)/config/$(HOST).gypi
@node-gyp configure -- \
-Dmbgl=$(MBGL) \
-Dhost=$(HOST) \
-I$(MBGL)/config/$(HOST).gypi \
$(LIBS_$(HOST)) \
-Duv_static_libs= -Duv_ldflags= \
-Goutput_dir=.
$(MBGL)/config/%.gypi: $(MBGL)/configure
make -C $(MBGL) config/$*.gypi
.PHONY: test
test: build
@`npm bin`/mocha -R spec
.PHONY: clean
clean:
rm -rf build
rm $(MBGL)/config.gypi