head	1.56;
access;
symbols
	perseant-exfatfs-base-20250801:1.56
	perseant-exfatfs-base-20240630:1.56
	perseant-exfatfs:1.56.0.24
	perseant-exfatfs-base:1.56
	cjep_sun2x:1.56.0.22
	cjep_sun2x-base:1.56
	cjep_staticlib_x-base1:1.56
	cjep_staticlib_x:1.56.0.20
	cjep_staticlib_x-base:1.56
	phil-wifi-20200421:1.56
	phil-wifi-20200411:1.56
	phil-wifi-20200406:1.56
	pgoyette-compat-merge-20190127:1.56
	pgoyette-compat-20190127:1.56
	pgoyette-compat-20190118:1.56
	pgoyette-compat-1226:1.56
	pgoyette-compat-1126:1.56
	pgoyette-compat-1020:1.56
	pgoyette-compat-0930:1.56
	pgoyette-compat-0906:1.56
	pgoyette-compat-0728:1.56
	pgoyette-compat-0625:1.56
	pgoyette-compat-0521:1.56
	pgoyette-compat-0502:1.56
	pgoyette-compat-0422:1.56
	pgoyette-compat-0415:1.56
	pgoyette-compat-0407:1.56
	pgoyette-compat-0330:1.56
	pgoyette-compat-0322:1.56
	pgoyette-compat-0315:1.56
	pgoyette-compat:1.56.0.18
	pgoyette-compat-base:1.56
	perseant-stdc-iso10646:1.56.0.16
	perseant-stdc-iso10646-base:1.56
	prg-localcount2-base3:1.56
	prg-localcount2-base2:1.56
	prg-localcount2-base1:1.56
	prg-localcount2:1.56.0.14
	prg-localcount2-base:1.56
	pgoyette-localcount-20170426:1.56
	bouyer-socketcan-base1:1.56
	pgoyette-localcount-20170320:1.56
	bouyer-socketcan:1.56.0.12
	bouyer-socketcan-base:1.56
	pgoyette-localcount-20170107:1.56
	pgoyette-localcount-20161104:1.56
	localcount-20160914:1.56
	pgoyette-localcount-20160806:1.56
	pgoyette-localcount-20160726:1.56
	pgoyette-localcount:1.56.0.10
	pgoyette-localcount-base:1.56
	netbsd-5-2-3-RELEASE:1.55
	netbsd-5-1-5-RELEASE:1.55
	yamt-pagecache-base9:1.56
	yamt-pagecache-tag8:1.56
	tls-earlyentropy:1.56.0.6
	tls-earlyentropy-base:1.56
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.56
	riastradh-drm2-base3:1.56
	netbsd-5-2-2-RELEASE:1.55
	netbsd-5-1-4-RELEASE:1.55
	netbsd-5-2-1-RELEASE:1.55
	netbsd-5-1-3-RELEASE:1.55
	agc-symver:1.56.0.8
	agc-symver-base:1.56
	tls-maxphys-base:1.56
	yamt-pagecache-base8:1.56
	netbsd-5-2:1.55.0.2
	yamt-pagecache-base7:1.56
	netbsd-5-2-RELEASE:1.55
	netbsd-5-2-RC1:1.55
	yamt-pagecache-base6:1.56
	yamt-pagecache-base5:1.56
	yamt-pagecache-base4:1.56
	netbsd-5-1-2-RELEASE:1.55
	netbsd-5-1-1-RELEASE:1.55
	yamt-pagecache-base3:1.56
	yamt-pagecache-base2:1.56
	yamt-pagecache:1.56.0.4
	yamt-pagecache-base:1.56
	bouyer-quota2-nbase:1.56
	bouyer-quota2:1.56.0.2
	bouyer-quota2-base:1.56
	matt-nb5-mips64-premerge-20101231:1.55
	matt-nb5-pq3:1.55.0.14
	matt-nb5-pq3-base:1.55
	netbsd-5-1:1.55.0.12
	netbsd-5-1-RELEASE:1.55
	netbsd-5-1-RC4:1.55
	matt-nb5-mips64-k15:1.55
	netbsd-5-1-RC3:1.55
	netbsd-5-1-RC2:1.55
	netbsd-5-1-RC1:1.55
	netbsd-5-0-2-RELEASE:1.55
	matt-nb5-mips64-premerge-20091211:1.55
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.55
	matt-nb4-mips64-k7-u2a-k9b:1.55
	matt-nb5-mips64-u1-k1-k5:1.55
	matt-nb5-mips64:1.55.0.10
	netbsd-5-0-1-RELEASE:1.55
	jym-xensuspend-nbase:1.55
	netbsd-5-0:1.55.0.8
	netbsd-5-0-RELEASE:1.55
	netbsd-5-0-RC4:1.55
	netbsd-5-0-RC3:1.55
	netbsd-5-0-RC2:1.55
	jym-xensuspend:1.55.0.6
	jym-xensuspend-base:1.55
	netbsd-5-0-RC1:1.55
	netbsd-5:1.55.0.4
	netbsd-5-base:1.55
	matt-mips64-base2:1.55
	matt-mips64:1.54.0.14
	netbsd-4-0-1-RELEASE:1.53
	wrstuden-revivesa-base-3:1.55
	wrstuden-revivesa-base-2:1.55
	wrstuden-fixsa-newbase:1.53
	wrstuden-revivesa-base-1:1.54
	yamt-pf42-base4:1.54
	yamt-pf42-base3:1.54
	hpcarm-cleanup-nbase:1.54
	yamt-pf42-baseX:1.54
	yamt-pf42-base2:1.54
	wrstuden-revivesa:1.54.0.12
	wrstuden-revivesa-base:1.54
	yamt-pf42:1.54.0.10
	yamt-pf42-base:1.54
	keiichi-mipv6-nbase:1.54
	keiichi-mipv6:1.54.0.8
	keiichi-mipv6-base:1.54
	matt-armv6-nbase:1.54
	matt-armv6-prevmlocking:1.54
	wrstuden-fixsa-base-1:1.53
	netbsd-4-0:1.53.0.6
	netbsd-4-0-RELEASE:1.53
	cube-autoconf:1.54.0.6
	cube-autoconf-base:1.54
	netbsd-4-0-RC5:1.53
	netbsd-4-0-RC4:1.53
	netbsd-4-0-RC3:1.53
	netbsd-4-0-RC2:1.53
	netbsd-4-0-RC1:1.53
	matt-armv6:1.54.0.4
	matt-armv6-base:1.54
	matt-mips64-base:1.54
	hpcarm-cleanup:1.54.0.2
	hpcarm-cleanup-base:1.54
	netbsd-3-1-1-RELEASE:1.50.10.1
	netbsd-3-0-3-RELEASE:1.50.4.1
	wrstuden-fixsa:1.53.0.4
	wrstuden-fixsa-base:1.53
	abandoned-netbsd-4-base:1.50
	abandoned-netbsd-4:1.50.0.8
	netbsd-3-1:1.50.0.10
	netbsd-3-1-RELEASE:1.50
	netbsd-3-0-2-RELEASE:1.50
	netbsd-3-1-RC4:1.50
	netbsd-3-1-RC3:1.50
	netbsd-3-1-RC2:1.50
	netbsd-3-1-RC1:1.50
	netbsd-4:1.53.0.2
	netbsd-4-base:1.53
	chap-midi-nbase:1.50
	netbsd-3-0-1-RELEASE:1.50
	chap-midi:1.50.0.6
	chap-midi-base:1.50
	netbsd-3-0:1.50.0.4
	netbsd-3-0-RELEASE:1.50
	netbsd-3-0-RC6:1.50
	netbsd-3-0-RC5:1.50
	netbsd-3-0-RC4:1.50
	netbsd-3-0-RC3:1.50
	netbsd-3-0-RC2:1.50
	netbsd-3-0-RC1:1.50
	netbsd-2-0-3-RELEASE:1.49
	netbsd-2-1:1.49.0.6
	netbsd-2-1-RELEASE:1.49
	netbsd-2-1-RC6:1.49
	netbsd-2-1-RC5:1.49
	netbsd-2-1-RC4:1.49
	netbsd-2-1-RC3:1.49
	netbsd-2-1-RC2:1.49
	netbsd-2-1-RC1:1.49
	netbsd-2-0-2-RELEASE:1.49
	netbsd-3:1.50.0.2
	netbsd-3-base:1.50
	netbsd-2-0-1-RELEASE:1.49
	netbsd-2:1.49.0.4
	netbsd-2-base:1.49
	netbsd-2-0-RELEASE:1.49
	netbsd-2-0-RC5:1.49
	netbsd-2-0-RC4:1.49
	netbsd-2-0-RC3:1.49
	netbsd-2-0-RC2:1.49
	netbsd-2-0-RC1:1.49
	netbsd-2-0:1.49.0.2
	netbsd-2-0-base:1.49
	netbsd-1-6-PATCH002-RELEASE:1.40
	netbsd-1-6-PATCH002:1.40
	netbsd-1-6-PATCH002-RC4:1.40
	netbsd-1-6-PATCH002-RC3:1.40
	netbsd-1-6-PATCH002-RC2:1.40
	netbsd-1-6-PATCH002-RC1:1.40
	netbsd-1-6-PATCH001:1.40
	netbsd-1-6-PATCH001-RELEASE:1.40
	netbsd-1-6-PATCH001-RC3:1.40
	netbsd-1-6-PATCH001-RC2:1.40
	netbsd-1-6-PATCH001-RC1:1.40
	fvdl_fs64_base:1.40
	netbsd-1-6-RELEASE:1.40
	netbsd-1-6-RC3:1.40
	netbsd-1-6-RC2:1.40
	netbsd-1-6-RC1:1.40
	FILE3_39:1.1.1.5
	netbsd-1-6:1.40.0.2
	netbsd-1-6-base:1.40
	FILE3_38:1.1.1.5
	netbsd-1-5-PATCH003:1.24.4.2
	FILE3_37:1.1.1.5
	netbsd-1-5-PATCH002:1.24.4.2
	FILE3_36:1.1.1.5
	netbsd-1-5-PATCH001:1.24.4.2
	FILE3_34:1.1.1.5
	FILE3_33:1.1.1.5
	netbsd-1-5-RELEASE:1.24.4.2
	netbsd-1-5-BETA2:1.24.4.2
	netbsd-1-5-BETA:1.24.4.2
	FILE3_32:1.1.1.5
	netbsd-1-4-PATCH003:1.21.2.1
	netbsd-1-5-ALPHA2:1.24
	netbsd-1-5:1.24.0.4
	netbsd-1-5-base:1.24
	minoura-xpg4dl-base:1.24
	minoura-xpg4dl:1.24.0.2
	FILE3_31:1.1.1.4
	netbsd-1-4-PATCH002:1.21
	wrstuden-devbsize-19991221:1.22
	wrstuden-devbsize:1.21.0.4
	wrstuden-devbsize-base:1.22
	comdex-fall-1999:1.22.0.2
	comdex-fall-1999-base:1.22
	FILE3_28:1.1.1.3
	netbsd-1-4-PATCH001:1.21
	netbsd-1-4-RELEASE:1.21
	netbsd-1-4:1.21.0.2
	netbsd-1-4-base:1.21
	netbsd-1-3-PATCH003:1.14.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.14.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.14.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.14.2.1
	FILE3_26:1.1.1.2
	CHRISTOS:1.1.1
	FILE:1.1.1
	netbsd-1-3-PATCH002:1.14.2.1
	netbsd-1-3-PATCH001:1.14.2.1
	netbsd-1-3-RELEASE:1.14.2.1
	netbsd-1-3-BETA:1.14.2.1
	netbsd-1-3:1.14.0.2
	netbsd-1-3-base:1.14
	netbsd-1-2-PATCH001:1.6
	netbsd-1-2-RELEASE:1.6
	netbsd-1-2-BETA:1.6
	netbsd-1-2:1.6.0.6
	netbsd-1-2-base:1.6
	netbsd-1-1-PATCH001:1.6
	netbsd-1-1-RELEASE:1.6
	netbsd-1-1:1.6.0.2
	netbsd-1-1-base:1.6
	netbsd-1-0-PATCH06:1.5
	netbsd-1-0-PATCH05:1.5
	netbsd-1-0-PATCH04:1.5
	netbsd-1-0-PATCH03:1.5
	netbsd-1-0-PATCH02:1.5
	netbsd-1-0-PATCH1:1.5
	netbsd-1-0-PATCH0:1.5
	netbsd-1-0-RELEASE:1.5
	netbsd-1-0:1.5.0.2
	netbsd-1-0-base:1.5
	netbsd-0-9-RELEASE:1.3
	netbsd-0-9-BETA:1.3
	netbsd-0-9-ALPHA2:1.3
	netbsd-0-9-ALPHA:1.3
	netbsd-0-9:1.3.0.2
	netbsd-0-9-base:1.3
	netbsd-0-8:1.1.1.1
	netbsd-alpha-1:1.1.1.1
	patchkit-0-2-2:1.1.1.1
	WFJ-386bsd-01:1.1.1.1
	WFJ-920714:1.1.1;
