aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.obj.mk
Commit message (Collapse)AuthorAgeFilesLines
* BINFORMAT -> OBJFORMAT ready for E-day.John Birrell1998-08-301-2/+2
| | | | Notes: svn path=/head/; revision=38655
* Make the whereobj target print it's output without the overhead ofPeter Wemm1998-06-041-2/+2
| | | | | | | | starting another make.. Besides, make -V is broken, since it will print unexpanded variables. Notes: svn path=/head/; revision=36641
* Only include bsd.dep.mk in `mk'files that handle C sources. AbuseBruce Evans1998-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. Notes: svn path=/head/; revision=35789
* Improved comparison of ${DPADD} with ${LDADD} for the checkdpadd target.Bruce Evans1998-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.) Notes: svn path=/head/; revision=34576
* Remove ${CLEANDIRS} in the default clean rule, so that bsd.prog.mk canBruce Evans1998-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.) Notes: svn path=/head/; revision=33815
* Only remove ${CLEANFILES} in the default clean rule. In particular,Bruce Evans1997-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. Notes: svn path=/head/; revision=31859
* Added trailing slash to ${CANONICALOBJDIR} in tests for directories,Bruce Evans1997-04-301-7/+7
| | | | | | | so that /usr/obj can be a symlink to an existing directory. Notes: svn path=/head/; revision=25316
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* In the "cleanobj" target, always remove the old-style "${.CURDIR}/obj"John Polstra1997-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. Notes: svn path=/head/; revision=22700
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Don't warn about non-canonical object directories if they have beenBruce Evans1996-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. Notes: svn path=/head/; revision=18566
* The warning was triggering off the unused variable MAKEOBJDIR, insteadNate Williams1996-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. Notes: svn path=/head/; revision=18545
* Back out my brackets change, it is definitely make bug, (recentlyAndrey A. Chernov1996-09-241-2/+2
| | | | | | | introduced) because old make version I check do the right job. Notes: svn path=/head/; revision=18483
* Add brackets to change bogus make expression priority, i.e.Andrey A. Chernov1996-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 Notes: svn path=/head/; revision=18481
* Added a `checkdpadd' target to help check that ${DPADD} is consistent withBruce Evans1996-09-201-1/+13
| | | | | | | ${LDADD}. It doesn't handle internal libraries very well yet. Notes: svn path=/head/; revision=18427
* Fixed and simplified `whereobj' rule. Use the not-so-new -V feature.Bruce Evans1996-09-201-10/+2
| | | | | | | Echoing ${.OBJDIR} would work. but -V is more general. Notes: svn path=/head/; revision=18426
* disable the objwarn warning if NOOBJ is set.. We have quite a few placesPeter Wemm1996-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. Notes: svn path=/head/; revision=18373
* .TARGETOBJDIR has been removed from make and CANONICALOBJDIR set inSteven Wallace1996-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 Notes: svn path=/head/; revision=18340
* Fixed `make objlink' (and `make obj' in the (non-default) OBJLINK case).Bruce Evans1996-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. Notes: svn path=/head/; revision=18051
* Fix the recently added whereobj target.Peter Wemm1996-07-141-4/+4
| | | | | | | | Add missing end-of-line backslash Remove two extra @ characters Notes: svn path=/head/; revision=17168
* Add whereobj target to find that pesky obj dirPaul Traina1996-07-121-1/+17
| | | | Notes: svn path=/head/; revision=17116
* Bring in my changes for removing the pestilent obj links (unless youJordan K. Hubbard1996-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. Notes: svn path=/head/; revision=16663
* Add a note that MAKEOBJDIR is an enviroment variableWolfram Schneider1996-05-271-2/+8
| | | | | | | | and does work proper only if set as enviroment variable, not as global or command line variable. Notes: svn path=/head/; revision=15948
* New variable NOOBJLINKWolfram Schneider1996-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. Notes: svn path=/head/; revision=15353
* Add targets cleanfiles/clean, cleandirWolfram Schneider1996-04-091-2/+20
| | | | Notes: svn path=/head/; revision=15166
* Obtained from: NetBSDWolfram Schneider1996-03-241-0/+38
"obj" directory stuff work Notes: svn path=/head/; revision=14801