radare2/global.mk

49 lines
741 B
Makefile
Raw Normal View History

ifeq ($(_INCLUDE_GLOBAL_MK_),)
_INCLUDE_GLOBAL_MK_=1
2009-04-26 03:43:47 +08:00
RELEASE=1
DESTDIR=
COMPILER?=gcc
2012-08-14 19:14:54 +08:00
TOP:=$(dir $(lastword $(MAKEFILE_LIST)))
LTOP:=$(TOP)/libr
2013-06-27 09:07:59 +08:00
STOP:=$(TOP)/shlr
BTOP:=$(TOP)/binr
2012-08-14 19:14:54 +08:00
ifeq ($(MAKEFLAGS),s)
SILENT=1
else
SILENT=
endif
# verbose error messages everywhere
STATIC_DEBUG=0
ifeq (${RELEASE},1)
PREFIX=/usr/local
else
PREFIX=${PWD}/prefix
VERSION=`date '+%Y%m%d'`
endif
PFX=${DESTDIR}${PREFIX}
2011-07-03 19:06:16 +08:00
MDR=${DESTDIR}${MANDIR}
LIBDIR=${PREFIX}/lib
WWWROOT=${DATADIR}/radare2/${VERSION}/www
.c:
ifneq ($(SILENT),)
@echo LD $<
endif
$(CC) $(LDFLAGS) -c $(CFLAGS) -o $@ $<
.c.o:
ifneq ($(SILENT),)
2012-10-04 07:20:00 +08:00
@echo CC $(shell basename $<)
endif
$(CC) -c $(CFLAGS) -o $@ $<
2012-08-14 19:14:54 +08:00
-include $(TOP)/config-user.mk
-include $(TOP)/mk/${COMPILER}.mk
endif