locks; strict;
comment	@# @;


1.56
date	2009.06.07.23.16.50;	author christos;	state dead;
branches;
next	1.55;

1.55
date	2008.08.30.12.26.17;	author christos;	state Exp;
branches;
next	1.54;

1.54
date	2007.05.28.12.06.26;	author tls;	state Exp;
branches
	1.54.12.1;
next	1.53;

1.53
date	2006.10.22.22.22.39;	author christos;	state Exp;
branches;
next	1.52;

1.52
date	2006.10.08.17.52.28;	author peter;	state Exp;
branches;
next	1.51;

1.51
date	2006.09.29.20.20.47;	author apb;	state Exp;
branches;
next	1.50;

1.50
date	2004.06.16.01.33.35;	author jmc;	state Exp;
branches
	1.50.2.1
	1.50.4.1
	1.50.10.1;
next	1.49;

1.49
date	2003.10.21.10.01.22;	author lukem;	state Exp;
branches;
next	1.48;

1.48
date	2003.10.19.04.30.30;	author lukem;	state Exp;
branches;
next	1.47;

1.47
date	2003.09.17.00.41.17;	author itojun;	state Exp;
branches;
next	1.46;

1.46
date	2003.07.10.10.34.43;	author lukem;	state Exp;
branches;
next	1.45;

