2009-02-05 21:08:46 +00:00
|
|
|
NAME=r_core
|
2010-04-08 10:29:47 +00:00
|
|
|
|
2010-03-04 00:46:25 +00:00
|
|
|
DEPS=r_config r_cons r_line r_io r_cmd r_util r_print r_flags r_asm r_lib
|
2010-05-29 12:04:50 +00:00
|
|
|
DEPS+=r_debug r_hash r_bin r_lang r_io r_anal r_parse r_print r_bp
|
2011-02-23 16:27:59 +00:00
|
|
|
DEPS+=r_reg r_search r_syscall r_sign r_diff r_socket r_fs
|
2009-02-05 21:08:46 +00:00
|
|
|
|
2010-08-24 09:58:09 +00:00
|
|
|
OBJ=core.o cmd.o file.o config.o visual.o io.o yank.o libs.o anal.o project.o gdiff.o asm.o rtr.o
|
2009-04-01 00:28:13 +00:00
|
|
|
|
|
|
|
CFLAGS+=-DLIBDIR=\"${PREFIX}/lib\"
|
2009-04-01 22:44:43 +00:00
|
|
|
CFLAGS+=-DPREFIX=\"${PREFIX}\"
|
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
|
|
|
|
|
2009-02-05 21:08:46 +00:00
|
|
|
include ../rules.mk
|
2011-02-23 18:11:39 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_LIB_MAGIC),1)
|
|
|
|
LDFLAGS+=-lmagic
|
|
|
|
endif
|