2012-08-14 15:44:17 +02:00
|
|
|
include ../../global.mk
|
|
|
|
include $(LTOP)/config.mk
|
2011-09-10 01:30:03 +02:00
|
|
|
|
|
|
|
NAME=r_magic
|
2011-09-14 02:07:06 +02:00
|
|
|
DEPS=r_util
|
2011-09-10 01:30:03 +02:00
|
|
|
CFLAGS+=-I.
|
2011-11-03 11:49:50 +01:00
|
|
|
ifeq (${USE_LIB_MAGIC},1)
|
|
|
|
LDFLAGS+=-lmagic
|
|
|
|
endif
|
2016-04-27 01:52:35 +02:00
|
|
|
OBJS=apprentice.o ascmagic.o fsmagic.o funcs.o is_tar.o magic.o softmagic.o
|
2011-09-10 01:30:03 +02:00
|
|
|
|
2012-08-14 15:44:17 +02:00
|
|
|
include $(LTOP)/rules.mk
|
2011-09-10 01:30:03 +02:00
|
|
|
|
|
|
|
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}
|