mycroft
f5d7100e26
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
...
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
christos
4cd25afac7
Create temporary files carefully, to avoid security problems. Idea borrowed
...
from the botched FreeBSD implementation...
2000-01-19 23:39:37 +00:00
wrstuden
f21e998aad
Add a few little changes needed to get this to compile on IRIX 6.4.
2000-01-06 22:23:20 +00:00
mrg
f22d12ed49
back out rev 1.23 (don't stat PHONY targets). it broken the libcrypto
...
build by causing everything to be remade everytime. this fixes PR#8419.
1999-11-25 22:34:16 +00:00
kristerw
e71aea426d
Typos (from OpenBSD)
1999-11-19 22:29:24 +00:00
msaitoh
0fcbe067c6
s/ the the / the /
1999-10-08 20:13:42 +00:00
kim
6c6c0c0d5c
Make this compile on Solaris...
1999-09-16 19:57:54 +00:00
mycroft
2500a4b975
Some minor cleanup of :: tests.
1999-09-16 00:54:14 +00:00
mycroft
ce14db1fcd
Fix a bug in the previous. In the `compat' case, we don't actually use the
...
list of target nodes returned by Make_ExpandUse(). We have to search the
cohorts explicitly while iterating through the tree. So, tweak CompatMake()
to do this.
1999-09-16 00:49:48 +00:00
sommerfeld
bcb141e5d0
Reuse the Hash_Entry `name' field to store the variable name when we
...
can (i.e., everything except environment variables, which aren't
stored in hash tables).
While we're here, inline the body of VarDelete into Var_Delete since
it's the only caller and it's just simpler that way when v->name can
share storage with the hash entry and may not need to be freed
separately.
Speeds up the infamous libc build benchhmark maybe 1% on PIII, 4% on
alpha pc164
Suggested by Perry Metzger.
1999-09-15 22:51:05 +00:00
mycroft
b12871c6cb
Rework how :: dependencies are handled.
...
Build a list of `cohorts' as before, but do *not* link each one into all the
parent nodes; instead, copy the `cohort' lists into the stream of targets to
be built inside Make_ExpandUse(). Also do the attribute propagation as a
separate pass after parsing.
This eliminates several O(n^2) algorithms.
1999-09-15 10:47:37 +00:00
mycroft
c29ad80902
More cleanup code bites it.
1999-09-15 08:48:17 +00:00
mycroft
dd291116bc
Don't bother iterating through all the data structures to free(3) everything
...
right before exiting.
(The code is still present, `#ifdef CLEANUP', in case someone needs it...)
1999-09-15 08:43:21 +00:00
mycroft
441a442e46
Fix another case where we stat(2)ed .PHONY targets.
1999-09-15 05:56:33 +00:00
mycroft
ff6341a190
Nuke Buf_{G,Ung}etByte{,s}(), since they aren't used, and make BufExpand do
...
power-of-2 allocation.
1999-09-15 04:16:31 +00:00
mycroft
c33b6eca55
Avoid using Lst_Member() in SuffExpandChildren(), by avoiding Lst_ForEach() and
...
passing in the LstNode of the child being inspected. Shaves off another few %,
particularly when there are long child lists containing $ expansions (e.g. in
libc).
1999-09-15 03:59:44 +00:00
mycroft
d2ec8b0e26
Replace the linear variable list in the GNode with a hash table. Gives a
...
small (~10% on my machine) speedup building libc.
Changes by: perry (+ bug fix and minor change by me)
Reviewed by: mycroft sommerfeld
1999-09-15 02:56:34 +00:00
christos
ab01074993
Add :O var modifier, that sorts the words in a variable.
1999-09-12 00:17:50 +00:00
christos
7057287c54
PR/8259: Chris Demetriou: Fix stack overflow bugs exposed by the glibc-2.1.1
...
Makefile. Use snprintf everywhere.
1999-09-04 04:21:28 +00:00
simonb
dcb4cadef7
Don't need strftime() on Ultrix either.
1999-08-27 00:47:25 +00:00
aidan
58f27ba58c
Added .PARSEDIR and .PARSEFILE variables to make(1).
1999-08-09 21:06:28 +00:00
ross
7886a593e3
Back out part of previous, only the parse.c mod was intended.
1999-08-04 16:44:07 +00:00
ross
0728723c31
Trivial speed hack.
1999-08-04 02:54:56 +00:00
hubertf
5674691260
Save the walls, use fly swatters instead of machine guns!
...
(s/sscanf/strtol/, per Christos)
1999-08-02 17:23:58 +00:00
hubertf
a38c426e1c
Detect invalid arguments to -j and -L by using sscanf() instead of atoi().
...
Fixes PR 6743 by Assar Westerlund <assar@sics.se>
1999-08-02 15:23:11 +00:00
hubertf
d5df2197fb
sprite.h is private to make, so #include it with "sprite.h",
...
not <sprite.h>.
Problem reported in PR 4381 bye Soren S. Jorvang <soren@t.dk>
1999-07-29 19:45:32 +00:00
christos
10e7b7f04d
Fix extreme brokeness with job control that appeared when we set USE_PGRP.
1999-07-16 05:38:20 +00:00
thorpej
70b6975a7e
Fix a typo.
1999-07-12 18:22:49 +00:00
thorpej
484fe86089
Correct an inverse initialization of a variable, which caused all .PATHs
...
to be treated as .DOTLAST.
1999-07-12 17:29:32 +00:00
thorpej
5a0addc0ef
Add a mechanism for specifying that ${.CURDIR} will be searched last
...
in the presence of .PATH directives by specifying:
.PATH: .DOTLAST
This will be used to fixup the build system to work with both crypto-us
and crypto-intl sub-trees.
Make(1) changes by Christos Zoulas, after much badgering by me :-)
1999-07-11 02:06:57 +00:00
christos
80d9d7d175
Regular bourne shells don't have the -q option (from Chuck Cranor)
1999-07-06 14:02:56 +00:00
christos
516292d398
apply solaris fixes
1999-06-29 07:44:21 +00:00
christos
eee5bfa70d
Revert previous change. I am a bonehead.
1999-06-06 21:16:23 +00:00
christos
9081585e9b
remove accidentally left debugging code
1999-06-06 20:41:04 +00:00
christos
4d93254198
Allow junk variable to work in non dynamic contexts. Allows as to say things
...
like:
.if defined(COPTS) && !empty(COPTS:M*-g*)
1999-06-06 20:24:02 +00:00
christos
f15f83610f
Fix awful bug where:
...
V := $V foo
V := $V bar
would report that variable V is recursive...
1999-06-02 18:47:11 +00:00
christos
94df9ca047
Define USE_PGRP so that we send signals to our job's process group instead
...
of only pid.
1999-05-03 12:01:14 +00:00
christos
130a3bae01
killpg(pgrp, sig) == kill(-pgrp, sig) in the sysv case.
1999-05-03 09:49:55 +00:00
gwr
4761a8c13b
Uh... should have been ${MACHINE} not hard coded... Duh!
1999-04-03 04:50:16 +00:00
gwr
ae400a2e31
Define CC=gcc -O and add -DMACHINE=...
1999-04-03 04:39:10 +00:00
gwr
0a1b2f4b53
Make regex support conditional on NO_REGEX (was MAKE_BOOTSTRAP)
...
Solaris has a compatible regex, as do many others now...
1999-04-03 04:37:47 +00:00
sommerfe
1be2746ed5
report a sensible error if wait() fails.
1999-03-24 13:19:26 +00:00
christos
8001a619fc
use emalloc() instead of malloc()
1999-03-19 16:11:02 +00:00
erh
fa45851f9b
Add missing .El line.
1999-03-10 05:14:51 +00:00
ross
7f8e818918
Missing .El.
1999-03-09 03:19:28 +00:00
mycroft
a1c657fe56
Clean up SYNOPSIS formatting.
1999-03-07 11:29:58 +00:00
cjs
d5ce180dc0
When giving the -v option to /bin/sh, also give the new -q option so that
...
the execution of $ENV isn't printed with every job that's started.
1999-02-04 00:40:55 +00:00
christos
24eea87b54
Allow system path to be overriden in the Makefile
1998-12-19 17:26:12 +00:00
ross
3eb0afd457
Fix a bug that apparently prevented, since day 1, the .-include / .sinclude
...
feature from ever working. Also, fix the man page that incorrectly described
the syntax of the feature that didn't work.
1998-11-17 23:56:23 +00:00
christos
4f3cc30bcc
This patch fixes the problem introduced in the previous commit where
...
parents would be get remade, even if children were not really updated
by the commands executed for them. It also makes all the children have
the real modification time set if possible, so it should fix some other
timing weirdnesses...
- collapse childMade and make fields into flags and convert them to bits
CHILDMADE and REMAKE
- introduce FORCE flag that gets set in all the parents of a child that
has no sources and does not exist.
- set oodate if the FORCE flag is set, and not if CHILDMADE
- centralize the RECHECK into Make_Recheck() and use this in make.c and compat.c
- use Make_TimeStamp for all child -> parent timestamp propagations
1998-11-11 19:37:06 +00:00