053d51348d
* Replace chdir_verify_path() with Main_SetObjdir(), which can be called externally, and can take a "const char *". (There's a lot of non-const "char *" passing around in var.c of what should be const strings....) * Rewrite the initial "find my .OBJDIR" code to make use of the new function. This still functions as it had in the past, but the comment above this block was changed to reflect reality: if MAKEOBJDIRPREFIX or MAKEOBJDIR are set in the environment, then *only that value* is tried; make does not fall back to obj.MACHINE, obj, and /usr/obj/`pwd` as it would without these env vars set. * Add a new special target, .OBJDIR:, which when parsed will cause make to change to a new object directory and reset .OBJDIR, and PWD in the environment. This will allow some makefiles (mainly, src/tools) to override the default objdir semantics in order to add custom logic. |
||
---|---|---|
.. | ||
lst.lib | ||
PSD.doc | ||
arch.c | ||
bit.h | ||
buf.c | ||
buf.h | ||
compat.c | ||
cond.c | ||
config.h | ||
dir.c | ||
dir.h | ||
for.c | ||
hash.c | ||
hash.h | ||
job.c | ||
job.h | ||
list.h | ||
lst.h | ||
main.c | ||
make.1 | ||
make.c | ||
make.h | ||
Makefile | ||
Makefile.boot | ||
nonints.h | ||
parse.c | ||
pathnames.h | ||
sprite.h | ||
str.c | ||
suff.c | ||
targ.c | ||
trace.c | ||
trace.h | ||
util.c | ||
var.c |