Makefile revision 39495
11573Srgrimes# Makefile for file(1) cmd. 21573Srgrimes# Copyright (c) Ian F. Darwin 86/09/01 - see LEGAL.NOTICE. 31573Srgrimes# @(#)$Id: Makefile,v 1.11 1997/04/04 02:42:53 mpp Exp $ 41573Srgrimes# 51573Srgrimes# This software is not subject to any license of the American Telephone 61573Srgrimes# and Telegraph Company or of the Regents of the University of California. 71573Srgrimes# 81573Srgrimes# Permission is granted to anyone to use this software for any purpose on 91573Srgrimes# any computer system, and to alter it and redistribute it freely, subject 101573Srgrimes# to the following restrictions: 111573Srgrimes# 121573Srgrimes# 1. The author is not responsible for the consequences of use of this 131573Srgrimes# software, no matter how awful, even if they arise from flaws in it. 141573Srgrimes# 151573Srgrimes# 2. The origin of this software must not be misrepresented, either by 161573Srgrimes# explicit claim or by omission. Since few users ever read sources, 171573Srgrimes# credits must appear in the documentation. 181573Srgrimes# 191573Srgrimes# 3. Altered versions must be plainly marked as such, and must not be 201573Srgrimes# misrepresented as being the original software. Since few users 211573Srgrimes# ever read sources, credits must appear in the documentation. 221573Srgrimes# 231573Srgrimes# 4. This notice may not be removed or altered. 241573Srgrimes# 251573Srgrimes# Hacked and dismembered for bmake (Geoff Rehmet). 261573Srgrimes 271573SrgrimesMAGICDIR= /usr/share/misc 281573SrgrimesMAGICMODE= 444 291573Srgrimes 301573SrgrimesCFLAGS+= -DMAGIC='"$(MAGICDIR)/magic"' -DBUILTIN_ELF 311573Srgrimes 321573SrgrimesPROG= file 331573SrgrimesSRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \ 3483551Sdillon compress.c is_tar.c readelf.c internat.c print.c 3583551Sdillon 3683551SdillonMAN1= file.1 371573SrgrimesMAN5= magic.5 3852117Speter 391573SrgrimesCLEANFILES+= magic 4052117Speter 411573SrgrimesMAGFILES= $(.CURDIR)/Magdir/Header\ 421573Srgrimes $(.CURDIR)/Magdir/Localstuff\ 431573Srgrimes $(.CURDIR)/Magdir/[a-z]* 44195838Sbz 45195838Sbzall: file magic 46195838Sbz 471573Srgrimesmagic: $(MAGFILES) 481573Srgrimes cat $(MAGFILES) > $(.TARGET) 491573Srgrimes 501573Srgrimesbeforeinstall: 511573Srgrimes $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m $(MAGICMODE) \ 5255127Speter magic $(DESTDIR)$(MAGICDIR)/magic 53215315Sdim 541573Srgrimes.include <bsd.prog.mk> 55195838Sbz