OLD | NEW |
1 ARCH := x64 | 1 ARCH := x64 |
2 | 2 |
3 .PHONY: test | 3 MODES = release debug |
| 4 ANDROID_ARCHES = android_ia32 android_arm android_mipsel |
| 5 ANDROID_BUILDS = $(foreach mode,$(MODES), \ |
| 6 $(addsuffix .$(mode),$(ANDROID_ARCHES))) |
| 7 |
| 8 .PHONY: all test clean android $(ANDROID_ARCHES) $(ANDROID_BUILDS) |
4 | 9 |
5 all: | 10 all: |
6 third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output=
build -Dtarget_arch=$(ARCH) libadblockplus.gyp | 11 third_party/gyp/gyp --depth=. -f make -I common.gypi --generator-output=
build -Dtarget_arch=$(ARCH) libadblockplus.gyp |
7 $(MAKE) -C build | 12 $(MAKE) -C build |
8 | 13 |
9 test: all | 14 test: all |
10 build/out/Debug/tests | 15 build/out/Debug/tests |
11 | 16 |
12 clean: | 17 clean: |
13 $(RM) -r build | 18 $(RM) -r build |
| 19 |
| 20 android: android_arm.release |
| 21 |
| 22 $(ANDROID_ARCHES): $(addprefix $@.,$(MODES)) |
| 23 |
| 24 $(ANDROID_BUILDS): Makefile.android |
| 25 @$(MAKE) -f Makefile.android $@ \ |
| 26 ARCH="$(basename $@)" \ |
| 27 MODE="$(subst .,,$(suffix $@))" |
| 28 |
OLD | NEW |