radare2/libr/magic/Makefile
pancake e48b9b2f30 Add cfg.sandbox functionality
f.example: $ r2 -c=H -e cfg.sandbox=true -
2012-10-20 00:31:18 +02:00

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}