aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a7df5635d1e620fa34c0338b06668f8cb42f8078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Targets for building dependencies e.g. mingw-gcc/g++, STL, etc.
#

DPP_ROOT = .

ifndef JOBS
JOBS := 4
endif

export Q
export DPP_ROOT
export JOBS
export USE_MINGW64_TARBALL
export LOCAL_MINGW64_CC
export LOCAL_MINGW64_CXX
export LOCAL_MINGW64_RC
export SIGNTOOL
export SIGNTOOL_PREFIX

examples:
	$(MAKE) -C examples DPP_ROOT=$(realpath $(DPP_ROOT)) all
	$(MAKE) -C examples DPP_ROOT=$(realpath $(DPP_ROOT)) BUILD_NATIVE=1 all

examples-clean:
	$(MAKE) -C examples DPP_ROOT=$(realpath $(DPP_ROOT)) clean
	$(MAKE) -C examples DPP_ROOT=$(realpath $(DPP_ROOT)) BUILD_NATIVE=1 clean

examples-install:
	$(MAKE) -C examples DPP_ROOT=$(realpath $(DPP_ROOT)) install
	$(MAKE) -C examples DPP_ROOT=$(realpath $(DPP_ROOT)) BUILD_NATIVE=1 install

deps:
	$(MAKE) -C $(DPP_ROOT) -f Makefile.deps \
		WERROR=1
	$(MAKE) -C $(DPP_ROOT) -f Makefile.deps \
		BUILD_NATIVE=1 WERROR=1

deps-distclean:
	$(MAKE) -C $(DPP_ROOT) -f Makefile.deps distclean
	$(MAKE) -C $(DPP_ROOT) -f Makefile.deps BUILD_NATIVE=1 distclean

deps-clean:
	$(MAKE) -C $(DPP_ROOT) -f Makefile.deps clean
	$(MAKE) -C $(DPP_ROOT) BUILD_NATIVE=1 -f Makefile.deps clean

help:
	$(MAKE) -C $(DPP_ROOT) -f Makefile.deps help

.PHONY: examples deps deps-distclean deps-clean help
.DEFAULT_GOAL := deps