File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -10,41 +10,41 @@ VERSION = 0.7.0
10
10
SOMAJOR = 3
11
11
SOMINOR = 0
12
12
DESTDIR =
13
- prefix = /usr /local
14
- bindir = $(prefix )/bin
15
- libdir = $(prefix )/lib
16
- includedir = $(prefix )/include
13
+ prefix ? = /usr /local
14
+ bindir ? = $(prefix )/bin
15
+ libdir ? = $(prefix )/lib
16
+ includedir ? = $(prefix )/include
17
17
18
18
ifeq ($(OS ), FreeBSD )
19
- pkgconfigdir = $(prefix )/libdata /pkgconfig
19
+ pkgconfigdir ? = $(prefix )/libdata /pkgconfig
20
20
else
21
- pkgconfigdir = $(libdir )/pkgconfig
21
+ pkgconfigdir ? = $(libdir )/pkgconfig
22
22
endif
23
23
24
- USEGCC = 1
25
- USECLANG = 0
24
+ USEGCC ? = 1
25
+ USECLANG ? = 0
26
26
27
27
ifneq (, $(findstring $(OS ), Darwin FreeBSD OpenBSD ))
28
- USEGCC = 0
29
- USECLANG = 1
28
+ USEGCC ? = 0
29
+ USECLANG ? = 1
30
30
endif
31
31
32
- AR = $(TOOLPREFIX )ar
32
+ AR ? = $(TOOLPREFIX )ar
33
33
34
34
ifeq ($(ARCH ), wasm32 )
35
- CC = clang -8
36
- USEGCC = 0
35
+ CC ? = clang -8
36
+ USEGCC ? = 0
37
37
CFLAGS_add += -fno -builtin -fno -strict -aliasing
38
38
endif
39
39
40
40
ifeq ($(USECLANG ), 1 )
41
- USEGCC = 0
42
- CC = clang
41
+ USEGCC ? = 0
42
+ CC ? = clang
43
43
CFLAGS_add += -fno -builtin -fno -strict -aliasing
44
44
endif
45
45
46
46
ifeq ($(USEGCC ), 1 )
47
- CC = $(TOOLPREFIX )gcc
47
+ CC ? = $(TOOLPREFIX )gcc
48
48
CFLAGS_add += -fno -gnu89 -inline -fno -builtin
49
49
endif
50
50
You can’t perform that action at this time.
0 commit comments