-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
global.mk
45 lines (36 loc) · 725 Bytes
/
global.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
ifeq ($(_INCLUDE_GLOBAL_MK_),)
_INCLUDE_GLOBAL_MK_=1
DESTDIR=
COMPILER?=gcc
TOP:=$(dir $(lastword $(MAKEFILE_LIST)))
LTOP:=$(TOP)/libr
STOP:=$(TOP)/shlr
BTOP:=$(TOP)/binr
ifeq ($(MAKEFLAGS),s)
SILENT=1
else
SILENT=
endif
ifndef USE_GIT_URLS
GIT_PREFIX=https://
else
GIT_PREFIX=git:https://
endif
# verbose error messages everywhere
STATIC_DEBUG=0
rmdblslash=$(subst //,/,$(subst //,/,$(subst /$$,,$1)))
.c:
ifneq ($(SILENT),)
@echo LD $<
endif
$(CC) $(LDFLAGS) -c $(CFLAGS) -o $@ $<
.c.o:
ifneq ($(SILENT),)
@echo "CC $(shell basename $<)"
endif
$(CC) -c $(CFLAGS) -o $@ $<
-include $(TOP)/config-user.mk
-include $(TOP)/mk/platform.mk
-include $(TOP)/mk/${COMPILER}.mk
WWWROOT=${DATADIR}/radare2/${VERSION}/www
endif