Home | History | Annotate | Download | only in hack
History log of /src/games/hack/Makefile
RevisionDateAuthorComments
 1.50  22-Sep-2025  christos llvm does not know -Wno-error=restrict, check for what gcc is worried about.
 1.49  18-Sep-2025  mrg introduce a couple of new turn-off-gcc-warning variables and use them.

GCC 14 has a new annoying calloc() checker that we turn off in a bunch
of places, and there are a few more dangling-pointer issuse that come up,
but seem bogus.
 1.48  03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.47  08-Feb-2020  fox games/hack: Suppress -Werror=stringop-truncation error.

Add GCC_NO_STRINGOP_TRUNCATION to hack.end.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
 1.46  13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.45  24-Aug-2011  plunky branches: 1.45.42;
-Wno-shadow is no longer needed for HAVE_PCC, here
 1.44  16-Aug-2011  christos - document non-literal format strings
- avoid strict aliasing violations, but adding an intermediate function.
 1.43  22-Jun-2011  mrg apply some -Wno-error and/or -fno-strict-aliasing.


all of this should be looked at closer, but some of them are not
very trivial.
 1.42  03-Feb-2010  roy Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@
 1.41  29-Aug-2008  gmcgarry Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
 1.40  25-Feb-2006  simonb branches: 1.40.20;
Change DPADD from LIBTERM (which doesn't exist) and LIBCOMPAT (which it
doesn't use) to LIBTERMCAP (which it does use).
 1.39  16-Nov-2003  lukem Improve how various "simple" host tools are built and invoked.
 1.38  21-Oct-2003  lukem 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.
 1.37  19-Oct-2003  lukem rework to use the newer _MKMSGCREATE (et al) macros
 1.36  19-Oct-2003  lukem Support MAKEVERBOSE. (Some host tools still generate verbose runtime messages)
 1.35  01-Aug-2003  lukem Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
 1.34  31-Jul-2003  lukem simplify and use ${DEPENDSRCS} as a target as appropriate
 1.33  05-Mar-2002  thorpej No need to reference .OBJDIR here.
 1.32  09-Feb-2002  lukem use ${INSTALL_FILE} as appropriate
 1.31  23-Sep-2000  simonb Use ${COPY} instead of -c for ${INSTALL} commands.
 1.30  21-Aug-1999  simonb Use ${INSTPRIV} with ${INSTALL}.
 1.29  06-Dec-1998  dbj tweaks to pass DESTDIR to subprograms when it is defined in /etc/mk.conf
but is not in the environment.
 1.28  12-Sep-1998  wrstuden Make the helper programs compile right in a cross-compiling environment.
 1.27  20-Nov-1997  mrg install games files with the correct permissions.
 1.26  20-Nov-1997  mrg install games that need it setgid.
 1.25  22-Oct-1997  lukem use CPPFLAGS instead of CFLAGS, fix dependancies for parallel compile
 1.24  19-Oct-1997  christos branches: 1.24.2;
WARNsify...
 1.23  12-Oct-1997  lukem enable WARNS?=1 by default, & temporarily disable for the few unclean programs
 1.22  07-May-1997  mycroft Use afterinstall, not proginstall, to run post-installation crap.
 1.21  19-Apr-1997  thorpej Allow this to be cross-compiled.
 1.20  27-Mar-1997  mycroft Install the help file again.
 1.19  24-Mar-1997  christos - Makefile cleanups
 1.18  07-Jan-1997  tls Sync to 4.4BSD-Lite2
 1.17  18-Oct-1996  thorpej Use ${INSTALL}.
 1.16  23-Mar-1995  cgd merge with Lite, new RCS id conventions, etc.
 1.15  22-Dec-1994  cgd specify man pages the new way.
 1.14  23-May-1994  cgd need -lcompat
 1.13  10-Feb-1994  cgd kiil bogus install -d's
 1.12  04-Jan-1994  pk Use .OBJDIR for auxiliary programs.
 1.11  02-Dec-1993  mycroft From: Havard Eidnes <Havard.Eidnes@runit.sintef.no>
Fix various permissions problems in /var/games/hackdir, and use `install -d'.
 1.10  08-Nov-1993  cgd use LDSTATIC
 1.9  14-Aug-1993  mycroft Make hack.onames.h be built first.
 1.8  10-Aug-1993  mycroft Add -I. to deal with hack.onames.h, and tweak for cross-compilation.
 1.7  06-Aug-1993  mycroft Remove makedefs when cleaning.
 1.6  06-Aug-1993  mycroft Use `./makedefs'.
 1.5  04-Aug-1993  mycroft Add hack.onames.h to CLEANFILES so it gets removed when cleaning, and to SRCS
so it gets build for depending.
 1.4  01-Aug-1993  mycroft Add RCS identifiers.
 1.3  09-Apr-1993  cgd make sure directory to install stuff exists before installing
 1.2  23-Mar-1993  cgd got rid of unnecessary -lcompat and associated dependency
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3  28-Dec-1996  tls Import from 4.4BSD-Lite2
 1.1.1.2  21-Mar-1995  cgd from Lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.24.2.2  20-Nov-1997  mrg pull up from trunk:
- install games files with the correct permissions.
- install games that need it setgid.
 1.24.2.1  08-Nov-1997  lukem pull up rev 1.25 (approved by thorpej)
 1.40.20.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.45.42.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.45.42.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed