forked from radareorg/radare2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix android build and add r_core->anal_define api
Fix static build (libr.a) Fix android build farm scripts Build system is still hacky
- Loading branch information
Showing
31 changed files
with
173 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
include ../../config.mk | ||
|
||
|
||
CFLAGS+=-I../../include -I../arch -Wall -shared -fPIC ${LDFLAGS_LIB} ${LDFLAGS_LINKPATH}.. | ||
CFLAGS+=-L../../util -lr_util -L../../anal -lr_anal -L../../reg -lr_reg | ||
LDFLAGS+=${LINK} | ||
|
||
foo: all | ||
ifeq ($(WITHPIC),1) | ||
all: ${ALL_TARGETS} | ||
@true | ||
|
||
ALL_TARGETS= | ||
# TODO: rename to enabled plugins | ||
ARCHS=x86.mk x86_udis86.mk x86_simple.mk ppc.mk arm.mk avr.mk csr.mk dalvik.mk sh.mk | ||
include $(ARCHS) | ||
|
||
all: ${ALL_TARGETS} | ||
@true | ||
|
||
clean: | ||
-rm -f *.${EXT_SO} *.o ${STATIC_OBJ} | ||
|
||
mrproper: clean | ||
-rm -f *.d ../arch/*/*/*.d | ||
|
||
.PHONY: all clean foo mrproper | ||
.PHONY: all clean mrproper | ||
else | ||
all: | ||
.PHONY: all | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#define R_API_I static | ||
|
||
#include "z80asm.c" | ||
#include "disasm.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ifeq ($(WITHNONPIC),1) | ||
LDFLAGS+=$(LIBR)/db/sdb/src/libsdb.a | ||
else | ||
LDFLAGS+=-L$(LIBR)/db -lr_db | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ BINDEPS=r_db r_util | |
BIN=test | ||
OBJ=test.o | ||
include ../../rules.mk | ||
|
||
include ../r.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ all: | |
EXTRA_CLEAN=myclean | ||
#include ../../rules.mk | ||
|
||
myclean: | ||
clean myclean: | ||
rm -f cat read4 map *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ ifeq ($(USE_RPATH),1) | |
LDFLAGS+=-Wl,-R${PREFIX}/lib | ||
endif | ||
|
||
|
||
#-------------------------------------# | ||
# Rules for libraries | ||
ifneq ($(NAME),) | ||
|
@@ -128,14 +127,17 @@ endif | |
|
||
ifneq ($(BIN)$(BINS),) | ||
BEXE=$(BIN)$(EXT_EXE) | ||
X=$(subst r_,,$(BINDEPS)) | ||
LDFLAGS+=$(addprefix -L$(TOP)/libr/,$(X)) | ||
LDFLAGS+=$(addprefix -l,$(BINDEPS)) | ||
|
||
all: ${BEXE} ${BINS} | ||
|
||
${BINS}: ${OBJS} | ||
ifneq ($(SILENT),) | ||
@echo CC $@ | ||
endif | ||
${CC} ${CFLAGS} [email protected] ${OBJS} -L.. ${LDFLAGS} -o $@ | ||
${CC} ${CFLAGS} [email protected] ${OBJS} ${LDFLAGS} -o $@ | ||
|
||
${BEXE}: ${OBJ} ${SHARED_OBJ} | ||
ifneq ($(SILENT),) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ BIN=rasign2 | |
BINDEPS=r_sign r_anal r_reg r_syscall r_diff r_db r_util | ||
|
||
include ../../rules.mk | ||
include ../../db/r.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ BIN=hello | |
BINDEPS=r_syscall r_db r_util | ||
|
||
include ../../rules.mk | ||
include ../../db/r.mk |
Oops, something went wrong.