![]() ![]() | ![]() |
File: [local] / src / usr.bin / file / Makefile (download)
Revision 1.8.22.1, Wed Mar 12 02:14:16 2003 UTC (21 years, 3 months ago) by margarida
Pull patch from current. Fix by ian@ Bring in readelf.c from Christos' version 3.41 to head off a local stack attack noted by iDefense, and for more complete 64-bit ELF support. Add hand-made config.h to avoid running configure but still be able to use Christos' code. In print.c add error(...)-->err(1,...) wrapper. Tested on i386, sparc64, macppc. ok millert@ |
# $OpenBSD: Makefile,v 1.8.22.1 2003/03/12 02:14:16 margarida Exp $ MAGIC= /etc/magic MAGICOWN= root MAGICGRP= bin MAGICMODE= 444 PROG= file SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \ print.c compress.c readelf.c internat.c CFLAGS+= -DMAGIC='"$(MAGIC)"' -DUSE_UTIMES -DHAVE_CONFIG_H MAN= file.1 magic.5 CLEANFILES+= magic all: file magic MAGFILES= $(.CURDIR)/magdir/Header\ $(.CURDIR)/magdir/Localstuff\ $(.CURDIR)/magdir/OpenBSD\ $(.CURDIR)/magdir/[0-9a-z]* magic: $(MAGFILES) cat $(MAGFILES) > $(.TARGET) afterinstall: ${INSTALL} ${INSTALL_COPY} -o $(MAGICOWN) -g $(MAGICGRP) -m $(MAGICMODE) magic \ $(DESTDIR)$(MAGIC) .include <bsd.prog.mk>