summaryrefslogtreecommitdiff
path: root/usr.bin/file/Makefile
AgeCommit message (Collapse)Author
2009-06-07remove filechristos
2008-08-30no more magic.mimechristos
2007-05-28Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on thetls
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.
2006-10-22Include bsd.sys.mk so that HOST_SH is defined. (Hi apb)christos
2006-10-08WFORMAT is no more...peter
2006-09-29Use ${HOST_SH}, not just sh, in the shell command to set MAGDIRF.apb
2004-06-16Force LANG=C before doing the shell glob to avoid collation issues on hostsjmc
(otherwise it might pick up CVS for instance)
2003-10-21Rework how MAKEVERBOSE operates:lukem
* 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.
2003-10-19support MAKEVERBOSElukem
2003-09-17have DPADDitojun
2003-07-10Rename a large chunk of the make(1) variables which refer to alukem
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.
2003-05-26Adapt to new magic compilation behaviour: copy magic.mime to objdirpooka
before compiling it so that we get the output also in the objdir instead of the distdir
2003-04-12Link libz after libmagic otherwise it fails on NOPIC ports.tsutsui
2003-04-05use ${CAT} instead of catpooka
2003-04-05When not using TOOLS, compile magic using the newly-built binarypooka
as suggested by Ken Wellsch in bin/20996
2003-03-26use file from distpooka
2002-05-18add zlibpooka
2002-03-24Fix the magic.mime problem correctly: the input file gets a differentthorpej
name.
2002-03-24Undo last.wiz
If no objdir exists, this change made 'make clean' remove the checked out magic.mime, making subsequent 'make build's fail.
2002-03-21Add magic.mime to CLEANFILES.veego
2002-03-05No need to reference .OBJDIR here.thorpej
2001-10-10Install magic.mime.mgc too.christos
2001-05-29Make this really work with MKSHARE=no.kleink
2001-05-09Make this cross-compile friendly - build a cut down program calledsimonb
"mkmagic" out of apprentice.c and print.c that is built using the host compiler and used to generate magic.mgc.
2001-05-09Use curly braces instead of parentheses around make(1) variables.simonb
2001-05-02magic.mgc needs ${PROG} to be created, so add a depenency. Makesfvdl
parallel make work.
2001-03-31Have an indivisual rule to build magic.mgc.enami
2001-03-27run file from ${.OBJDIR} instead of ${.CURDIR} to make it work withpooka
objdir builds also
2001-03-27Missed magic.mgc from list of files to wipe outpooka
2001-03-27switch to use new compressed magic file: magic.mgcpooka
2000-10-11More format string cleanup by sommerfeld.is
2000-09-22resolve conflictspooka
2000-05-14Resolve conflictschristos
2000-01-23More .mk file fallout.mycroft
1999-11-01Resolve corn flakes.christos
1999-02-16Prevent `file' from trying to use the (directory!) /usr/share/misc as thehe
magic file database.
1999-02-16use MFILESDIR instead of FILESDIR. fixes problems some people are havinglukem
1999-02-13convert from NOxxx= to MKxxx=no.lukem
include <bsd.own.mk> if testing a MKxxx variable.
1998-09-27don't install in /usr/share if NOSHARE is definedlukem
1998-09-20Turn on ELF and other NetBSD features.christos
1998-09-20resolve corn flakes.christos
1997-10-24use CPPFLAGS instead of CFLAGSlukem
1997-09-30/etc/magic -> /usr/share/misc/magicis
1997-05-17Macro expansion of shell metacharacters did not occur for me. I mademjacob
a :sh variable to get the list of magic files instead.
1997-04-03include magdir/386bsd in MAGFILES; from Alan Barrett in PR misc/3422.mikel
1997-03-24- Makefile cleanupschristos
1997-01-28Update to version 3.22christos
1997-01-09RCS ID policetls
1996-10-18Use ${INSTALL}.thorpej
1996-10-05Changes from file-3.21christos