summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-26 18:24:36 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:08 +0100
commit3d51e116a84ee168975bcee8377e9156f77e2731 (patch)
tree5a9799423e496c8c77f3e2edd6ae334dbf823da4 /Makefile
parent46553ff00c15414f4087ba9195fed7eba340fc13 (diff)
downloadqtlocation-mapboxgl-3d51e116a84ee168975bcee8377e9156f77e2731.tar.gz
use fake linker for merging the standalone static library
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 9 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 9f026b1c50..ee4f587ee7 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ endif
PLATFORM ?= linux
.PHONY: all
-all: mbgl-core mbgl-platform mbgl-headless
+all: mbgl
config.gypi: configure
./configure
@@ -20,27 +20,23 @@ config-ios.gypi: configure
#### Library builds ############################################################
-.PHONY: mbgl-core
-mbgl-core: build/mbgl/Makefile
- $(MAKE) -C build/mbgl BUILDTYPE=$(BUILDTYPE) V=$(V) mbgl-core
-
-.PHONY: mbgl-platform
-mbgl-platform: build/mbgl/Makefile
- $(MAKE) -C build/mbgl BUILDTYPE=$(BUILDTYPE) V=$(V) mbgl-$(PLATFORM)
-
-.PHONY: mbgl-headless
-mbgl-headless: build/mbgl/Makefile
- $(MAKE) -C build/mbgl BUILDTYPE=$(BUILDTYPE) V=$(V) mbgl-headless
+.PHONY: mbgl
+mbgl: build/mbgl/Makefile
+ $(MAKE) -C build/mbgl BUILDTYPE=$(BUILDTYPE) V=$(V) mbgl-core mbgl-$(PLATFORM) mbgl-headless
.PHONY: install
install: build/mbgl/Makefile
$(MAKE) -C build/mbgl BUILDTYPE=$(BUILDTYPE) V=$(V) install
+.PHONY: standalone
+standalone: build/mbgl/Makefile
+ LINK=`pwd`/gyp/link.py $(MAKE) -C build/mbgl BUILDTYPE=$(BUILDTYPE) V=$(V) standalone
+
#### Build scripts #############################################################
.PHONY: build/mbgl/Makefile
build/mbgl/Makefile: mbgl.gyp config.gypi
- deps/run_gyp mbgl.gyp -Iconfig.gypi -Dplatform=$(PLATFORM) -Dinstall_prefix=$(PREFIX) --depth=. -Goutput_dir=.. --generator-output=./build/mbgl -f make
+ deps/run_gyp mbgl.gyp -Iconfig.gypi -Dplatform=$(PLATFORM) --depth=. -Goutput_dir=.. --generator-output=./build/mbgl -f make
.PHONY: build/test/Makefile
build/test/Makefile: test/test.gyp config.gypi