1.45
date	2003.05.26.13.42.33;	author pooka;	state Exp;
branches;
next	1.44;

1.44
date	2003.04.12.02.15.22;	author tsutsui;	state Exp;
branches;
next	1.43;

1.43
date	2003.04.05.12.30.51;	author pooka;	state Exp;
branches;
next	1.42;

1.42
date	2003.04.05.11.33.16;	author pooka;	state Exp;
branches;
next	1.41;

1.41
date	2003.03.26.00.05.04;	author pooka;	state Exp;
branches;
next	1.40;

1.40
date	2002.05.18.07.04.38;	author pooka;	state Exp;
branches
	1.40.2.1;
next	1.39;

1.39
date	2002.03.24.22.12.59;	author thorpej;	state Exp;
branches;
next	1.38;

1.38
date	2002.03.24.17.16.22;	author wiz;	state Exp;
branches;
next	1.37;

1.37
date	2002.03.21.22.02.06;	author veego;	state Exp;
branches;
next	1.36;

1.36
date	2002.03.05.22.07.13;	author thorpej;	state Exp;
branches;
next	1.35;

1.35
date	2001.10.10.16.56.27;	author christos;	state Exp;
branches;
next	1.34;

1.34
date	2001.05.29.20.22.05;	author kleink;	state Exp;
branches;
next	1.33;

1.33
date	2001.05.09.14.05.52;	author simonb;	state Exp;
branches;
next	1.32;

1.32
date	2001.05.09.13.58.25;	author simonb;	state Exp;
branches;
next	1.31;

1.31
date	2001.05.02.18.35.41;	author fvdl;	state Exp;
branches;
next	1.30;

1.30
date	2001.03.31.01.31.49;	author enami;	state Exp;
branches;
next	1.29;

1.29
date	2001.03.27.08.45.02;	author pooka;	state Exp;
branches;
next	1.28;

1.28
date	2001.03.27.00.53.43;	author pooka;	state Exp;
branches;
next	1.27;

1.27
date	2001.03.27.00.48.59;	author pooka;	state Exp;
branches;
next	1.26;

1.26
date	2000.10.11.14.46.03;	author is;	state Exp;
branches;
next	1.25;

1.25
date	2000.09.22.16.34.59;	author pooka;	state Exp;
branches;
next	1.24;

1.24
date	2000.05.14.22.53.37;	author christos;	state Exp;
branches
	1.24.4.1;
next	1.23;

1.23
date	2000.01.23.18.00.38;	author mycroft;	state Exp;
branches;
next	1.22;

