-
Notifications
You must be signed in to change notification settings - Fork 0
/
sanity.mk
68 lines (53 loc) · 1.2 KB
/
sanity.mk
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
ifndef GPSEE_SRC_DIR
$(error GPSEE_SRC_DIR unspecified)
endif
ifneq (X,X$(filter $(MAKECMDGOALS),install build all))
ifndef BUILD
$(error BUILD unspecified)
endif
ifndef STREAM
$(error STREAM unspecified)
endif
ifndef TR
$(error TR unspecified)
endif
ifndef SED
$(error SED unspecified)
endif
ifndef EGREP
$(error EGREP unspecified)
endif
ifndef SPIDERMONKEY_SRC
$(error SPIDERMONKEY_SRC unspecified - configuration invalid (target: $(MAKECMDGOALS)))
endif
ifndef SPIDERMONKEY_BUILD
$(error SPIDERMONKEY_BUILD unspecified - configuration invalid (target: $(MAKECMDGOALS)))
endif
ifneq ($(BUILD),DEBUG)
ifneq ($(BUILD),PROFILE)
ifneq ($(BUILD),DRELEASE)
ifneq ($(BUILD),RELEASE)
$(error invalid BUILD specified in local_config.mk)
endif
endif
endif
endif
ifeq (X$(JSAPI_INCLUDE_DIR),X)
$(error JSAPI_INCLUDE_DIR is not specified; make install in $(abspath ./spidermonkey)/ to fix)
endif
ifndef LIB_EXT
$(error LIB_EXT is not specified)
endif
ifndef SOLIB_EXT
$(error SOLIB_EXT is not specified)
endif
ifndef AR_RU
$(error AR_RU is not specified)
endif
ifndef LINK_SOLIB
$(error LINK_SOLIB is not specified)
endif
ifndef RANLIB
$(error RANLIB is not specified)
endif
endif #done building-target-conditional part