Update to version 3.36.

I had to hack print.c due to some new bits that only compile on NetBSD.
I could not figure what the analogous FreeBSD bits are.
This commit is contained in:
obrien 2001-07-30 03:50:04 +00:00
parent 537bfba00e
commit 5a7612fe44

View File

@ -31,11 +31,11 @@ SRCDIR= ${.CURDIR}/../../contrib/file
.PATH: ${SRCDIR}
CFLAGS+= -DMAGIC='"$(MAGICFILE)"' -DBUILTIN_ELF -DELFCORE -DHAVE_CONFIG_H
CFLAGS+= -I${.CURDIR}
CFLAGS+= -I${.CURDIR} -I${SRCDIR}
PROG= file
SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
compress.c is_tar.c readelf.c print.c
compress.c is_tar.c readelf.c print-hacked.c
# compress.c is_tar.c readelf.c internat.c print.c
MAN= file.1 magic.5
@ -51,6 +51,10 @@ all: file magic
magic: $(MAGFILES)
cat $(MAGFILES) > $(.TARGET)
CLEANFILES+= print-hacked.c
print-hacked.c: print.c
sed -e 's|daylight|0/*daylight*/|g' ${.ALLSRC} > ${.TARGET}
beforeinstall:
$(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m $(MAGICMODE) \
magic $(DESTDIR)$(MAGICFILE)