2011-05-06 15:14:31 +00:00
|
|
|
#include ../../config.mk
|
|
|
|
#BINDEPS=r_reg r_bp r_util r_io r_anal
|
2009-08-22 01:54:24 +00:00
|
|
|
|
2014-02-21 14:20:41 +00:00
|
|
|
CFLAGS+=-I$(SHLR)/gdb/include/
|
|
|
|
LIB_PATH=$(SHRL)/gdb/
|
|
|
|
|
2010-01-15 16:02:04 +00:00
|
|
|
ifeq (${OSTYPE},windows)
|
|
|
|
LDFLAGS+=-lwsock32
|
|
|
|
endif
|
|
|
|
ifeq (${OSTYPE},solaris)
|
|
|
|
LDFLAGS+=-lsocket
|
|
|
|
endif
|
|
|
|
|
2012-09-02 23:27:52 +00:00
|
|
|
-include ../../global.mk
|
|
|
|
-include ../../../global.mk
|
|
|
|
LDFLAGS+=-L$(LTOP)/util -lr_util
|
|
|
|
LDFLAGS+=-L$(LTOP)/cons -lr_cons
|
|
|
|
LDFLAGS+=-L$(LTOP)/parse -lr_parse
|
|
|
|
LDFLAGS+=-L$(LTOP)/anal -lr_anal
|
|
|
|
LDFLAGS+=-L$(LTOP)/reg -lr_reg
|
|
|
|
LDFLAGS+=-L$(LTOP)/bp -lr_bp
|
|
|
|
LDFLAGS+=-L$(LTOP)/io -lr_io
|
2010-01-18 16:33:33 +00:00
|
|
|
|
2011-05-06 15:14:31 +00:00
|
|
|
OBJ_GDB=debug_gdb.o
|
2009-08-22 01:54:24 +00:00
|
|
|
|
|
|
|
STATIC_OBJ+=${OBJ_GDB}
|
2010-01-15 16:02:04 +00:00
|
|
|
TARGET_GDB=debug_gdb.${EXT_SO}
|
2009-08-22 01:54:24 +00:00
|
|
|
|
|
|
|
ALL_TARGETS+=${TARGET_GDB}
|
|
|
|
|
|
|
|
${TARGET_GDB}: ${OBJ_GDB}
|
2011-09-26 00:10:25 +00:00
|
|
|
${CC_LIB} $(call libname,debug_gdb) ${OBJ_GDB} ${CFLAGS} ${LDFLAGS}
|