summaryrefslogtreecommitdiff
path: root/Build/tooldef.mk
blob: 9df2a39fa2900fea0682de47f3340fe80ec6df60 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Add inputs and outputs from these tool invocations to the build variables

ifeq ($(strip $(BUILD_CONFIG)),)
BUILD_CONFIG = Debug
endif

ifneq ($(strip $(PROJROOT)),)
PROJPATH := $(PROJROOT)
endif

ifeq ($(strip $(OUTPUT_DIR)),)
OUTPUT_DIR := $(PROJPATH)/$(BUILD_CONFIG)
endif

ifneq ($(strip $(SHELL_BIN)),)
SHELL = $(SHELL_BIN)
else
SHELL = sh
endif

ifneq ($(strip $(MKDIR_BIN)),)
MKDIR = $(MKDIR_BIN)
MKDIR_OP = -p
else
MKDIR = mkdir
MKDIR_OP = -p
endif

ifneq ($(strip $(UNAME_BIN)),)
UNAME = $(UNAME_BIN)
else
UNAME = uname
endif

ifneq ($(strip $(M4_BIN)),)
M4 = $(M4_BIN)
else
M4 = m4
endif

ifneq ($(strip $(TR_BIN)),)
TR = $(TR_BIN)
else
TR = tr
endif

ifneq ($(strip $(FIND_BIN)),)
FIND = $(FIND_BIN)
else
FIND = find
endif

ifneq ($(strip $(SED_BIN)),)
SED = $(SED_BIN)
else
SED = sed
endif

ifneq ($(strip $(GREP_BIN)),)
GREP = $(GREP_BIN)
else
GREP = grep
endif

ifneq ($(strip $(EDJE_CC_BIN)),)
EDJE_CC = $(EDJE_CC_BIN)
else
EDJE_CC = edje_cc
endif

ifneq ($(strip $(MSGFMT_BIN)),)
MSGFMT = $(MSGFMT_BIN)
else
MSGFMT = msgfmt
endif