mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-05 20:17:43 +00:00
9e08da0fa6
- Update spp and force hidden visibility - Use R_API wisely - RSys.prefix returns const things - Use -install_name on Apple - Fix merged lib visibility linking on Linux - Use OSTYPE instead of BUILD_OS - Honor crosscompiler-objcopy and support android like linux - Add extra missing archives - Fix for android - Upgrade spp and sdb - Skip libr. from symstall - Add --enable-merged configure option - Use --enable-merged on ios-sdk - Upgrade sdb again for js0n - Kill sys/ios-shell.sh - Msvc dynamic build fix
46 lines
752 B
Makefile
46 lines
752 B
Makefile
PREFIX?=/usr
|
|
BINDIR=${DESTDIR}${PREFIX}/bin
|
|
INSTALL_BIN=install -m 0755
|
|
OBJ=spp.o main.o r_api.o
|
|
ODF=$(subst .o,.d,$(OBJ))
|
|
BIN=spp
|
|
|
|
CFLAGS?=-Wall -O2
|
|
|
|
CFLAGS+=-fvisibility=hidden
|
|
|
|
all: ${BIN}
|
|
|
|
config.h:
|
|
cp config.def.h config.h
|
|
|
|
${BIN}: config.h ${OBJ}
|
|
${CC} ${LDFLAGS} -o ${BIN} ${OBJ}
|
|
|
|
symlinks:
|
|
ln -s ${BIN} acr
|
|
ln -s ${BIN} cpp
|
|
ln -s ${BIN} pod
|
|
ln -s ${BIN} sh
|
|
|
|
test:
|
|
@for a in t/*spp* ; do \
|
|
printf "Testing $$a... " ; \
|
|
./spp -tspp -o out.txt $$a ; \
|
|
if [ -z "`cat out.txt | grep BUG`" ]; then echo ok ; else echo oops ; fi ; \
|
|
cat out.txt | grep BUG ; \
|
|
rm -f out.txt ; \
|
|
true ; \
|
|
done
|
|
|
|
install:
|
|
${INSTALL_BIN} ${BIN} ${BINDIR}
|
|
|
|
uninstall:
|
|
rm -f ${BINDIR}/${BIN}
|
|
|
|
clean:
|
|
-rm -f ${BIN} ${OBJ} ${ODF}
|
|
|
|
-include ${ODF}
|