Makefile revision 74848
172213Sasmodai# Makefile for file(1) cmd. 272213Sasmodai# Copyright (c) Ian F. Darwin 86/09/01 - see LEGAL.NOTICE. 372213Sasmodai# @(#)$FreeBSD: head/usr.bin/file/Makefile 74848 2001-03-27 10:52:19Z ru $ 472213Sasmodai# 572213Sasmodai# This software is not subject to any license of the American Telephone 672705Sphantom# and Telegraph Company or of the Regents of the University of California. 772267Sache# 872213Sasmodai# Permission is granted to anyone to use this software for any purpose on 972213Sasmodai# any computer system, and to alter it and redistribute it freely, subject 1072213Sasmodai# to the following restrictions: 1172213Sasmodai# 1272213Sasmodai# 1. The author is not responsible for the consequences of use of this 1372213Sasmodai# software, no matter how awful, even if they arise from flaws in it. 1472275Sache# 1572327Sache# 2. The origin of this software must not be misrepresented, either by 1672213Sasmodai# explicit claim or by omission. Since few users ever read sources, 1772213Sasmodai# credits must appear in the documentation. 1872213Sasmodai# 1972213Sasmodai# 3. Altered versions must be plainly marked as such, and must not be 2072213Sasmodai# misrepresented as being the original software. Since few users 2172213Sasmodai# ever read sources, credits must appear in the documentation. 2272213Sasmodai# 2372213Sasmodai# 4. This notice may not be removed or altered. 2472213Sasmodai# 2572213Sasmodai# Hacked and dismembered for bmake (Geoff Rehmet). 2672213Sasmodai 2772213SasmodaiMAGICFILE= /usr/share/misc/magic 2872213SasmodaiMAGICMODE= 444 2972213Sasmodai 3072213SasmodaiSRCDIR= ${.CURDIR}/../../contrib/file 3172213Sasmodai.PATH: ${SRCDIR} 3272213Sasmodai 3372213SasmodaiCFLAGS+= -DMAGIC='"$(MAGICFILE)"' -DBUILTIN_ELF -DELFCORE -DHAVE_CONFIG_H 3472213SasmodaiCFLAGS+= -I${.CURDIR} 3572213Sasmodai 3672213SasmodaiPROG= file 37SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \ 38 compress.c is_tar.c readelf.c print.c 39# compress.c is_tar.c readelf.c internat.c print.c 40 41MAN= file.1 magic.5 42 43CLEANFILES+= magic 44 45MAGFILES= ${SRCDIR}/Header\ 46 ${SRCDIR}/Localstuff\ 47 ${SRCDIR}/Magdir/[a-z]* 48 49all: file magic 50 51magic: $(MAGFILES) 52 cat $(MAGFILES) > $(.TARGET) 53 54beforeinstall: 55 $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m $(MAGICMODE) \ 56 magic $(DESTDIR)$(MAGICFILE) 57 58.include <bsd.prog.mk> 59