radare2/libr/magic/Makefile

22 lines
398 B
Makefile

include ../../global.mk
include $(LTOP)/config.mk
NAME=r_magic
DEPS=r_util
CFLAGS+=-I.
ifeq (${USE_LIB_MAGIC},1)
LDFLAGS+=-lmagic
endif
OBJS=apprentice.o ascmagic.o fsmagic.o funcs.o is_tar.o magic.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}