2014-07-09 00:24:31 +00:00
|
|
|
include ../config.mk
|
|
|
|
|
2009-02-24 14:58:21 +00:00
|
|
|
NAME=r_parse
|
2014-01-18 01:52:49 +00:00
|
|
|
DEPS=r_flags r_util r_anal
|
2009-08-14 01:44:12 +00:00
|
|
|
|
2014-07-09 00:24:31 +00:00
|
|
|
LINK+=$(STOP)/tcc/libr_tcc.a
|
2013-07-31 22:39:19 +00:00
|
|
|
CFLAGS+=-I$(STOP)/tcc/
|
2012-09-02 23:27:52 +00:00
|
|
|
|
2012-08-10 13:59:37 +00:00
|
|
|
foo:
|
2014-07-09 00:24:31 +00:00
|
|
|
@for a in pre libr_parse.${EXT_SO} \
|
|
|
|
libr_parse.${EXT_AR} plugins bins \
|
|
|
|
; do ${MAKE} $$a ; done
|
2009-08-14 01:44:12 +00:00
|
|
|
|
|
|
|
CFLAGS+=-DCORELIB
|
2010-01-15 00:56:43 +00:00
|
|
|
-include ${STATIC_PARSE_PLUGINS}
|
2009-08-14 01:44:12 +00:00
|
|
|
STATIC_OBJS=$(subst ..,p/..,$(subst parse_,p/parse_,$(STATIC_OBJ)))
|
2013-06-05 07:29:27 +00:00
|
|
|
OBJS=parse.o code.o ${STATIC_OBJS}
|
2009-08-14 01:44:12 +00:00
|
|
|
|
2009-08-14 02:19:54 +00:00
|
|
|
bins:
|
2013-11-13 01:58:50 +00:00
|
|
|
# @cd t && ${MAKE} all
|
2009-08-14 01:44:12 +00:00
|
|
|
|
|
|
|
pre:
|
2012-09-02 23:27:52 +00:00
|
|
|
ifeq ($(WITHNONPIC),1)
|
2012-11-13 01:00:00 +00:00
|
|
|
@if [ ! -e libr_parse.${EXT_AR} ]; then rm -f ${STATIC_OBJS} ; fi
|
2012-09-02 23:27:52 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(WITHPIC),1)
|
2012-11-13 01:00:00 +00:00
|
|
|
@if [ ! -e libr_parse.${EXT_SO} ]; then rm -f ${STATIC_OBJS} ; fi
|
2012-09-02 23:27:52 +00:00
|
|
|
endif
|
2009-08-14 01:44:12 +00:00
|
|
|
|
|
|
|
plugins:
|
2011-10-08 21:39:06 +00:00
|
|
|
@cd p && ${MAKE} all
|
2009-02-24 14:58:21 +00:00
|
|
|
|
2014-07-09 00:24:31 +00:00
|
|
|
include ../rules.mk
|