1.22
date	99.11.01.17.39.26;	author christos;	state Exp;
branches;
next	1.21;

1.21
date	99.02.16.12.32.52;	author he;	state Exp;
branches
	1.21.2.1
	1.21.4.1;
next	1.20;

1.20
date	99.02.16.07.11.27;	author lukem;	state Exp;
branches;
next	1.19;

1.19
date	99.02.13.02.54.55;	author lukem;	state Exp;
branches;
next	1.18;

1.18
date	98.09.27.17.22.11;	author lukem;	state Exp;
branches;
next	1.17;

1.17
date	98.09.20.15.36.46;	author christos;	state Exp;
branches;
next	1.16;

1.16
date	98.09.20.15.27.15;	author christos;	state Exp;
branches;
next	1.15;

1.15
date	97.10.24.09.00.29;	author lukem;	state Exp;
branches;
next	1.14;

1.14
date	97.09.30.17.00.36;	author is;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	97.05.17.21.15.35;	author mjacob;	state Exp;
branches;
next	1.12;

1.12
date	97.04.03.07.17.24;	author mikel;	state Exp;
branches;
next	1.11;

1.11
date	97.03.24.21.59.35;	author christos;	state Exp;
branches;
next	1.10;

1.10
date	97.01.28.00.49.36;	author christos;	state Exp;
branches;
next	1.9;

1.9
date	97.01.09.20.18.47;	author tls;	state Exp;
branches;
next	1.8;

1.8
date	96.10.18.06.14.17;	author thorpej;	state Exp;
branches;
next	1.7;

1.7
date	96.10.05.20.20.24;	author christos;	state Exp;
branches;
next	1.6;

1.6
date	94.12.22.12.29.47;	author cgd;	state Exp;
branches;
next	1.5;

1.5
date	93.11.03.05.56.58;	author cgd;	state Exp;
branches;
next	1.4;

1.4
date	93.08.02.17.54.24;	author mycroft;	state Exp;
branches;
next	1.3;

1.3
date	93.07.18.19.11.55;	author mycroft;	state Exp;
branches;
next	1.2;

1.2
date	93.06.10.00.37.58;	author jtc;	state Exp;
branches;
next	1.1;

1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.54.12.1
date	2008.09.18.04.29.11;	author wrstuden;	state Exp;
branches;
next	;

1.50.2.1
date	2007.06.24.19.41.41;	author ghen;	state Exp;
branches;
next	;

1.50.4.1
date	2007.06.24.19.43.06;	author ghen;	state Exp;
branches;
next	;

1.50.10.1
date	2007.06.24.19.44.58;	author ghen;	state Exp;
branches;
next	;

1.40.2.1
date	2004.06.16.01.34.10;	author jmc;	state Exp;
branches;
next	;

1.24.4.1
date	2000.09.30.06.20.43;	author simonb;	state Exp;
branches;
next	1.24.4.2;

1.24.4.2
date	2000.10.18.01.32.42;	author tv;	state Exp;
branches;
next	;

1.21.2.1
date	2000.10.19.16.31.19;	author he;	state Exp;
branches;
next	;

1.21.4.1
date	99.12.27.18.36.50;	author wrstuden;	state Exp;
branches;
next	;

1.14.2.1
date	97.11.08.10.36.58;	author lukem;	state Exp;
branches;
next	;

1.1.1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	98.09.19.18.07.40;	author christos;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	99.11.01.17.30.11;	author christos;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2000.05.14.22.44.21;	author christos;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2000.09.22.16.01.07;	author pooka;	state Exp;
branches;
next	;


desc
@@


1.56
log
@remove file
@
text
@#	$NetBSD: Makefile,v 1.55 2008/08/30 12:26:17 christos Exp $

.include <bsd.own.mk>
.include <bsd.sys.mk>

USE_FORT?= yes	# data-driven bugs?

DIST=		${NETBSDSRCDIR}/dist/file
.PATH:		${DIST}/src ${DIST}/doc

MFILESDIR=	/usr/share/misc
MFILES=		magic magic.mgc 
MAGIC=		${MFILESDIR}/magic
TOOL_MKMAGIC?=	${.OBJDIR}/file

.if ${MKSHARE} != "no"
FILESDIR=	${MFILESDIR}
FILES=		${MFILES}
.endif

PROG=		file
SRCS=		file.c
CPPFLAGS+=	-DMAGIC='"${MAGIC}"' -DHAVE_CONFIG_H -DQUICK -DBUILTIN_ELF \
		-DELFCORE
CPPFLAGS+=	-I${.CURDIR}/../../lib/libmagic -I${DIST}
LDADD+=		-lmagic -lz
DPADD+=		${LIBMAGIC} ${LIBZ}
MAN=		file.1 magic.5

CLEANFILES+=	magic magic.mgc
.if ${MKSHARE} != "no"
realall:	file magic magic.mgc
.endif

MAGDIRF:sh=	LANG=C ${HOST_SH} -c 'echo ${DIST}/magic/magdir/[0-9a-z]*'
MAGFILES=	${DIST}/magic/Header \
		${DIST}/magic/Localstuff \
		${DIST}/magic/magdir/netbsd \
		${MAGDIRF}

.if ${MKSHARE} != "no"
magic: ${MAGFILES}
	${_MKTARGET_CREATE}
	${TOOL_CAT} ${MAGFILES} > ${.TARGET}

magic.mgc: magic
	${_MKTARGET_CREATE}
	${TOOL_MKMAGIC} -C -m magic

.else
magic:
.endif

.include <bsd.prog.mk>
@


1.55
log
@no more magic.mime
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.54 2007/05/28 12:06:26 tls Exp $
@


