mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-13 07:57:35 +00:00
e48b9b2f30
f.example: $ r2 -c=H -e cfg.sandbox=true -
23 lines
430 B
Makefile
23 lines
430 B
Makefile
include ../../global.mk
|
|
include $(LTOP)/config.mk
|
|
|
|
NAME=r_magic
|
|
DEPS=r_util
|
|
CFLAGS+=-I.
|
|
CFLAGS+=-DHAVE_CONFIG_H
|
|
ifeq (${USE_LIB_MAGIC},1)
|
|
LDFLAGS+=-lmagic
|
|
endif
|
|
OBJS=apprentice.o ascmagic.o fsmagic.o funcs.o is_tar.o magic.o print.o softmagic.o
|
|
|
|
include $(LTOP)/rules.mk
|
|
|
|
libfile.a:
|
|
${CC} -c ${CFLAGS} ${SRC}
|
|
ar q libfile.a *.o
|
|
ranlib libfile.a
|
|
|
|
BIN=file${EXT_EXE}
|
|
${BIN}:
|
|
${CC} -I../include ${CFLAGS} ${SRC} file.c -o ${BIN}
|