Commit Graph

23 Commits

Author SHA1 Message Date
lukem a93ea220fc 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".
2003-08-01 17:03:41 +00:00
hubertf d5f85ed9c9 The patch below improves the security of the game atc(6), by having it
open the score file at the start and then drop all setgid privileges
while keeping a (close-on-exec) file descriptor open to it.  In order
to allow this the static data files have to be made world readable.
In addition a potential buffer overrun with corrupted score files is
avoided by more careful use of scanf (note that SCORE_SCANF_FMT is
defined alongside the definition of the relevant structure).

Submitted in PR 8015 by Joseph Myers <jsm28@cam.ac.uk>
1999-07-17 19:57:03 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
lukem b569ddabe9 don't install in /usr/share if NOSHARE is defined 1998-09-29 07:33:20 +00:00
hubertf f92ae4adb5 remove unused files (PR#6083 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:22:57 +00:00
tv 58d9481691 y.tab.h is now called grammar.h (and there's an implied .y.h rule now too)
Noticed by veego.
1998-05-13 19:21:37 +00:00
tv 482063559a .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
jtc 2065ddb3da Simply include -lcurses instead of -lcurses -ltermcap 1998-02-18 22:37:30 +00:00
veego 7794512cac We need a FILESMODE=440 for dm which is now setgid games. 1997-11-29 19:31:51 +00:00
mrg 6074e1b476 install games that need it setgid. 1997-11-20 00:12:30 +00:00
lukem 45b16676b3 use CPPFLAGS instead of CFLAGS, fix dependancies for parallel compile 1997-10-22 02:01:17 +00:00
lukem ca57cf90de WARNSify 1997-10-10 02:07:01 +00:00
christos d59123b39b - Makefile cleanups 1997-03-24 22:15:37 +00:00
thorpej 871c9c08af Use ${INSTALL}. 1996-10-18 02:37:51 +00:00
cgd 101657d110 clean up import 1995-03-21 15:03:38 +00:00
pk ad871df02e MAN6 => MAN. 1994-12-25 12:38:41 +00:00
phil b4caaf4aa1 adding 10 more games collected from ???? and some I wrote. 1994-12-23 07:01:39 +00:00
cgd c4c01d75b2 specify man pages the new way. 1994-12-22 09:31:26 +00:00
jtc f51f0a515d All programs that use lex must link with -ll. 1993-12-02 18:18:02 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
cgd e736635733 make sure directory to install stuff exists before installing 1993-04-09 09:35:33 +00:00
cgd f620d7d9f6 got rid of unnecessary -lcompat and associated dependency 1993-03-23 02:44:38 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00