2013-06-04 23:13:05 +00:00
|
|
|
include ../config-user.mk
|
2020-04-02 15:52:03 +00:00
|
|
|
include ../global.mk
|
2015-07-12 23:54:21 +00:00
|
|
|
include ../libr/config.mk
|
2015-10-09 15:58:03 +00:00
|
|
|
include ../mk/platform.mk
|
2015-07-13 09:21:21 +00:00
|
|
|
_INCLUDE_MK_GCC_=
|
|
|
|
include ../mk/${COMPILER}.mk
|
2019-10-08 08:55:31 +00:00
|
|
|
include ../mk/darwin.mk
|
2013-06-04 23:13:05 +00:00
|
|
|
|
2016-01-22 19:53:01 +00:00
|
|
|
# Build against last capstone release or next
|
2019-02-18 18:38:55 +00:00
|
|
|
ifeq ($(shell test -d ../.git && echo 1),1)
|
2016-01-22 19:53:01 +00:00
|
|
|
CS_RELEASE=0
|
2019-02-18 18:38:55 +00:00
|
|
|
else
|
|
|
|
CS_RELEASE=1
|
|
|
|
endif
|
2016-01-22 19:53:01 +00:00
|
|
|
|
2016-09-20 09:19:01 +00:00
|
|
|
CAPSTONE_CFLAGS?=-g
|
|
|
|
# CAPSTONE_MAKEFLAGS?=CAPSTONE_ARCHS="arm aarch64"
|
|
|
|
|
2016-02-03 12:22:05 +00:00
|
|
|
GIT?=git
|
2019-12-30 14:33:09 +00:00
|
|
|
ifeq ($(shell type wget 2> /dev/null && echo 1),1)
|
2019-02-18 18:38:55 +00:00
|
|
|
WGET?=wget -c --no-check-certificate -O
|
|
|
|
else
|
|
|
|
WGET?=curl -o
|
|
|
|
endif
|
2016-01-22 19:53:01 +00:00
|
|
|
|
|
|
|
ifeq ($(CS_RELEASE),1)
|
2020-06-20 04:17:00 +00:00
|
|
|
CS_VER=4.0.2
|
2016-01-22 19:53:01 +00:00
|
|
|
CS_TAR=https://codeload.github.com/aquynh/capstone/tar.gz/$(CS_VER)
|
|
|
|
#CS_TAR=http://capstone-engine.org/download/$(CS_VER)/capstone-$(CS_VER).tgz
|
|
|
|
CS_PATCHES=0
|
|
|
|
else
|
2014-05-14 23:36:04 +00:00
|
|
|
CS_TAR=
|
2019-05-09 10:02:27 +00:00
|
|
|
CS_URL_BASE=github.com/aquynh/capstone
|
|
|
|
CS_URL=$(GIT_PREFIX)$(CS_URL_BASE).git
|
|
|
|
CS_ARCHIVE=https://$(CS_URL_BASE)/archive
|
2020-12-14 14:37:45 +00:00
|
|
|
CS_UPD=20201203
|
2019-11-06 09:33:23 +00:00
|
|
|
# NOTE: when you update CS_TIP or CS_BRA, also update them in shlr/meson.build
|
2021-04-24 20:04:51 +00:00
|
|
|
ifeq ($(USE_CS4),1)
|
2021-05-19 21:05:41 +00:00
|
|
|
CS_TIP=a7cac8352f7397aa73bb2e2dcc1b6cdb2e1b8461
|
2019-04-12 14:13:35 +00:00
|
|
|
CS_BRA=v4
|
2021-04-24 20:04:51 +00:00
|
|
|
else
|
2021-05-13 01:01:28 +00:00
|
|
|
CS_TIP=f278de39c1e8a9fca977b8dfeed99d6d1f8b82bf
|
2021-04-24 20:04:51 +00:00
|
|
|
CS_BRA=next
|
2019-04-12 09:24:08 +00:00
|
|
|
endif
|
2019-05-09 10:02:27 +00:00
|
|
|
ifeq ($(CS_COMMIT_ARCHIVE),1)
|
|
|
|
CS_ARCHIVE_URL=$(CS_ARCHIVE)/$(CS_TIP).zip
|
|
|
|
else
|
|
|
|
CS_ARCHIVE_URL=
|
|
|
|
endif
|
2015-05-12 00:17:26 +00:00
|
|
|
# REVERT THIS COMMIT BECAUSE ITS WRONG
|
2015-08-13 14:55:58 +00:00
|
|
|
CS_REV=
|
2015-08-13 18:20:06 +00:00
|
|
|
CS_PATCHES=1
|
2016-01-22 19:53:01 +00:00
|
|
|
endif
|
2014-03-07 01:00:27 +00:00
|
|
|
|
2021-02-13 22:21:08 +00:00
|
|
|
.PHONY: capstone-sync capstone-build all clean mrproper libgdbr libwinkd bochs sdbs
|
2014-03-07 01:00:27 +00:00
|
|
|
|
2020-08-14 05:17:32 +00:00
|
|
|
ifeq ($(shell gcc -v > /dev/null 2>&1 && echo works),works)
|
2013-08-26 22:52:04 +00:00
|
|
|
HOST_CC?=gcc
|
2020-08-14 05:17:32 +00:00
|
|
|
endif
|
2013-12-22 03:37:05 +00:00
|
|
|
SHLR?=$(shell pwd)
|
|
|
|
AR?=ar
|
|
|
|
RANLIB?=ranlib
|
2021-06-20 15:14:43 +00:00
|
|
|
# MODS=sdb zip java mpc yxml
|
|
|
|
MODS=zip java mpc yxml
|
2017-11-06 02:23:21 +00:00
|
|
|
MODS+=gdb qnx ar
|
|
|
|
# lz4
|
2017-05-09 12:25:57 +00:00
|
|
|
ifneq ($(CC),cccl)
|
2015-02-07 00:41:54 +00:00
|
|
|
ifeq (1,$(WITH_GPL))
|
|
|
|
MODS+=grub
|
|
|
|
endif
|
2017-05-09 12:25:57 +00:00
|
|
|
endif
|
2019-10-25 13:58:29 +00:00
|
|
|
SDB_URL=git://github.com/radareorg/sdb
|
2014-04-01 23:32:18 +00:00
|
|
|
#SDB_URL=/Users/pancake/prg/sdb
|
2021-10-19 18:57:19 +00:00
|
|
|
SPP_URL=git://github.com/trufae/spp
|
2013-05-13 23:53:52 +00:00
|
|
|
PWD=$(shell pwd)
|
|
|
|
SDB_CONFIG=${PWD}/sdb-config.mk
|
2013-04-30 23:29:06 +00:00
|
|
|
|
2015-10-09 19:24:15 +00:00
|
|
|
CFLAGS_SHARED=${PIC_CFLAGS}
|
2014-07-18 12:12:33 +00:00
|
|
|
|
2015-07-12 23:54:21 +00:00
|
|
|
ifeq (${EXT_SO},)
|
|
|
|
all:
|
|
|
|
echo EXT_SO not defined
|
|
|
|
exit 1
|
|
|
|
endif
|
|
|
|
|
2021-02-13 22:21:08 +00:00
|
|
|
preall: libwinkd capstone-build bochs
|
2015-10-26 21:33:45 +00:00
|
|
|
@for MOD in ${MODS} ; do \
|
|
|
|
echo $(MAKE) -C $$MOD ; \
|
|
|
|
$(MAKE) -C $$MOD HAVE_VALA= ROOT="${PWD}/../" CC="${CC}" ; \
|
2013-05-13 23:53:52 +00:00
|
|
|
done
|
2012-09-02 23:27:52 +00:00
|
|
|
|
2015-08-09 02:32:22 +00:00
|
|
|
SDBFILES=sdb/src/.sdb${EXT_EXE} sdb/sdb${EXT_EXE} sdb/src/.sdb sdb/sdb
|
2020-08-24 11:01:10 +00:00
|
|
|
PREMODS=capstone gdb winkd sdb bochs ar
|
2015-08-09 02:32:22 +00:00
|
|
|
|
2012-08-10 09:35:38 +00:00
|
|
|
clean mrproper:
|
2015-08-09 02:32:22 +00:00
|
|
|
rm -f ${SDBFILES}
|
2015-10-26 21:33:45 +00:00
|
|
|
@for MOD in ${PREMODS} ${MODS} ; do $(MAKE) -C $$MOD clean ; done
|
2013-04-30 23:29:06 +00:00
|
|
|
|
2015-07-13 09:21:21 +00:00
|
|
|
ifeq ($(BUILD_OS),windows)
|
|
|
|
BUILD_EXT_EXE=.exe
|
|
|
|
else
|
|
|
|
BUILD_EXT_EXE=
|
|
|
|
endif
|
|
|
|
|
2017-05-09 12:25:57 +00:00
|
|
|
PIC=
|
|
|
|
ifneq ($(CC),cccl)
|
|
|
|
PIC=-fPIC
|
|
|
|
endif
|
|
|
|
|
2020-12-13 01:45:42 +00:00
|
|
|
SDB_HOST=sdb/sdb$(BUILD_EXT_EXE)
|
2021-10-18 21:58:16 +00:00
|
|
|
SDB_LIBA=sdb/src/libsdb.$(EXT_AR)
|
2020-12-13 01:45:42 +00:00
|
|
|
|
|
|
|
$(SDB_HOST):
|
2020-08-19 08:31:20 +00:00
|
|
|
$(MAKE) sdb-host HOST_CC=$(HOST_CC) CC=$(HOST_CC)
|
2020-12-13 01:45:42 +00:00
|
|
|
|
|
|
|
$(SDB_LIBA):
|
2021-06-20 23:18:57 +00:00
|
|
|
$(MAKE) sdb-target RANLIB="$(RANLIB)"
|
2015-07-14 10:13:08 +00:00
|
|
|
|
2020-12-13 01:45:42 +00:00
|
|
|
sdbs: $(SDB_HOST)
|
2021-06-20 23:18:57 +00:00
|
|
|
$(MAKE) $(SDB_LIBA) RANLIB="$(RANLIB)"
|
2020-12-13 01:45:42 +00:00
|
|
|
|
2020-08-19 08:31:20 +00:00
|
|
|
sdb-host:
|
2015-07-13 09:21:21 +00:00
|
|
|
@echo
|
2020-08-19 08:31:20 +00:00
|
|
|
@echo ">>>>>>>>"
|
|
|
|
@echo "HOST SDB"
|
|
|
|
@echo ">>>>>>>>"
|
2015-07-13 13:22:37 +00:00
|
|
|
@echo
|
2020-08-14 05:17:32 +00:00
|
|
|
$(MAKE) -C sdb clean ; rm -f sdb/src/*.o sdb/src/sdb_version.h
|
|
|
|
$(MAKE) -C sdb/src "CC=${HOST_CC}" LDFLAGS='${HOST_LDFLAGS}' CPPFLAGS='' CFLAGS='${HOST_CFLAGS} ${PIC}' bin
|
2015-07-13 13:22:37 +00:00
|
|
|
cp -f sdb/src/sdb${BUILD_EXT_EXE} sdb/src/.sdb${BUILD_EXT_EXE}
|
2020-08-14 05:17:32 +00:00
|
|
|
cp -f sdb/src/sdb${BUILD_EXT_EXE} sdb/sdb$(BUILD_EXT_EXE)
|
Fix the CI badge and fully rewrite all the workflows to make sense ##build
* Windows, Linux, Static, macOS, Android, iOS builds published for every commit
* Kept coverage, coverity, fuzzing tests, lgtm and -Werror jobs
* Kill the continuos, the over-engineered matrix and other empty or unnecessary tasks (250 vs 900LOC)
* Jobs TODO: fatmac, termux and rpm (centos) packages
2021-01-12 12:41:21 +00:00
|
|
|
rm -f $(SDB_LIBA)
|
2020-08-14 05:17:32 +00:00
|
|
|
-file sdb/sdb$(BUILD_EXT_EXE)
|
2020-07-21 08:28:43 +00:00
|
|
|
|
2020-08-19 08:31:20 +00:00
|
|
|
sdb-target:
|
2015-07-13 13:22:37 +00:00
|
|
|
@echo
|
2020-08-19 08:31:20 +00:00
|
|
|
@echo ">>>>>>>>>>"
|
|
|
|
@echo "TARGET SDB"
|
|
|
|
@echo ">>>>>>>>>>"
|
2015-07-13 13:22:37 +00:00
|
|
|
@echo
|
2021-06-20 15:14:43 +00:00
|
|
|
rm -f src/libsdb.$(EXT_AR)
|
2020-08-14 05:17:32 +00:00
|
|
|
$(MAKE) -C sdb clean ; rm -f sdb/src/*.o sdb/src/sdb_version.h
|
|
|
|
$(MAKE) -C sdb/src sdb_version.h
|
2021-06-20 15:14:43 +00:00
|
|
|
ifeq ($(EXT_EXE),.wasm)
|
2021-10-18 21:58:16 +00:00
|
|
|
$(MAKE) -C sdb/src ARCH=xxx EXT_AR=.$(EXT_AR) RANLIB="${RANLIB}" CFLAGS_SHARED="${CFLAGS_SHARED} -DHAVE_MMAN=0" \
|
2021-06-20 15:14:43 +00:00
|
|
|
CC="${CC}" AR="${AR}" ARCH=undefined CFLAGS='${CFLAGS} -DHAVE_MMAN=0' LDFLAGS='${LDFLAGS}' libsdb.$(EXT_AR)
|
|
|
|
else
|
2021-10-18 21:58:16 +00:00
|
|
|
$(MAKE) -C sdb/src ARCH=xxx EXT_AR=.$(EXT_AR) RANLIB="${RANLIB}" CFLAGS_SHARED="${CFLAGS_SHARED}" \
|
2021-06-20 15:14:43 +00:00
|
|
|
CC="${CC}" AR="${AR}" ARCH=undefined LDFLAGS='${LDFLAGS}' libsdb.$(EXT_AR)
|
|
|
|
endif
|
|
|
|
$(RANLIB) sdb/src/libsdb.$(EXT_AR)
|
2020-07-21 08:28:43 +00:00
|
|
|
|
2020-08-19 08:31:20 +00:00
|
|
|
.PHONY: sdb-sync sync-sdb sdbclean sdb-native sdb-target
|
2021-06-20 23:21:41 +00:00
|
|
|
SDB_F=README.md config.mk src Makefile meson.build wasi.mk wasi.sh
|
2018-10-12 10:20:18 +00:00
|
|
|
SDB_SYNCFILES=$(addprefix sdb.vc/,${SDB_F})
|
2013-04-30 23:29:06 +00:00
|
|
|
I=../libr/include
|
|
|
|
|
2014-02-21 14:20:41 +00:00
|
|
|
libgdbr:
|
2016-03-24 23:41:13 +00:00
|
|
|
$(MAKE) -C gdb all
|
2014-02-21 14:20:41 +00:00
|
|
|
|
2020-08-24 11:01:10 +00:00
|
|
|
libwinkd:
|
|
|
|
$(MAKE) -C winkd all
|
2016-03-24 23:41:13 +00:00
|
|
|
|
|
|
|
bochs:
|
|
|
|
$(MAKE) -C bochs all
|
2014-08-31 16:09:25 +00:00
|
|
|
|
2015-07-13 09:21:21 +00:00
|
|
|
sdb-clean clean-sdb:
|
|
|
|
$(MAKE) -C sdb clean
|
|
|
|
rm -f sdb/sdb.exe
|
2017-05-09 12:25:57 +00:00
|
|
|
rm -f sdb/src/libsdb.${EXT_AR}
|
2015-07-13 09:21:21 +00:00
|
|
|
|
2013-04-30 23:29:06 +00:00
|
|
|
sdb-sync sync-sdb:
|
|
|
|
rm -rf sdb sdb.vc
|
2014-12-30 04:19:50 +00:00
|
|
|
git clone --depth 1 ${SDB_URL} sdb.vc
|
2013-04-30 23:29:06 +00:00
|
|
|
mkdir -p sdb
|
2018-10-12 10:20:18 +00:00
|
|
|
cp -rf ${SDB_SYNCFILES} sdb
|
2020-07-21 08:28:43 +00:00
|
|
|
rm -rf sdb.vc
|
2015-07-13 13:22:37 +00:00
|
|
|
rm -f src/sdb_version.h
|
2020-08-19 08:31:20 +00:00
|
|
|
$(MAKE) -C sdb src/sdb_version.h
|
2013-04-30 23:43:35 +00:00
|
|
|
mkdir -p sdb/test sdb/memcache
|
2013-07-19 01:35:45 +00:00
|
|
|
sed -e 's,HAVE_VALA=,HAVE_VALA=#,' sdb/config.mk > .t
|
|
|
|
mv .t sdb/config.mk
|
2013-06-04 23:13:05 +00:00
|
|
|
echo all clean mrproper: | tee sdb/test/Makefile > sdb/memcache/Makefile
|
2013-04-30 23:29:06 +00:00
|
|
|
git add sdb
|
2013-06-04 23:13:05 +00:00
|
|
|
|
2021-02-26 23:54:07 +00:00
|
|
|
ifeq ($(WITH_LIBR),1)
|
2018-02-18 00:47:07 +00:00
|
|
|
install: libr_shlr.${EXT_AR}
|
|
|
|
mkdir -p ${DESTDIR}/${LIBDIR}
|
|
|
|
cp -f libr_shlr.${EXT_AR} ${DESTDIR}/${LIBDIR}
|
2021-02-26 23:54:07 +00:00
|
|
|
else
|
|
|
|
install:
|
|
|
|
endif
|
2013-06-05 07:29:27 +00:00
|
|
|
|
2013-06-05 14:15:39 +00:00
|
|
|
install-symlink symstall:
|
2015-10-26 21:33:45 +00:00
|
|
|
mkdir -p "${DESTDIR}${LIBDIR}"
|
|
|
|
#cd tcc ; for FILE in libr_tcc* ; do \
|
|
|
|
# ln -fs `pwd`/$$FILE ${DESTDIR}${LIBDIR}/$$FILE ; done
|
2013-06-05 07:29:27 +00:00
|
|
|
|
|
|
|
uninstall deinstall:
|
2018-02-18 00:47:07 +00:00
|
|
|
rm -f ${DESTDIR}${LIBDIR}/libr_shlr.${EXT_AR}
|
2014-03-07 01:00:27 +00:00
|
|
|
|
2021-06-21 15:48:00 +00:00
|
|
|
ifeq ($(WANT_CAPSTONE),0)
|
|
|
|
capstone:
|
|
|
|
|
|
|
|
capstone-sync:
|
|
|
|
|
|
|
|
capstone-build:
|
|
|
|
else
|
2014-06-24 10:48:29 +00:00
|
|
|
ifeq ($(USE_CAPSTONE),1)
|
|
|
|
# Do nothing here
|
|
|
|
capstone:
|
|
|
|
|
|
|
|
capstone-sync:
|
|
|
|
|
|
|
|
capstone-build:
|
|
|
|
|
|
|
|
else
|
2014-03-07 02:16:10 +00:00
|
|
|
|
2016-01-22 19:53:01 +00:00
|
|
|
ifeq ($(CS_RELEASE),1)
|
2014-03-07 02:16:10 +00:00
|
|
|
capstone-sync: capstone
|
|
|
|
|
2014-04-18 15:18:48 +00:00
|
|
|
capstone-clean:
|
|
|
|
cd capstone ; $(MAKE) clean
|
|
|
|
|
2014-03-07 02:16:10 +00:00
|
|
|
capstone: capstone-$(CS_VER).tar.gz
|
|
|
|
tar xzvf capstone-$(CS_VER).tar.gz
|
|
|
|
rm -rf capstone
|
|
|
|
mv capstone-$(CS_VER) capstone
|
2021-05-11 21:41:47 +00:00
|
|
|
$(MAKE) patch-capstone
|
|
|
|
|
|
|
|
# already implemented in capstone.sh
|
|
|
|
patch-capstone:
|
2016-01-22 19:53:01 +00:00
|
|
|
ifeq ($(CS_PATCHES),1)
|
2019-05-13 08:25:17 +00:00
|
|
|
if [ -d capstone/.git ]; then \
|
2021-04-24 20:04:51 +00:00
|
|
|
ifeq ($(USE_CS4),1)
|
|
|
|
cd capstone ; for PATCH in ../capstone-patches/v4/* ; do patch -p1 < $$PATCH ; done ; \
|
|
|
|
else
|
|
|
|
cd capstone ; for PATCH in ../capstone-patches/v5/* ; do patch -p1 < $$PATCH ; done ; \
|
|
|
|
endif
|
2019-05-13 08:25:17 +00:00
|
|
|
fi
|
2016-01-22 19:53:01 +00:00
|
|
|
endif
|
|
|
|
mkdir -p capstone/include/capstone
|
|
|
|
cp -rf capstone/include/*.h capstone/include/capstone
|
2014-03-07 02:16:10 +00:00
|
|
|
|
|
|
|
capstone-$(CS_VER).tar.gz:
|
2019-02-18 18:38:55 +00:00
|
|
|
$(WGET) capstone-$(CS_VER).tar.gz $(CS_TAR)
|
2016-01-22 19:53:01 +00:00
|
|
|
else
|
|
|
|
|
|
|
|
capstone: capstone-sync
|
|
|
|
|
|
|
|
capstone-sync:
|
2017-10-20 01:19:55 +00:00
|
|
|
ifeq ($(WITHOUT_PULL),1)
|
|
|
|
@echo "Nothing to sync because of --without-pull"
|
|
|
|
else
|
2019-05-09 10:02:27 +00:00
|
|
|
"$(SHELL)" capstone.sh "${CS_URL}" "${CS_BRA}" "${CS_TIP}" "${CS_REV}" "${CS_ARCHIVE_URL}"
|
2017-10-20 01:19:55 +00:00
|
|
|
endif
|
2016-01-22 19:53:01 +00:00
|
|
|
|
2019-05-13 08:25:17 +00:00
|
|
|
.PHONY: capstone capstone-sync
|
2014-03-07 02:16:10 +00:00
|
|
|
endif
|
2014-05-07 15:05:42 +00:00
|
|
|
|
2015-07-13 00:45:45 +00:00
|
|
|
ifeq (${EXT_AR},)
|
|
|
|
all:
|
|
|
|
echo EXT_AR is not defined
|
|
|
|
exit 1
|
|
|
|
endif
|
|
|
|
|
2014-05-07 15:05:42 +00:00
|
|
|
capstone-build: capstone
|
2021-08-27 08:15:43 +00:00
|
|
|
cd capstone && CFLAGS="${CAPSTONE_CFLAGS} $(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
|
2016-09-20 09:19:01 +00:00
|
|
|
$(MAKE) $(CAPSTONE_MAKEFLAGS) CC="$(CC)" AR_EXT=a IS_CYGWIN=0 CAPSTONE_STATIC=yes CAPSTONE_SHARED=no \
|
2018-06-09 23:07:46 +00:00
|
|
|
RANLIB="$(RANLIB)" LIBARCHS="" AR="$(AR)" IS_MINGW=0 libcapstone.a
|
2015-10-14 23:50:30 +00:00
|
|
|
ifneq (${EXT_AR},a)
|
2015-07-13 09:21:21 +00:00
|
|
|
-cp -f capstone/libcapstone.a capstone/libcapstone.${EXT_AR}
|
2014-06-24 10:48:29 +00:00
|
|
|
endif
|
2015-10-14 23:50:30 +00:00
|
|
|
endif
|
2021-06-21 15:48:00 +00:00
|
|
|
endif
|
|
|
|
|
2017-03-18 22:19:27 +00:00
|
|
|
../../radare2-webui:
|
2020-04-21 03:41:19 +00:00
|
|
|
cd ../.. ; git clone --depth 1 https://github.com/radareorg/radare2-webui
|
2016-07-03 23:33:49 +00:00
|
|
|
|
2017-03-18 22:19:27 +00:00
|
|
|
../../radare2-webui/dist/m: ../../radare2-webui
|
2017-10-20 01:19:55 +00:00
|
|
|
ifeq ($(WITHOUT_PULL),1)
|
|
|
|
cd ../../radare2-webui/www/m && npm i ; $(MAKE) release
|
|
|
|
else
|
|
|
|
cd ../../radare2-webui/www/m && git pull ; npm i ; $(MAKE) release
|
|
|
|
endif
|
2017-03-18 22:19:27 +00:00
|
|
|
|
|
|
|
www-sync-m sync-www-m: ../../radare2-webui/dist/m
|
2016-07-03 23:33:49 +00:00
|
|
|
cp -rf ../../radare2-webui/dist/m www/m.tmp
|
|
|
|
rm -rf www/m
|
|
|
|
mv www/m.tmp www/m
|
|
|
|
git add www/m
|
|
|
|
|
2016-10-20 23:28:05 +00:00
|
|
|
www-sync-p sync-www-p:
|
2016-07-03 23:33:49 +00:00
|
|
|
cp -rf ../../radare2-webui/dist/p www/p.tmp
|
|
|
|
rm -rf www/p
|
|
|
|
mv www/p.tmp www/p
|
|
|
|
git add www/p
|
|
|
|
|
2016-10-20 23:28:05 +00:00
|
|
|
www-sync-t sync-www-t:
|
2016-07-03 23:33:49 +00:00
|
|
|
cp -rf ../../radare2-webui/dist/t www/t.tmp
|
|
|
|
rm -rf www/t
|
|
|
|
mv www/t.tmp www/t
|
|
|
|
git add www/p
|
|
|
|
|
2016-10-20 23:28:05 +00:00
|
|
|
sync-www www-sync: www-sync-m www-sync-p www-sync-t
|
2016-07-03 23:33:49 +00:00
|
|
|
@echo webui sync done
|
2016-12-18 08:46:10 +00:00
|
|
|
|
2016-12-19 02:05:42 +00:00
|
|
|
spp-sync sync-spp:
|
|
|
|
-git rm -r spp
|
2016-12-18 08:46:10 +00:00
|
|
|
rm -rf spp
|
|
|
|
git clone --depth 1 ${SPP_URL} spp
|
2016-12-19 02:05:42 +00:00
|
|
|
rm -rf spp/.git*
|
|
|
|
rm -rf spp/t
|
|
|
|
git add spp
|
2016-12-18 08:46:10 +00:00
|
|
|
|
|
|
|
spp: spp-sync
|
2021-05-27 16:31:29 +00:00
|
|
|
export CFLAGS="-DUSE_R2=1 -I../../libr/include -DHAVE_FORK=${HAVE_FORK} -fPIC"; $(MAKE) -C spp r2lib
|
2016-12-18 08:46:10 +00:00
|
|
|
|
2018-02-18 00:47:07 +00:00
|
|
|
SHLRS+=ar/libr_ar.a
|
|
|
|
SHLRS+=bochs/lib/libbochs.a
|
|
|
|
SHLRS+=capstone/libcapstone.a
|
|
|
|
SHLRS+=gdb/lib/libgdbr.a
|
|
|
|
SHLRS+=grub/libgrubfs.a
|
|
|
|
SHLRS+=java/libr_java.a
|
|
|
|
SHLRS+=lz4/liblz4.a
|
|
|
|
SHLRS+=qnx/lib/libqnxr.a
|
2020-05-19 16:35:06 +00:00
|
|
|
SHLRS+=yxml/libyxml.a
|
2020-08-24 11:01:10 +00:00
|
|
|
SHLRS+=winkd/libr_winkd.a
|
2018-02-18 00:47:07 +00:00
|
|
|
SHLRS+=zip/librz.a
|
|
|
|
|
|
|
|
libr_shlr.${EXT_AR}:
|
|
|
|
rm -rf .libr
|
|
|
|
mkdir .libr
|
2020-04-02 15:52:03 +00:00
|
|
|
ifeq ($(CC),emcc)
|
|
|
|
for LIB in ${SHLRS} ; do \
|
|
|
|
if [ -f "$${LIB}" ]; then emcc -emit-llvm -nostdlib -Wl,--whole-archive -o .libr/$$(basename $${LIB}.a).o $${LIB} ; fi ; \
|
|
|
|
done
|
2020-08-13 05:55:39 +00:00
|
|
|
${AR} rs $@ .libr/*.o
|
2020-04-02 15:52:03 +00:00
|
|
|
$(RANLIB) $@
|
|
|
|
else
|
2018-02-18 00:47:07 +00:00
|
|
|
for LIB in ${SHLRS} ; do \
|
2019-08-01 02:39:40 +00:00
|
|
|
if [ -f "$${LIB}" ]; then ${PARTIALLD} -o .libr/$$(basename $${LIB}.a).o $${LIB} ; fi ; \
|
2018-02-18 00:47:07 +00:00
|
|
|
done
|
2020-08-13 05:55:39 +00:00
|
|
|
${AR} rs $@ .libr/*.o
|
2020-04-02 15:52:03 +00:00
|
|
|
$(RANLIB) $@
|
|
|
|
endif
|
2018-02-18 00:47:07 +00:00
|
|
|
|
2016-12-18 08:46:10 +00:00
|
|
|
.PHONY: spp
|
2019-07-20 10:50:27 +00:00
|
|
|
|
2021-05-11 09:46:45 +00:00
|
|
|
include mpc/deps.mk
|