2012-08-14 13:44:17 +00:00
|
|
|
ifeq ($(_INCLUDE_GLOBAL_MK_),)
|
|
|
|
_INCLUDE_GLOBAL_MK_=1
|
2009-03-10 21:58:00 +00:00
|
|
|
DESTDIR=
|
2012-10-03 12:31:35 +00:00
|
|
|
COMPILER?=gcc
|
2009-03-10 21:58:00 +00:00
|
|
|
|
2012-08-14 11:14:54 +00:00
|
|
|
TOP:=$(dir $(lastword $(MAKEFILE_LIST)))
|
|
|
|
LTOP:=$(TOP)/libr
|
2013-06-27 01:07:59 +00:00
|
|
|
STOP:=$(TOP)/shlr
|
2012-10-03 12:31:35 +00:00
|
|
|
BTOP:=$(TOP)/binr
|
2012-08-14 11:14:54 +00:00
|
|
|
|
2012-08-14 13:44:17 +00:00
|
|
|
ifeq ($(MAKEFLAGS),s)
|
|
|
|
SILENT=1
|
|
|
|
else
|
|
|
|
SILENT=
|
|
|
|
endif
|
|
|
|
|
2015-06-22 15:34:03 +00:00
|
|
|
ifndef USE_GIT_URLS
|
2015-08-23 17:34:55 +00:00
|
|
|
GIT_PREFIX=https://
|
2015-06-22 15:34:03 +00:00
|
|
|
else
|
|
|
|
GIT_PREFIX=git://
|
|
|
|
endif
|
|
|
|
|
2009-03-31 00:50:02 +00:00
|
|
|
# verbose error messages everywhere
|
2009-03-31 10:55:26 +00:00
|
|
|
STATIC_DEBUG=0
|
2009-03-31 00:50:02 +00:00
|
|
|
|
2014-06-26 18:09:59 +00:00
|
|
|
rmdblslash=$(subst //,/,$(subst //,/,$(subst /$$,,$1)))
|
|
|
|
|
2012-10-03 12:31:35 +00:00
|
|
|
.c:
|
|
|
|
ifneq ($(SILENT),)
|
|
|
|
@echo LD $<
|
|
|
|
endif
|
|
|
|
$(CC) $(LDFLAGS) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
ifneq ($(SILENT),)
|
2015-09-14 17:21:57 +00:00
|
|
|
@echo "CC $(shell basename $<)"
|
2012-10-03 12:31:35 +00:00
|
|
|
endif
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2012-08-14 11:14:54 +00:00
|
|
|
-include $(TOP)/config-user.mk
|
2015-10-09 15:58:03 +00:00
|
|
|
-include $(TOP)/mk/platform.mk
|
2012-08-14 11:14:54 +00:00
|
|
|
-include $(TOP)/mk/${COMPILER}.mk
|
2018-10-14 22:54:03 +00:00
|
|
|
|
|
|
|
WWWROOT=${DATADIR}/radare2/${VERSION}/www
|
2012-08-14 13:44:17 +00:00
|
|
|
endif
|