2012-10-03 12:31:35 +00:00
|
|
|
include ../config.mk
|
2012-08-14 11:14:54 +00:00
|
|
|
|
2009-02-05 21:08:46 +00:00
|
|
|
NAME=r_core
|
2010-04-08 10:29:47 +00:00
|
|
|
|
2014-03-17 23:05:44 +00:00
|
|
|
DEPS=r_config r_cons r_io r_util r_flags r_asm r_db
|
2013-01-22 04:06:12 +00:00
|
|
|
DEPS+=r_debug r_hash r_bin r_lang r_io r_anal r_parse r_bp r_egg
|
2013-12-31 04:32:18 +00:00
|
|
|
DEPS+=r_reg r_search r_syscall r_diff r_socket r_fs r_magic
|
2009-02-05 21:08:46 +00:00
|
|
|
|
2014-02-18 03:03:07 +00:00
|
|
|
OBJS=core.o cmd.o file.o config.o visual.o io.o yank.o libs.o
|
2014-03-17 23:05:44 +00:00
|
|
|
OBJS+=hack.o vasm.o patch.o bin.o log.o syscmd.o rtr.o cmd_api.o
|
|
|
|
OBJS+=anal.o project.o gdiff.o asm.o vmenus.o disasm.o plugin.o
|
2009-04-01 00:28:13 +00:00
|
|
|
|
2014-03-17 23:05:44 +00:00
|
|
|
CFLAGS+=-DCORELIB
|
2010-01-21 20:22:30 +00:00
|
|
|
LDFLAGS+=${DL_LIBS}
|
2009-02-05 21:08:46 +00:00
|
|
|
|
2011-05-18 14:42:12 +00:00
|
|
|
ifeq ($(shell uname),OpenBSD)
|
|
|
|
LDFLAGS+=-lpthread
|
|
|
|
endif
|
|
|
|
|
2014-03-17 23:44:18 +00:00
|
|
|
first:: all
|
2012-02-27 01:40:27 +00:00
|
|
|
|
2014-03-17 23:05:44 +00:00
|
|
|
include ${STATIC_CORE_PLUGINS}
|
2014-03-17 23:44:18 +00:00
|
|
|
|
|
|
|
STATIC_OBJS=$(addprefix $(LTOP)/core/p/,$(STATIC_OBJ))
|
|
|
|
OBJS+=$(STATIC_OBJS)
|
|
|
|
|
|
|
|
#STATIC_OBJS=$(subst ..,p/..,$(subst core_,p/core_,$(STATIC_OBJ)))
|
|
|
|
|
|
|
|
include $(LTOP)/rules.mk
|
|
|
|
|
|
|
|
# include plugins
|
|
|
|
#include ${STATIC_CORE_PLUGINS}
|
2014-03-17 23:05:44 +00:00
|
|
|
|
2012-02-27 01:40:27 +00:00
|
|
|
cmd.o: cmd_hash.c cmd_debug.c cmd_zign.c cmd_section.c cmd_project.c \
|
|
|
|
cmd_open.c cmd_meta.c cmd_macro.c cmd_magic.c cmd_mount.c \
|
|
|
|
cmd_seek.c cmd_print.c cmd_help.c cmd_anal.c cmd_search.c \
|
2012-09-06 01:12:54 +00:00
|
|
|
cmd_cmp.c cmd_write.c cmd_egg.c cmd_info.c cmd_type.c cmd_flag.c
|