mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-28 08:24:56 +00:00
36 lines
713 B
Makefile
36 lines
713 B
Makefile
include ../config.mk
|
|
|
|
NAME=r_parse
|
|
DEPS=r_flag r_util r_syscall r_reg
|
|
# indirect dependencies
|
|
DEPS+=r_cons
|
|
|
|
LINK+=$(STOP)/tcc/libr_tcc.a
|
|
CFLAGS+=-I$(STOP)/tcc/
|
|
|
|
foo:
|
|
@for TARGET in pre libr_parse.${EXT_SO} \
|
|
libr_parse.${EXT_AR} plugins bins ; do \
|
|
${MAKE} $$TARGET ; done
|
|
|
|
CFLAGS+=-DCORELIB
|
|
-include ${STATIC_PARSE_PLUGINS}
|
|
STATIC_OBJS=$(subst ..,p/..,$(subst parse_,p/parse_,$(STATIC_OBJ)))
|
|
OBJS=parse.o code.o ${STATIC_OBJS}
|
|
|
|
bins:
|
|
# @cd t && ${MAKE} all
|
|
|
|
pre:
|
|
ifeq ($(WITHNONPIC),1)
|
|
@if [ ! -e libr_parse.${EXT_AR} ]; then rm -f ${STATIC_OBJS} ; fi
|
|
endif
|
|
ifeq ($(WITHPIC),1)
|
|
@if [ ! -e libr_parse.${EXT_SO} ]; then rm -f ${STATIC_OBJS} ; fi
|
|
endif
|
|
|
|
plugins:
|
|
@cd p && ${MAKE} all
|
|
|
|
include ../rules.mk
|