Commit Graph

44 Commits

Author SHA1 Message Date
christos 2d84e02e2f Coverity CID 552: Close opened file. 2006-04-22 18:02:26 +00:00
gdamore 6af224c1b4 Support cross-building tn3270 from other OS' e.g. Solaris by hiding
_RCS and _COPYRIGHT macros in #ifndef HOST_TOOL, and defining HOST_CPPFLAGS
apropriately for host tools.  Approved by uwe@.
2006-03-20 01:34:49 +00:00
chs 7bdb7511a0 fix build problems with parallel make: always descend into the tools dir
and add some .WAITs to avoid deciding to build a tool again before
the previous instance finishes.
2005-09-17 16:52:02 +00:00
peter 5dc9788b36 Fix a typo, dependancy -> dependency
ok wiz@
2004-11-19 14:18:53 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
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
lukem 5d4973fe97 makefile delint. use NETBSDSRCDIR as appropriate 2002-09-18 14:00:33 +00:00
thorpej 55153619f4 Make the tn3270 host tools build on non-BSD systems. Slightly
kludgy, but saves a major overhaul.
2002-09-15 01:27:44 +00:00
wiz db575159df Remove #if !__STDC__ code. While here, de-__P(). 2002-06-13 23:41:15 +00:00
tv 76834aef57 Protect __RCSID and __COPYRIGHT from being invoked if not defined. 2002-01-31 19:36:47 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
sommerfeld 64cf1af58d Let src/usr.bin build with recursive parallel make..
- add .WAIT and .NOTPARALLEL in a few places
 - change ${MAKE} print-objdir to ${PRINTOBJDIR}
 - convert other ad-hoc forms to use ${PRINTOBJDIR}
2000-12-30 14:54:39 +00:00
ad b23b64b8ce Use fmt string with printf, from OpenBSD. 2000-07-06 14:30:08 +00:00
thorpej d041b74cf4 Sprinkle in a little const. 2000-06-11 03:38:29 +00:00
mycroft 1c44e76f57 Initialize this->hits. 2000-06-11 03:36:40 +00:00
wrstuden f61cc70c2c Make these files use bsd.hostprog.mk so you can cross-compile tn3270! 1999-07-14 21:36:36 +00:00
itohy bd5b7e1a5d Add minimal dependency to make "make depend" optional
after cleandir even on parallel make.
1999-03-06 16:21:58 +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 457da2d26f remove -Dunix and #ifdef unix where it is only used to select
<strings.h>/b*() instead of <string.h>/mem*().
suggested by <Anders.Hjalmarsson@economics.gu.se>
1998-09-06 02:54:47 +00:00
lukem 211657f5fe -Dunix needed for tools 1998-09-05 11:30:08 +00:00
enami 10a773225e When YYDEBUG is defined, return same value as when it is not defined (in
other words, act same except debugging code).
1998-05-07 05:26:35 +00:00
veego 924ae4ad39 We don't need the extra make for mkhits.
The extra make would build mkhits again if you do a make clean.
1998-04-12 15:30:15 +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
tv 03caac8f9c fix a minor dependency problem on mkmake 1998-04-09 00:27:47 +00:00
tv 121c040638 -Wall: remove extraneous extern 1998-04-07 19:24:38 +00:00
cgd a36b788c3f For the record, (c = *string++) should _NOT_ be turned into
((c = *string++) != '0') when quashing warnings.
1998-04-04 01:02:09 +00:00
thorpej a4bb51f3d2 Fix some type lossage on the Alpha. 1998-03-11 09:00:00 +00:00
enami aaa7acea7c Fix typo; s/TMPFunc.out/TMPfunc.out/ 1998-03-10 09:52:41 +00:00
christos e06bafa12e make mkhits before making depend. 1998-03-10 08:28:21 +00:00
christos 861d065b3a Forgot to commit this one?!?! 1998-03-09 21:34:13 +00:00
christos 384f305f13 Fix a debugging macro 1998-03-06 18:11:53 +00:00
christos 2dbdac9937 - WARNSify
- add missing programs (mkmake, prt3270)
1998-03-04 13:16:04 +00:00
christos a4fe7ad4f6 Move them via repository copy to their own directories. 1998-03-04 13:05:00 +00:00
lukem 453cc6eead usr CPPFLAGS instead of CFLAGS, move common settings into Makefile.inc 1997-10-24 07:52:03 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
cgd 82ed2d9b7d kill uses of gets() 1994-04-10 07:20:35 +00:00
mycroft aee4b07b8a Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 00452e0c62 fixed make depend, and added rcs headers to makefiles 1993-04-27 06:47:28 +00:00
mycroft c013d2a322 The tools have no man pages. 1993-04-26 16:31:58 +00:00
mycroft 7bd7054808 Add tn3270 with correct Makefiles. 1993-04-26 14:02:21 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00