1.54
log
@Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.53 2006/10/22 22:22:39 christos Exp $
d12 1
a12 1
MFILES=		magic magic.mgc ${DIST}/magic/magic.mime magic.mime.mgc
d30 1
a30 1
CLEANFILES+=	magic magic.mgc magic.mime magic.mime.mgc
d32 1
a32 1
realall:	file magic magic.mgc magic.mime.mgc
a49 4
magic.mime.mgc:
	${_MKTARGET_CREATE}
	cp ${DIST}/magic/magic.mime ${.OBJDIR}
	${TOOL_MKMAGIC} -C -m magic.mime
@


1.54.12.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.54 2007/05/28 12:06:26 tls Exp $
d12 1
a12 1
MFILES=		magic magic.mgc 
d30 1
a30 1
CLEANFILES+=	magic magic.mgc
d32 1
a32 1
realall:	file magic magic.mgc
d50 4
@


1.53
log
@Include bsd.sys.mk so that HOST_SH is defined. (Hi apb)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.52 2006/10/08 17:52:28 peter Exp $
d6 2
@


1.52
log
@WFORMAT is no more...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2006/09/29 20:20:47 apb Exp $
d4 1
@


1.51
log
@Use ${HOST_SH}, not just sh, in the shell command to set MAGDIRF.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.50 2004/06/16 01:33:35 jmc Exp $
a7 1
WFORMAT=	1
@


1.50
log
@Force LANG=C before doing the shell glob to avoid collation issues on hosts
(otherwise it might pick up CVS for instance)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 2003/10/21 10:01:22 lukem Exp $
d33 1
a33 1
MAGDIRF:sh=	LANG=C sh -c 'echo ${DIST}/magic/magdir/[0-9a-z]*'
@


