radare2/global.mk
pancake 46e29afb98 Initial working web ui: r2 -c =H /bin/ls
Autodetect osx, win, linux and android browsers
Default port is 9090
Add support for local networking in RSocket
Add r_str_unescape() helper function
Fix htmlgraph.sh script.
Added wwwroot in shlr/www
Swap eval/cmd load order in r2
Add r_core_cmd_str_pipe()
Use RCons in 'fs'
2012-09-06 03:12:54 +02:00

53 lines
773 B
Makefile

ifeq ($(_INCLUDE_GLOBAL_MK_),)
_INCLUDE_GLOBAL_MK_=1
RELEASE=1
DESTDIR=
TOP:=$(dir $(lastword $(MAKEFILE_LIST)))
LTOP:=$(TOP)/libr
ifeq ($(MAKEFLAGS),s)
SILENT=1
else
SILENT=
endif
.c:
ifneq ($(SILENT),)
@echo LD $<
endif
$(CC) $(LDFLAGS) -c $(CFLAGS) -o $@ $<
.c.o:
ifneq ($(SILENT),)
@echo CC $<
endif
$(CC) -c $(CFLAGS) -o $@ $<
COMPILER?=gcc
#COMPILER=maemo
#COMPILER=mingw32-gcc
#tcc
# verbose error messages everywhere
STATIC_DEBUG=0
# getenv("LIBR_RTDEBUG");
RUNTIME_DEBUG?=1
ifeq (${RELEASE},1)
PREFIX=/usr/local
else
PREFIX=${PWD}/prefix
VERSION=`date '+%Y%m%d'`
endif
PFX=${DESTDIR}${PREFIX}
MDR=${DESTDIR}${MANDIR}
LIBDIR=${PREFIX}/lib
WWWROOT=${LIBDIR}/radare2/${VERSION}/www
-include $(TOP)/config-user.mk
-include $(TOP)/mk/${COMPILER}.mk
endif