summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.obj.mk
Commit message (Collapse)AuthorAgeFilesLines
* Fix the arguments to [(1) (AKA test(1)). If the string being testedmarkm2000-08-191-1/+1
| | | | | | | by -n is nonexistant, then the following -d was misinterpreted with a strange error. By putting double quotes (") around the argument, we can be sure there is _something_ there that we can check a zero length against.
* The previous delta was wrong; an empty MAKEOBJDIRPREFIX shouldsheldonh2000-08-171-2/+2
| | | | | | | | | | | | cause the working directory to be used. Make it so. When we're more convinced that it'll work, we might try this to avoid a shell invocation: .if defined(MAKEOBJDIRPREFIX) && !empty(MAKEOBJDIRPREFIX) && exists(${CANONICALOBJDIR}/) Reported by: bde
* Do not allow the cleandir target to blow away the entire sourcesheldonh2000-08-161-1/+1
| | | | | | directory when MAKEOBJDIRPREFIX is defined but empty. Reported by: Vernon Schryver <vjs@calcite.rhyolite.com>
* ${MACHINE} -> ${MACHINE_ARCH}marcel1999-11-141-2/+2
| | | | | | | | | | | | | | | | All Makefiles now use MACHINE_ARCH for the target architecture. Unification is required for cross-building. Tags added to: sys/boot/Makefile sys/boot/arc/loader/Makefile sys/kern/Makefile usr.bin/cpp/Makefile usr.bin/gcore/Makefile usr.bin/truss/Makefile usr.bin/gcore/Makefile: fixed typo: MACHINDE -> MACHINE_ARCH
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Restored objlink. The previous commit was confused about the differencebde1999-03-211-1/+11
| | | | between OBJLINK and objlink.
* Bitrot. Remove objlink as it is not pleasant to be downwind.markm1999-03-141-30/+2
| | | | | PR: 8071 Reviewed by: Sheldon Hearn <sheldonh@iafrica.com>
* BINFORMAT -> OBJFORMAT ready for E-day.jb1998-08-301-2/+2
|
* Make the whereobj target print it's output without the overhead ofpeter1998-06-041-2/+2
| | | | | starting another make.. Besides, make -V is broken, since it will print unexpanded variables.
* Only include bsd.dep.mk in `mk'files that handle C sources. Abusebde1998-05-061-1/+24
| | | | | | bsd.obj.mk instead of bsd.dep.mk for defining the _SUBDIR target and a default tags target. Abuse bsd.obj.mk for defining default cleandepend and depend targets.
* Improved comparison of ${DPADD} with ${LDADD} for the checkdpadd target.bde1998-03-141-6/+10
| | | | | | `BINFORMAT=foo make checkdpadd' in /usr/src now reports only 2 false negatives (in libss and init). (BINFORMAT=foo is to turn off better handling of the a.out case.)
* Remove ${CLEANDIRS} in the default clean rule, so that bsd.prog.mk canbde1998-02-251-3/+8
| | | | | | | use the default without losing any (currently unused) features. (CLEANDIRS is only used by for libgmp and libmp via bsd.lib.mk, and only documented everywhere it is supported except of course where it is actually used.)
* Only remove ${CLEANFILES} in the default clean rule. In particular,bde1997-12-191-18/+16
| | | | | | | | | | | | | | | | | | don't remove a.out explicitly. a.out should only be generated for libraries and is removed in the non-default rule in bsd.lib.mk. Removed undocumented cleanfiles target. It was the same as the default clean target except it didn't descend into subdirs. It was different from special clean targets in other ways. This feature hasn't been missed for more important targets. Removed unused default cleandepend target. bsd.dep.mk has a better version which is always used. Use a better rule for checkdpadd in the BINFORMAT=aout case. This mainly checks that ld -f is working correctly. The old rule is still available via `make BINFORMAT=foo checkdpadd' and should be used to check for regressions under 2.2 where ld -f is not available.
* Added trailing slash to ${CANONICALOBJDIR} in tests for directories,bde1997-04-301-7/+7
| | | | so that /usr/obj can be a symlink to an existing directory.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* In the "cleanobj" target, always remove the old-style "${.CURDIR}/obj"jdp1997-02-141-2/+0
| | | | | | | links if they exist. The old-style links confused make and caused problems when upgrading from a 2.1.5 or 2.1.6 system. I will merge this into -2.2.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Don't warn about non-canonical object directories if they have beenbde1996-09-291-15/+20
| | | | | | | | | forced in any of the standard ways (MAKEOBJDIR was lost in the previous commit). Simplified the conditionals for this. Restored comment about MAKEOBJDIR from rev.1.4. Improved English in comments.
* The warning was triggering off the unused variable MAKEOBJDIR, insteadnate1996-09-281-2/+2
| | | | | | of the variable OBJLINK which is used in /etc/make.conf to build 'obj' links in the current directory. This caused lots of useless warnings since if OBJLINK is defined ./obj will be created and used.
* Back out my brackets change, it is definitely make bug, (recentlyache1996-09-241-2/+2
| | | | introduced) because old make version I check do the right job.
* Add brackets to change bogus make expression priority, i.e.ache1996-09-241-2/+2
| | | | | | | | | !defined(X) && $(A) != $(B) parsed as (!defined(X) && $(A)) != $(B) and not as !defined(X) && ($(A) != $(B)) Probably it should be fixed in make
* Added a `checkdpadd' target to help check that ${DPADD} is consistent withbde1996-09-201-1/+13
| | | | ${LDADD}. It doesn't handle internal libraries very well yet.
* Fixed and simplified `whereobj' rule. Use the not-so-new -V feature.bde1996-09-201-10/+2
| | | | Echoing ${.OBJDIR} would work. but -V is more general.
* disable the objwarn warning if NOOBJ is set.. We have quite a few placespeter1996-09-191-3/+5
| | | | | | in the tree that use things like bsd.prog.mk just to get the default targets like install, tags, obj, clean, cleandir, cleandepend, but do not actually build anything there.
* .TARGETOBJDIR has been removed from make and CANONICALOBJDIR set inswallace1996-09-181-23/+43
| | | | | | | | | | bsd.obj.mk. Also, a make target called objwarn checks to see if ${.OBJDIR} != ${.CURDIR} and ${.OBJDIR} != ${CANONICALOBJDIR} and outputs a warning. (No warning for the latter if MAKEOBJDIR or MAKEOBJDIRP REFIX is set). objwarn is called from all targets in bsd.prog.mk, bsd.kmod.mk, and bsd.lib.mk. Reviewed by: bde
* Fixed `make objlink' (and `make obj' in the (non-default) OBJLINK case).bde1996-09-051-3/+5
| | | | | | | | | | | Running them twice usually destroyed the target binary. E.g., the second `make objlink' in `make objlink; make; make objlink' replaced the `cat' binary by a symlink cat@ -> /usr/obj/usr/src/bin/cat. `ln -fs' is unusable when the target might be a symlink that resolves to a directory. Then -f applies to a file in the directory and not to the symlink. This seems to be the standard (and sometimes useful) behaviour.
* Fix the recently added whereobj target.peter1996-07-141-4/+4
| | | | | Add missing end-of-line backslash Remove two extra @ characters
* Add whereobj target to find that pesky obj dirpst1996-07-121-1/+17
|
* Bring in my changes for removing the pestilent obj links (unless youjkh1996-06-241-48/+51
| | | | | really want them) from /usr/src. This is the final version of the patches, incorporating the feedback I've received from -current.
* Add a note that MAKEOBJDIR is an enviroment variablewosch1996-05-271-2/+8
| | | | | and does work proper only if set as enviroment variable, not as global or command line variable.
* New variable NOOBJLINKwosch1996-04-221-9/+46
| | | | | | | | | | | | Create 'obj' directory in current directory instead a symbolic link to the 'obj' tree if defined. [not set] Print a warning if 'obj' tree (/usr/obj) does not exist. Change default 'obj' directory from ``obj.${MACHINE}'' back to ``obj'', unfortunately many Makefiles are wired with the name ``obj''. Add some comments for variables and targets.
* Add targets cleanfiles/clean, cleandirwosch1996-04-091-2/+20
|
* Obtained from: NetBSDwosch1996-03-241-0/+38
"obj" directory stuff work
OpenPOWER on IntegriCloud