1.50.10.1
log
@Pull up following revision(s) (requested by pooka in ticket #1804):
	dist/file/: synced with HEAD on 20070615
	distrib/sets/lists/base/shl.elf: revision 1.222
	distrib/sets/lists/base/shl.mi: revision 1.375 via patch
	lib/Makefile: revision 1.108 via patch
	lib/libmagic/Makefile: revision 1.5
	lib/libmagic/config.h: patch
	lib/libmagic/shlib_version: revision 1.3-1.4
	tools/file/Makefile: revision 1.4
	usr.bin/file/Makefile: revision 1.51-1.53
Update file(1) to version 4.21, including security fixes (CVE-2007-1536 and
CVE-2007-2799).
@
text
@d1 1
a1 1
#	$NetBSD$
a3 1
.include <bsd.sys.mk>
d8 1
d33 1
a33 1
MAGDIRF:sh=	LANG=C ${HOST_SH} -c 'echo ${DIST}/magic/magdir/[0-9a-z]*'
@


1.50.4.1
log
@Pull up following revision(s) (requested by pooka in ticket #1804):
	dist/file/: synced with HEAD on 20070615
	distrib/sets/lists/base/shl.elf: revision 1.222
	distrib/sets/lists/base/shl.mi: revision 1.375 via patch
	lib/Makefile: revision 1.108 via patch
	lib/libmagic/Makefile: revision 1.5
	lib/libmagic/config.h: patch
	lib/libmagic/shlib_version: revision 1.3-1.4
	tools/file/Makefile: revision 1.4
	usr.bin/file/Makefile: revision 1.51-1.53
Update file(1) to version 4.21, including security fixes (CVE-2007-1536 and
CVE-2007-2799).
@
text
@d1 1
a1 1
#	$NetBSD$
a3 1
.include <bsd.sys.mk>
d8 1
d33 1
a33 1
MAGDIRF:sh=	LANG=C ${HOST_SH} -c 'echo ${DIST}/magic/magdir/[0-9a-z]*'
@


1.50.2.1
log
@Pull up following revision(s) (requested by pooka in ticket #1804):
	dist/file/: synced with HEAD on 20070615
	distrib/sets/lists/base/shl.elf: revision 1.222
	distrib/sets/lists/base/shl.mi: revision 1.375 via patch
	lib/Makefile: revision 1.108 via patch
	lib/libmagic/Makefile: revision 1.5
	lib/libmagic/config.h: patch
	lib/libmagic/shlib_version: revision 1.3-1.4
	tools/file/Makefile: revision 1.4
	usr.bin/file/Makefile: revision 1.51-1.53
Update file(1) to version 4.21, including security fixes (CVE-2007-1536 and
CVE-2007-2799).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.50 2004/06/16 01:33:35 jmc Exp $
a3 1
.include <bsd.sys.mk>
d8 1
d33 1
a33 1
MAGDIRF:sh=	LANG=C ${HOST_SH} -c 'echo ${DIST}/magic/magdir/[0-9a-z]*'
@


1.49
log
@Rework how MAKEVERBOSE operates:

    *	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.48 2003/10/19 04:30:30 lukem Exp $
d33 1
a33 1
MAGDIRF:sh=	echo ${DIST}/magic/magdir/[0-9a-z]*
@


1.48
log
@support MAKEVERBOSE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 2003/09/17 00:41:17 itojun Exp $
d41 1
a41 2
	${_MKMSGCREATE}
	${_MKCMD}\
d45 1
a45 2
	${_MKMSGCREATE}
	${_MKCMD}\
d49 1
a49 2
	${_MKMSGCREATE}
	${_MKCMD}\
a50 1
	${_MKCMD}\
@


1.47
log
@have DPADD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46 2003/07/10 10:34:43 lukem Exp $
d41 2
d46 3
a48 1
	 ${TOOL_MKMAGIC} -C -m magic
d51 2
d54 1
@


1.46
log
@Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2003/05/26 13:42:33 pooka Exp $
d25 1
@


1.45
log
@Adapt to new magic compilation behaviour: copy magic.mime to objdir
before compiling it so that we get the output also in the objdir instead
of the distdir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.44 2003/04/12 02:15:22 tsutsui Exp $
d12 1
a12 1
MKMAGIC?=	${.OBJDIR}/file
d40 1
a40 1
	${CAT} ${MAGFILES} > ${.TARGET}
d43 1
a43 1
	 ${MKMAGIC} -C -m magic
d47 1
a47 1
	${MKMAGIC} -C -m magic.mime
@


1.44
log
@Link libz after libmagic otherwise it fails on NOPIC ports.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.43 2003/04/05 12:30:51 pooka Exp $
d27 1
a27 1
CLEANFILES+=	magic magic.mgc magic.mime.mgc
d46 2
a47 1
	${MKMAGIC} -C -m ${DIST}/magic/magic.mime
@


1.43
log
@use ${CAT} instead of cat
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2003/04/05 11:33:16 pooka Exp $
d24 1
a24 1
LDADD+=		-lz -lmagic
@


1.42
log
@When not using TOOLS, compile magic using the newly-built binary

as suggested by Ken Wellsch in bin/20996
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2003/03/26 00:05:04 pooka Exp $
d40 1
a40 1
	cat ${MAGFILES} > ${.TARGET}
@


1.41
log
@use file from dist
@
text
@d1 1
a1 1
#	$NetBSD$
d12 1
@


1.40
log
@add zlib
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2002/03/24 22:12:59 thorpej Exp $
d5 3
d10 1
a10 1
MFILES=		magic magic.mgc magic.mime magic.mime.mgc
d12 1
d19 5
a23 5
SRCS=		file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \
		print.c compress.c readelf.c 
CPPFLAGS+=	-DMAGIC='"${MAGIC}"' -DHAVE_CONFIG_H -I${.CURDIR}
CPPFLAGS+=	-DQUICK -DBUILTIN_ELF -DELFCORE
LDADD+=		-lz
d26 1
a26 1
CLEANFILES+=	mkmagic magic magic.mgc magic.mime magic.mime.mgc
d31 4
a34 4
MAGDIRF:sh=	echo ${.CURDIR}/magdir/[0-9a-z]*
MAGFILES=	${.CURDIR}/Header \
		${.CURDIR}/Localstuff \
		${.CURDIR}/magdir/netbsd \
d38 1
a38 1
magic:		${MAGFILES}
d41 2
a42 2
magic.mgc: mkmagic magic
	./mkmagic magic
d44 2
a45 5
magic.mime: magic.mime.in
	cp ${.CURDIR}/magic.mime.in ./magic.mime

magic.mime.mgc:	mkmagic magic.mime
	./mkmagic ./magic.mime
a48 4

mkmagic: apprentice.c print.c
	${HOST_LINK.c} -o mkmagic -DHAVE_CONFIG_H -DQUICK -DCOMPILE_ONLY \
		-I${.CURDIR} ${.CURDIR}/apprentice.c ${.CURDIR}/print.c
@


1.40.2.1
log
@Mirror rev 1.50 from trunk. Need to force LANG=C to avoid globbing issues
w. sh (found during PR#24481 fixes)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2002/05/18 07:04:38 pooka Exp $
d27 1
a27 2
# Avoid possible collation problems w. LANG set to something else
MAGDIRF:sh=	LANG=C sh -c 'echo ${.CURDIR}/magdir/[0-9a-z]*'
@


1.39
log
@Fix the magic.mime problem correctly: the input file gets a different
name.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2002/03/24 17:16:22 wiz Exp $
d19 1
@


1.38
log
@Undo last.
If no objdir exists, this change made 'make clean' remove the checked out
magic.mime, making subsequent 'make build's fail.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2002/03/21 22:02:06 veego Exp $
d21 1
a21 1
CLEANFILES+=	mkmagic magic magic.mgc magic.mime.mgc
d36 1
a36 1
magic.mgc:	mkmagic magic
d39 3
a42 1
	[ -f magic.mime ] || cp ${.CURDIR}/magic.mime ./magic.mime
d48 1
a48 1
mkmagic:	apprentice.c print.c
@


1.37
log
@Add magic.mime to CLEANFILES.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2002/03/05 22:07:13 thorpej Exp $
d21 1
a21 1
CLEANFILES+=	mkmagic magic magic.mgc magic.mime magic.mime.mgc
@


1.36
log
@No need to reference .OBJDIR here.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2001/10/10 16:56:27 christos Exp $
d21 1
a21 1
CLEANFILES+=	mkmagic magic magic.mgc magic.mime.mgc
@


1.35
log
@Install magic.mime.mgc too.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2001/05/29 20:22:05 kleink Exp $
d37 1
a37 1
	${.OBJDIR}/mkmagic magic
d40 2
a41 7
.if ${.CURDIR} != ${.OBJDIR}
	@@cp -p ${.CURDIR}/magic.mime ${.OBJDIR}
.endif
	${.OBJDIR}/mkmagic magic.mime
.if ${.CURDIR} != ${.OBJDIR}
	@@rm -f ${.OBJDIR}/magic.mime
.endif
@


1.34
log
@Make this really work with MKSHARE=no.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2001/05/09 14:05:52 simonb Exp $
d7 1
a7 1
MFILES=		magic magic.mgc magic.mime
d21 1
a21 1
CLEANFILES+=	mkmagic magic magic.mgc
d23 1
a23 1
realall:	file magic magic.mgc
d35 1
d38 9
@


1.33
log
@Make this cross-compile friendly - build a cut down program called
"mkmagic" out of apprentice.c and print.c that is built using the
host compiler and used to generate magic.mgc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2001/05/09 13:58:25 simonb Exp $
d22 1
d24 1
@


1.32
log
@Use curly braces instead of parentheses around make(1) variables.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2001/05/02 18:35:41 fvdl Exp $
d21 1
a21 1
CLEANFILES+=	magic magic.mgc
d31 1
a31 1
magic:		${MAGFILES} ${PROG}
d33 2
a34 2
magic.mgc:	magic
	${.OBJDIR}/${PROG} -C -m ${.ALLSRC}
d38 4
@


1.31
log
@magic.mgc needs ${PROG} to be created, so add a depenency. Makes
parallel make work.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2001/03/31 01:31:49 enami Exp $
d17 1
a17 1
CPPFLAGS+=	-DMAGIC='"$(MAGIC)"' -DHAVE_CONFIG_H -I${.CURDIR}
d24 4
a27 4
MAGDIRF:sh=	echo $(.CURDIR)/magdir/[0-9a-z]*
MAGFILES=	$(.CURDIR)/Header \
		$(.CURDIR)/Localstuff \
		$(.CURDIR)/magdir/netbsd \
d31 2
a32 2
magic:		$(MAGFILES) $(PROG)
	cat $(MAGFILES) > $(.TARGET)
d34 1
a34 1
	$(.OBJDIR)/$(PROG) -C -m $(.ALLSRC)
@


1.30
log
@Have an indivisual rule to build magic.mgc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2001/03/27 08:45:02 pooka Exp $
d31 1
a31 1
magic:		$(MAGFILES)
@


1.29
log
@run file from ${.OBJDIR} instead of ${.CURDIR} to make it work with
objdir builds also
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2001/03/27 00:53:43 pooka Exp $
d22 1
a22 1
realall:		file magic
d33 2
a34 1
	$(.OBJDIR)/$(PROG) -C -m $(.TARGET)
@


1.28
log
@Missed magic.mgc from list of files to wipe out
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2001/03/27 00:48:59 pooka Exp $
d33 1
a33 1
	$(.CURDIR)/$(PROG) -C -m $(.TARGET)
@


1.27
log
@switch to use new compressed magic file: magic.mgc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2000/10/11 14:46:03 is Exp $
d21 1
a21 1
CLEANFILES+=	magic
@


1.26
log
@More format string cleanup by sommerfeld.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2000/09/22 16:34:59 pooka Exp $
d7 1
a7 1
MFILES=		magic magic.mime
d18 1
a18 1
CPPFLAGS+=	-DBUILTIN_ELF -DELFCORE
d33 1
@


1.25
log
@resolve conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2000/05/14 22:53:37 christos Exp $
d5 1
@


1.24
log
@Resolve conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.4 2000/05/14 22:44:21 christos Exp $
d15 1
a15 1
		print.c compress.c readelf.c internat.c
@


1.24.4.1
log
@Pull up file 3.32 (requested by christos, approved by thorpej).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2000/05/14 22:53:37 christos Exp $
d15 1
a15 1
		print.c compress.c readelf.c 
@


1.24.4.2
log
@Pullup usr.bin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24.4.1 2000/09/30 06:20:43 simonb Exp $
a4 1
WFORMAT=	1
@


1.23
log
@More .mk file fallout.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1999/11/01 17:39:26 christos Exp $
d6 2
a7 2
MFILES=		magic
MAGIC=		${MFILESDIR}/${MFILES}
@


1.22
log
@Resolve corn flakes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.3 1999/11/01 17:30:11 christos Exp $
d21 1
a21 1
all:		file magic
@


1.21
log
@Prevent `file' from trying to use the (directory!) /usr/share/misc as the
magic file database.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 1999/02/16 07:11:27 lukem Exp $
d16 1
a16 1
CPPFLAGS+=	-DMAGIC='"$(MAGIC)"' -DHAVE_SYS_WAIT_H -DHAVE_ST_RDEV
@


1.21.2.1
log
@Pull up revision 1.26 (requested by he):
  Format string cleanup.
@
text
@d1 1
a1 1
#	$NetBSD$
a4 1
WFORMAT=	1
@


1.21.4.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1999/11/01 17:39:26 christos Exp $
d16 1
a16 1
CPPFLAGS+=	-DMAGIC='"$(MAGIC)"' -DHAVE_CONFIG_H -I${.CURDIR}
@


1.20
log
@use MFILESDIR instead of FILESDIR. fixes problems some people are having
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 1999/02/13 02:54:55 lukem Exp $
d7 1
a7 1
MAGIC=		${MFILESDIR}/${FILES}
@


1.19
log
@convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 1998/09/27 17:22:11 lukem Exp $
d7 1
a7 1
MAGIC=		${FILESDIR}/${FILES}
@


1.18
log
@don't install in /usr/share if NOSHARE is defined
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.17 1998/09/20 15:36:46 christos Exp $
d8 1
a8 1
.if !defined(NOSHARE)
d29 1
a29 1
.if !defined(NOSHARE)
@


1.17
log
@Turn on ELF and other NetBSD features.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1998/09/20 15:27:15 christos Exp $
d3 2
a4 2
FILESDIR=	/usr/share/misc
FILES=		magic
d6 4
d27 1
d30 3
@


1.16
log
@resolve corn flakes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.2 1998/09/19 18:07:40 christos Exp $
d10 2
a11 1
CPPFLAGS+=	-DMAGIC='"$(MAGIC)"'
@


1.15
log
@use CPPFLAGS instead of CFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1997/09/30 17:00:36 is Exp $
d17 2
a18 2
MAGFILES=	$(.CURDIR)/magdir/Header \
		$(.CURDIR)/magdir/Localstuff \
@


1.14
log
@/etc/magic -> /usr/share/misc/magic
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1997/05/17 21:15:35 mjacob Exp $
d10 1
a10 1
CFLAGS+=	-DMAGIC='"$(MAGIC)"'
@


1.14.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1997/10/24 09:00:29 lukem Exp $
d10 1
a10 1
CPPFLAGS+=	-DMAGIC='"$(MAGIC)"'
@


1.13
log
@Macro expansion of shell metacharacters did not occur for me. I made
a :sh variable to get the list of magic files instead.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1997/04/03 07:17:24 mikel Exp $
d3 1
a3 1
FILESDIR=	/etc
@


1.12
log
@include magdir/386bsd in MAGFILES; from Alan Barrett in PR misc/3422.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1997/03/24 21:59:35 christos Exp $
d16 1
d20 1
a20 1
		$(.CURDIR)/magdir/[0-9a-z]*
@


1.11
log
@- Makefile cleanups
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1997/01/28 00:49:36 christos Exp $
d16 4
a19 4
MAGFILES=	$(.CURDIR)/magdir/Header\
		$(.CURDIR)/magdir/Localstuff\
		$(.CURDIR)/magdir/netbsd\
		$(.CURDIR)/magdir/[a-z]*
@


1.10
log
@Update to version 3.22
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1997/01/09 20:18:47 tls Exp $
d3 3
a5 4
MAGIC=		/etc/magic
MAGICOWN=	bin
MAGICGRP=	bin
MAGICMODE=	444
d20 1
a22 4

afterinstall:
	${INSTALL} ${COPY} -o $(MAGICOWN) -g $(MAGICGRP) -m $(MAGICMODE) magic \
		$(DESTDIR)$(MAGIC)
@


1.9
log
@RCS ID police
@
text
@d1 1
a1 1
#	$NetBSD$
d10 1
a10 1
		print.c compress.c readelf.c
d19 1
a19 1
		$(.CURDIR)/magdir/NetBSD\
@


1.8
log
@Use ${INSTALL}.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.7 1996/10/05 20:20:24 christos Exp $
@


1.7
log
@Changes from file-3.21
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.6 1994/12/22 12:29:47 cgd Exp $
d25 1
a25 1
	install ${COPY} -o $(MAGICOWN) -g $(MAGICGRP) -m $(MAGICMODE) magic \
@


1.6
log
@specify man pages the new way.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.5 1993/11/03 05:56:58 cgd Exp $
d10 1
a10 1
		print.c compress.c
@


1.5
log
@include the NetBSD magic file seperately.  call it 'NetBSD' rather
than 'netbsd'.  cvs tree magic by cgd will move it to the right place.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.4 1993/08/02 17:54:24 mycroft Exp $
d12 1
a12 2
MAN1=		file.0
MAN5=		magic.0
@


1.4
log
@Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
@
text
@d1 1
a1 1
#	$Id: $
d20 1
@


1.3
log
@Use ${COPY}, not -c for install.
@
text
@d1 2
@


1.2
log
@Updated to Ian Darwin's latest release.
Adds lots of neat features from most other vendors file(1) commands,
plus (important!) little and big endian file types.  This will alow
us to detect and extract meaningful information from a many more
file types.
@
text
@d23 1
a23 1
	install -c -o $(MAGICOWN) -g $(MAGICGRP) -m $(MAGICMODE) magic \
@


1.1
log
@Initial revision
@
text
@d1 4
a4 7
PROG=	file
MAGIC	= /etc/magic
CFLAGS+= -DMAGIC='"$(MAGIC)"'
SRCS=	file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \
	print.c $(LOCALSRCS)
MAN5=	magic.0
MAN1=	file.0
d6 6
a11 1
ascmagic.o:	names.h
d13 2
a14 1
apprentice.o ascmagic.o file.o fsmagic.o print.o softmagic.o: file.h
d16 6
d23 2
a24 1
	install -c ${.CURDIR}/magic $(MAGIC)
@


1.1.1.1
log
@initial import of 386bsd-0.1 sources
@
text
@@


1.1.1.2
log
@file-3.26
@
text
@d1 7
a7 1
#	$NetBSD: $
d9 1
a9 3
FILESDIR=	/usr/share/misc
FILES=		magic
MAGIC=		${FILESDIR}/${FILES}
d11 1
a11 5
PROG=		file
SRCS=		file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \
		print.c compress.c readelf.c internat.c
CPPFLAGS+=	-DMAGIC='"$(MAGIC)"'
MAN=		file.1 magic.5
d13 2
a14 11
CLEANFILES+=	magic
all:		file magic

MAGDIRF:sh=	echo $(.CURDIR)/magdir/[0-9a-z]*
MAGFILES=	$(.CURDIR)/Header \
		$(.CURDIR)/Localstuff \
		$(.CURDIR)/magdir/netbsd \
		${MAGDIRF}

magic:		$(MAGFILES)
	cat $(MAGFILES) > $(.TARGET)
@


1.1.1.3
log
@new version of file(1)
@
text
@d3 3
a5 9
.include <bsd.own.mk>

MFILESDIR=	/usr/share/misc
MFILES=		magic
MAGIC=		${MFILESDIR}/${MFILES}
.if ${MKSHARE} != "no"
FILESDIR=	${MFILESDIR}
FILES=		${MFILES}
.endif
d10 1
a10 2
CPPFLAGS+=	-DMAGIC='"$(MAGIC)"' -DHAVE_CONFIG_H -I${.CURDIR}
CPPFLAGS+=	-DBUILTIN_ELF -DELFCORE
a21 1
.if ${MKSHARE} != "no"
a23 3
.else
magic:
.endif
@


1.1.1.4
log
@new file 3.31
@
text
@d6 2
a7 2
MFILES=		magic magic.mime
MAGIC=		${MFILESDIR}/magic
@


1.1.1.5
log
@file 3.32
@
text
@d15 1
a15 1
		print.c compress.c readelf.c 
@
