wrstuden
922332701f
Make lintlib generation work with PATH'd source. We should pull in the
...
real source, not the implied names, so that we find things we PATH in from
other directories.
1998-10-07 17:49:15 +00:00
tv
4238a1ede6
Back out egcs from i386 and sparc. There are not enough fixes on the egcs
...
1.1 branch to repair the already open PRs on egcs codegen. `For now, I
give up.' Perhaps another day....
1998-10-04 19:46:07 +00:00
christos
8e6800cd97
Missed a few preserve flags.
1998-09-29 11:47:51 +00:00
christos
2a23ffd4df
Use PRESERVE flag only when UPDATE is defined.
1998-09-28 16:43:41 +00:00
christos
ddb60058ff
Use preserve flag in install.
1998-09-28 08:13:37 +00:00
lukem
5e27c18616
don't build/install nls files if NOSHARE defined
1998-09-27 17:16:37 +00:00
lukem
2eadcee825
don't build/install man pages or docs if NOSHARE defined
1998-09-27 16:31:11 +00:00
matthias
393c344918
Take a deep breath and switch over NetBSD/pc532 to use egcs by default.
1998-09-15 20:26:50 +00:00
agc
fd02fc18ca
Remove out of date explanations of <bsd.port.mk> and <bsd.port.subdir.mk>,
...
which are now in the pkgsrc collection as bsd.pkg.mk and bsd.pkg.subdir.mk.
1998-09-15 14:56:37 +00:00
tv
148929222c
Transition sparc platform to egcs.
1998-09-14 21:21:58 +00:00
tv
768b3efab5
Switch i386 to egcs 1.1.
1998-09-14 00:29:28 +00:00
tv
1428a599bf
Rethink the origins of LDSTATIC. Instead, use an option NOLINKLIB, which
...
builds and installs only what is necessary to link and run binaries, when
the library is not externally useable.
- NOPIC: Create and link against a static library.
- PIC: Create, link against, and install a shared object.
- PIC+LDSTATIC: Create and link against a static library; create and
install a shared object.
1998-09-13 23:25:18 +00:00
tv
138f9d4389
Reorganize comments around .m and .c.lo rules
1998-09-13 20:56:38 +00:00
eeh
d90bb7796e
Add some more sparc64 stuff.
1998-09-11 14:52:20 +00:00
ross
08d3e70e4f
Define a LIBBZ2?=... for use in DPADD=... lines.
1998-09-10 00:40:33 +00:00
tsubai
3318a12385
UVM is now standard on macppc.
1998-09-03 15:13:51 +00:00
sakamoto
f36e74b371
UVM is the default on bebox,ofppc.
1998-09-03 01:51:43 +00:00
matthias
bfc51b47d0
UVM/PMAP_NEW are now the standard for the pc532.
1998-09-02 19:25:33 +00:00
mrg
77e8bc0d0f
really turn UVM on on the atari...
1998-09-02 14:28:58 +00:00
mrg
fab7ebb042
UVM is the default on sparc64
1998-09-02 14:12:04 +00:00
thorpej
4e705c4d21
Switch the i386 port to UVM+PMAP_NEW.
1998-08-31 17:55:26 +00:00
tv
16a9e147f7
Create a STRIPPROG definition to specify a (target) strip program. Later,
...
STRIPPROG could be used in preference to "-s" on "install".
1998-08-27 23:26:37 +00:00
tv
e340b4da07
Rename show-objdir to print-objdir to be consistent with existing
...
convention.
1998-08-27 20:33:45 +00:00
tv
22f41e92ef
Add pseudo-target "show-objdir", which will print the value of ${.OBJDIR}
...
and nothing else. Intended target: cleaning up the ugly "echo | make"
constructs to find files from another directory's objdir.
1998-08-27 16:54:59 +00:00
tv
c95c8e1504
Alpha is now egcs by default (now all that's left is as and ld).
1998-08-27 14:05:58 +00:00
tv
4e2285a407
Allow -Werror to be turned off with CWARNFLAGS=-Wno-error ...
1998-08-26 19:36:37 +00:00
tv
eb6956eecf
Introduce CWARNFLAGS, idea from kernel Makefiles, which goes after "-Wall
...
..." in the CFLAGS and can be set in directory Makefile or mk.conf.
1998-08-25 14:57:21 +00:00
tv
450705382c
Back out previous. -Wuninitialized is disabled in the latest egcs
...
sources, and -Wno-format-y2k is inserted into the proper Makefiles only
(as this is likely to become a permanent option).
1998-08-25 12:04:59 +00:00
ross
57b46db5d1
Add -Wno-uninitialized -Wno-format-y2k, with an attached XXX
1998-08-25 07:46:23 +00:00
tv
aefeb9110b
Fix the .c.a brokenness with libbfd the "right" way - nuke everything but
...
*o from .ALLSRC.
1998-08-22 18:59:40 +00:00
tv
82561cf391
Kill spaces in the $$files check introduced by borrowing the C++ rule for
...
ObjC.
1998-08-18 19:12:42 +00:00
tv
da32b76d1f
Add dependency rule for Objective-C files.
1998-08-18 17:31:21 +00:00
tv
cf98a967de
"oops": .c.lo rule missed the "-o ${.TARGET}".
1998-08-17 00:03:32 +00:00
tv
b32ba95d4e
Add .c.lo, .l.lo, and .y.lo rules for automatic use of ${HOST_COMPILE.c}.
1998-08-16 23:55:04 +00:00
lukem
24bd0530c9
add distclean as a synonym for cleandir
1998-08-09 14:46:19 +00:00
frueauf
ba61dd0d54
SYS_INCLUDE=symlinks should not be enabled by default. I guess it was done
...
by accident.
1998-08-07 20:31:56 +00:00
ragge
f6fd0956f2
Put in that vax uses PMAP_NEW as default.
1998-08-04 19:21:26 +00:00
mycroft
7b36bd4442
If AUDIT is defined, compile with -D__AUDIT__.
1998-07-27 13:16:52 +00:00
tv
aaafdd394a
- Add MACHINE_GNU_ARCH entries for mipseb and mipsel. Temporarily remap
...
mips to mipsel.
- Remove the unused definition of NOSHLIB for powerpc. NOPIC is being
used for this purpose.
1998-07-27 00:58:05 +00:00
perry
f0ba699cac
Remove obsolete note that NOLINT is set by default.
1998-07-22 18:22:35 +00:00
perry
9ae8946508
Get rid of NONOLINT, and unset NOLINT. We now build lint libraries by default.
1998-07-22 18:21:39 +00:00
mark
b5eb8eb72c
Define NONOLINT for arm32.
1998-06-27 20:56:49 +00:00
cgd
2125120c77
add bsd.kinc.mk, a template to support the new kernel include file
...
installation mechanism.
1998-06-12 23:28:53 +00:00
agc
67d4dd8792
Delete (duplicate) setting of UVM if the MACHINE_ARCH is "sparc" - this
...
is done earlier in the file, with the other platforms on which it's
standard.
1998-05-29 10:15:17 +00:00
tv
caf92c9d92
SPARC was missing from the list of GNU_ARCHs.
1998-05-25 23:40:22 +00:00
tv
cff69f3322
Add the ability to map a MACHINE_ARCH to a GNU architecture name:
...
- ${GNU_ARCH.${TARGET_ARCH}} will produce a target architecture name in
mainline sources
- ${MACHINE_GNU_ARCH} is equivalent to ${GNU_ARCH.${MACHINE_ARCH}}
1998-05-22 16:43:42 +00:00
tv
bace91cb64
Apply same .c.a workaround from alpha to arm32
1998-05-22 13:52:52 +00:00
simonb
6126819df6
Fix typo (s/OBJECT_FMAT/OBJECT_FMT/)
1998-05-13 13:58:00 +00:00
thorpej
bcaf433561
If DESTDIR is set, tell lint to use "-d ${DESTDIR}/usr/include" (the equiv.
...
of "-nostdinc -idirafter ${DESTDIR}/usr/include". Fixes PR #5399 .
1998-05-11 22:12:59 +00:00
kleink
bfdeed0774
Set NONOLINT on sparc.
1998-05-10 14:58:09 +00:00
tv
0c1cd4f4bc
Fix definition for SRCS: "If PROG is not defined" -> "If SRCS is not
...
defined" as noticed by prlw1@cam.ac.uk
1998-05-05 17:15:05 +00:00
mrg
445283dc37
make UVM the default on the sparc
1998-05-05 01:15:05 +00:00
thorpej
d1abd27c70
Make UVM standard procedure on hp300, mac68k (per scottr), and mvme68k.
1998-05-04 05:03:52 +00:00
thorpej
dae01890b2
Add a mechanism for specifying which platforms use UVM and which use
...
PMAP_NEW, and enable both for NetBSD/alpha.
1998-05-04 04:37:33 +00:00
ross
62a5b4b89c
English.
1998-05-03 16:39:45 +00:00
christos
62017450ca
fix lint library rule bug; use ${.ALLSRC} as suggested.
1998-05-02 15:19:04 +00:00
tv
8ab6713503
Fix symlinks creation in the build directory: create the symlinks there,
...
not in ${DESTDIR}.
1998-04-17 13:34:55 +00:00
tv
aea014c22a
Braindead pmake conditionals.
1998-04-15 12:07:10 +00:00
tv
820dd24a68
Create the ELF symbolic links in the build tree, too. Needed for libamu
...
and egcs libcc1 to make sure linking is done against the correct shared
object.
1998-04-15 02:39:53 +00:00
tv
7484409ac2
Compare ${LDSTATIC} against ""; don't check for definition. Make this
...
DTRT on setups with a global setting of LDSTATIC= (nothing)
1998-04-15 01:38:27 +00:00
agc
001ce9107b
Move bsd.port.mk and bsd.port.subdir.mk into pkgsrc/mk (by CVS
...
repository copy), which is a much better place for them. Update the
Makefile to reflect these changes.
1998-04-14 07:56:56 +00:00
lukem
2dbeb85dde
only read /etc/mk.conf once (stops += variables getting double assignments)
1998-04-13 12:03:07 +00:00
tv
c97729d6b8
Also build a static library regardless of NOSTATICLIB if LDSTATIC is
...
defined. In situations where a "private library" is being built, a static
library is needed to link binaries statically (LDSTATIC=-static).
1998-04-12 21:22:20 +00:00
fair
2e28a338e3
a link installation performance optimization: only fire off "ln -f", not "rm -f; ln" for each link created
1998-04-09 22:08:36 +00:00
hubertf
271a6b74a8
Don't creade dirs mode 444, inspired by fvdl's last commit.
1998-04-09 12:47:02 +00:00
tv
854cea27cc
New flag, NOSTATICLIB, prevents build and install of the standard static
...
library unless NOPIC is set.
1998-04-09 00:51:06 +00:00
tv
3b468e7a9b
The C++ compiler is "c++", not "g++"; that is more compatible with non-GCC
...
based C++ compilers.
1998-04-09 00:45:10 +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
fvdl
1c1df51751
INSTALL_DATA_DIR should not install directories with mode 444
1998-04-08 22:27:41 +00:00
agc
80bf789853
Correct a definition name in a comment.
1998-04-03 09:56:00 +00:00
enami
6e80cfe67f
Test target __initialized__ instead of .MAIN to see if inclusion
...
of ../Makefile.inc is necessary.
1998-04-03 04:40:42 +00:00
tv
875f72aa79
Revert. This broke too much in the build tree, and a better solution
...
needs to be created. (The existing situation breaks a lot too.)
1998-04-01 16:58:33 +00:00
tv
755c261508
Fix .y rules to DTRT with possibly generated .h files. See mail on
...
tech-toolchain for a very detailed explanation of this. In short, add
a .y.h rule identical to the .y.c rule and make the .y.c rule rename
the .h file; also, clean the .h file in CLEANFILES.
1998-04-01 15:23:36 +00:00
cgd
c0ac8bae67
GC alpha's ECOFF_TOOLCHAIN make variable, and related bits. Nobody
...
should be using an ECOFF toolchain on NetBSD/alpha any more.
1998-03-28 00:50:41 +00:00
tron
4388c70018
Add "ftp.uni-paderborn.de" and "ftp.x.org" to "${MASTER_SITE_XCONTRIB}".
1998-03-24 10:27:44 +00:00
hubertf
12ef5de7af
Document ALL_TARGET and INSTALL_TARGET, as per PR 5186.
1998-03-23 07:42:50 +00:00
agc
b34c2c6ed2
Temporarily revert to using GNU tar, until pax is bug-compatible with
...
gtar. pax has problems extracting certain archives which were made by
gtar and contain trailing trash at the end - gtar ignores this dross,
pax thinks it's valid, and prompts for the second volume.
1998-03-09 18:36:51 +00:00
hubertf
e7625fb46f
Make definition of OBJMACHINE in mk.conf work.
1998-03-08 14:55:04 +00:00
frueauf
bc2108c741
Introduce "Arch:" field in INDEX to handle the ONLY_FOR_ARCHS case better.
1998-03-08 14:25:52 +00:00
hubertf
44cef8723d
Add INSTALL_*_DIR macros.
1998-03-07 21:19:00 +00:00
jonathan
6fbfecba04
Use the new binutils-compatible ld commandline syntax to build
...
shared-library .so files on both ELf and a.out platforms.
1998-03-07 02:02:58 +00:00
tron
3b568e620a
MANZ now handles symlinks properly.
1998-03-01 13:38:03 +00:00
hubertf
6aa991c6a1
Cleanup fetch-list change reported by Bernd Ernesti..
1998-02-28 16:02:21 +00:00
tron
10c0ddaf25
Fix merge problem with last commit.
1998-02-28 10:39:19 +00:00
tron
e97ed99680
Fix problem with registering foreign language manual pages.
1998-02-28 10:14:41 +00:00
agc
4c570e1c28
Patches from Matthew Green to use pax if it's present, in preference
...
to tar.
1998-02-27 13:22:59 +00:00
lukem
a771a1c39a
change default ownership from bin:bin to root:wheel
1998-02-26 08:46:09 +00:00
perry
5e2ed85c88
set NONOLINT on i386. Other ports on which building with lint is okay should
...
be added to this list until we get all ports okay.
1998-02-25 18:30:11 +00:00
jonathan
5e0e8cec39
More table-driven changes for different toolchains:
...
* new bsd.own.mk variable OBJECT_FMT with values "a.out" or "ELF".
* use OBJECT_FMT in Makefile tests that depend on toolchain.
* Add new bsd.own.mk variable NOSHLIB that, if set indicates a given
port doesnt yet do shared libraries. Set on powerpc.
* Document new feature-test variables in src/share/mk/bsd.README.
Tested on i386, mips, fakedup Alpha environment.
1998-02-23 10:09:31 +00:00
hubertf
4abf2e5151
Enhance look & feel of the generated README.html's.
1998-02-20 22:06:18 +00:00
hubertf
289e97d3a8
Recursively print /bin/sh code for all dependent package as well as the
...
current package (IF called from a package dir and not via bsd.port.subdir.mk;
in the latter case it's assumed that the dependent packages will be scanned
later anyways).
This fixes PR 4992 by Mario Kemper <magick@bundy.lip.owl.de>.
1998-02-20 21:31:20 +00:00
hubertf
34f7405909
Kill line forgotten during PATH extension (in MAKE_ENV).
1998-02-20 21:01:09 +00:00
jonathan
b947725fbb
Fix dyslexic typo.
1998-02-18 08:14:31 +00:00
jonathan
4cbc9ecd8e
Make bsd.lib.mk rules to build ELF vs a.out shlibs more table-driven.
...
No more .if in solib link rule.
1998-02-18 03:14:31 +00:00
agc
3fde44b046
Add a deinstall target, so that packages can be removed easily.
...
This implementation was taken from FreeBSD.
1998-02-17 15:07:02 +00:00
thorpej
4d8ed30c33
Make the .N.catN rules depend on the troff macros used in manpage builds.
1998-02-15 01:07:46 +00:00
agc
31ff3c7ebb
When generating the PLIST, if a manual page name has to have .gz added
...
or removed using sed, don't add the g at the end of the substitution
expression - there will only be one substitution per line.
1998-02-13 15:16:43 +00:00
hubertf
450b3dd272
Fix PR 4884 by replacing STRIP with STRIPFLAG.
...
This addes yet another step towards bsd.pkg.mk. :)
1998-02-09 00:47:23 +00:00
mikel
d317b4789d
STRIP -> STRIPFLAG; from Jim Bernard in PR pkg/4884
1998-02-04 07:08:56 +00:00
hubertf
3089cbdaf0
Introduce TRUE?=/usr/bin/true, and use it.
1998-02-02 08:11:49 +00:00
agc
0e1796ddf0
Echo the directory name when doing a "make readme", so that progress
...
can be monitored.
1998-01-30 14:33:48 +00:00
agc
0ecdcb24d1
Remove the requirement that a LIB_DEPENDS name must have any '.'
...
characters escaped with a backslash, but recognise the backslashes for
backwards compatibility. When matching names, do any escaping of
the regexp '.' metacharacter automatically, if needed.
When a shared object dependency is printed out, use a form that does
not have the backslashes in it, for readability.
Print out the full pathname of the matching shared object, for clarity.
1998-01-30 13:53:53 +00:00
hubertf
f3234b8314
Replace "<$ARCH"> by "${MACHINE_ARCH}", keep "<$ARCH>"
...
(in bsd.port.mk) for backward compatibility.
1998-01-28 15:36:31 +00:00
hubertf
0c86a9c11e
add mirror-distfiles target also here
1998-01-27 23:04:48 +00:00
agc
66d0028ab9
Rename the `mirror' target to be `mirror-distfiles'. This describes
...
the action better, and works around problems with the mirror package.
Document the mirror-distfiles target, and also the readme target.
1998-01-27 13:14:07 +00:00
hubertf
e134d92e49
use __ARCH_OK=yes and NO_IGNORE=yes at the mirror-target to get ALL distfiles
1998-01-25 14:50:47 +00:00
hubertf
3f9baf7ddc
Re-move .if!defined(__ARCH_OK) to fix use of NO_IGNORE; document some .endif's
1998-01-25 14:46:10 +00:00
hubertf
af94a7e9dc
MAINTAINER = packages@NetBSD.ORG
1998-01-25 14:39:49 +00:00
hubertf
8e4b1a4ffe
From OpenBSD's bsd.port.mk rlog (Mmm, AnonCVS :-):
...
revision 1.21
date: 1997/12/20 01:26:57; author: joey; state: Exp; lines: +2 -2
openbsd maintainer changed from imp to me
1998-01-24 23:06:33 +00:00
hubertf
6c7a7eefde
Echo "" instead of nothing in CKSUMFILES computation..
...
Fixes PR 4877 by Manuel Bouyer <bouyer@antioche.lip6.fr>
1998-01-23 16:48:23 +00:00
agc
bf08ec7da8
In the shell script to find an executable upon which this package
...
depends, break out of the loop when you find one. Also print the name
of the executable found.
1998-01-23 09:47:57 +00:00
agc
01906e318c
Ignore the return code from rm when removing the ${WRKDIR} symbolic
...
link, when doing a "make clean" with WRKOBJDIR defined. From Thorsten
Frueauf.
1998-01-22 11:27:54 +00:00
agc
4872d27a15
Add a MIRROR_DISTFILE variable; defaults to "yes", and should be set
...
to "no" in a package's Makefile when the authors have placed
restrictions on the redistribution of the distfiles. (Thanks to Jason
Thorpe for the idea).
Add a `mirror' target, which will do a "make fetch" if the package's
distfile is allowed to be redistributed. This is for use on sites
which mirror package distfiles. (Thanks to Charles Hannum for the
idea).
1998-01-22 10:20:48 +00:00
hubertf
87feef5fe5
Fix comment for FETCH_CMD wrt non-NetBSD-systems
1998-01-16 09:07:46 +00:00
hubertf
e3f9002156
- Our default for FETCH_CMD is ftp, not fetch.
...
- Document NO_IGNORE, __ARCH_OK
- Make __ARCH_OK overridable, so it can be set to YES e.g. for fetching
all distfiles.
- Move ".ifndef(__ARCH_OK): block, so some targets like clean work
in any case.
- Add LOCALBASE and X11BASE to PATH in MAKE_ENV, CONFIGURE_ENV and
SCRIPT_ENV; this fixes PR 4573
1998-01-15 22:58:59 +00:00
agc
5e87acd0dd
Move the inclusion of bsd.own.mk back to the correct place in
...
bsd.port.mk, but this time use a definition before the inclusion,
which stops <bsd.own.mk> defining its own install target when
using the package system.
This makes the package system take notice of the definitions in
/etc/mk.conf
1998-01-15 09:37:25 +00:00
agc
9ef77631e3
Add lines so that "make readme" in the top level pkgsrc directory, or
...
one if the categories directories, will call "make readme" in
any subdirectories.
I thought that this was suggested by Chris Demetriou, but I can't find
any PR backing this up. So my apologies to the person who did suggest
this.
1998-01-08 10:59:47 +00:00
hubertf
73ddeb3490
Add us to MASTER_SITE_LOCAL.
1997-12-29 20:10:24 +00:00
hubertf
b3d8f46800
MACHINE_ARCH of pmax is "mips"
1997-12-27 03:24:10 +00:00
cgd
70fa7e3060
kill a couple of (insignificant but) bogus extra spaces
1997-12-24 05:15:54 +00:00
christos
ac30d893d8
Add bsd.obj.mk and fix the rules to work with obj dirs.
1997-12-21 15:40:37 +00:00
hubertf
6e5296d50f
Fix up documentation (MASTER_SITE_SUBDIR, PATCH_SITE_SUBDIR,
...
MASTER_SITE_BACKUP).
1997-12-21 01:59:44 +00:00
hubertf
320012817f
Now that we have ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles,
...
add it to MASTER_SITE_BACKUP.
1997-12-19 10:20:02 +00:00
hubertf
b747ec162b
- move definition of ARCH and OPSYS so it is even available if
...
ONLY_FOR_ARCHS is set
- Usage points to PLIST_SRC
1997-12-13 21:28:24 +00:00
hubertf
67a5e86031
do not depend on gmake being called gmake (pointed out by Matt Green)
1997-12-03 08:32:01 +00:00
mikel
a206ea679a
add missing 'man' so unformatted manpage installation will work when
...
target exists; solution provided by christos
1997-12-02 08:42:28 +00:00
agc
53596376fe
Fix missing backslash when gzipping manual pages.
...
If we're going to go to the bother of defining LDCONFIG, we might as
well use it.
1997-11-26 09:24:18 +00:00
hubertf
6b7391ff96
We use perl 5.004_04 now
1997-11-22 04:20:49 +00:00
hubertf
31316d681a
Use MI/MD PLIST files pkg/PLIST-{mi,md-{shared,static}}
1997-11-22 03:39:20 +00:00
agc
2998c94db0
Remove the magic control characters in a similar way to Bill Fenner's
...
patch for bsd.port.subdir.mk.
1997-11-21 17:44:11 +00:00
agc
92ed0869d5
Modification by Bill Fenner which removes the embedded control
...
characters, and avoids the wrong interpretation of magic HTML
characters in DESCR files or categories.
Forwarded to me by Chris Demetriou, and refers to PR 4341.
1997-11-21 16:01:54 +00:00
agc
16b3bf5830
Eliminate a nasty and horrible kluge by using the BSD.x11.dist when
...
checking the directory tree for an X11 package.
1997-11-19 16:41:21 +00:00
thorpej
f72895d295
Echo the target we're working on while traversing subdirs, so one can
...
better judge how much longer a build will take. Patch submitted
by Brian Grayson <bgrayson@ece.utexas.edu> in PR #4419 .
1997-11-13 09:18:19 +00:00
hubertf
3c59683dc1
Remove unneeded RCS Id
1997-11-10 08:07:29 +00:00
hubertf
11f07e2683
- Not only add $CAT[1-9] to _CATLIST, but also $CAT[NL}
...
- Fixup documentation for CAT<sect>, CATPREFIX.
(these two changes were accidentally committed to the 1.3 branch
as revisions 1.13.2.3 and 1.13.2.4 before!)
1997-11-08 00:18:24 +00:00
agc
d8ac6639ac
Let make do the work:
...
+ set MAKE_PROGRAM variable in bsd.port.mk to either ${GMAKE} or
${MAKE}, and use it in do-build and do-install targets
+ if X11 package, and man pages are installed, add install.man to
${INSTALL_TARGET}, rather than using a separate command to do this.
Also added CATn= blah.0, similar to MANn= blah.1, which installs
pre-formatted man pages, like the ones imake produces.
1997-11-05 13:36:30 +00:00
thorpej
42b5acd98e
Fix .c.ln rule: use CPPFLAGS, not CFLAGS.
1997-11-05 05:34:24 +00:00
gwr
5c8e26aed2
Move definitions of: NM, LORDER, TSORT from bsd.sys.mk to sys.mk
...
so they are more easly used by things like sys/libkern/Makefile.inc
(Besides, all the other tool definitions are in sys.mk)
1997-11-04 21:12:41 +00:00
gwr
0919e2346b
Use LORDER, TSORT
1997-11-04 20:33:11 +00:00
gwr
dff2b93f7d
Define LORDER, TSORT
1997-11-04 20:31:56 +00:00
cgd
87d5df18e3
add '-z' to LINTFLAGS, so that forward structure definions (for pointer
...
args, etc.), don't cause warnings if the structure isn't ever completely
defined.
1997-11-03 22:56:27 +00:00
cgd
3e16a4f314
if "NONOLINT" is defined, don't automatically define NOLINT. "yuck."
...
Once lint support is completely working, NOLINT's definition should be
removed from this file entirely.
1997-11-03 22:53:25 +00:00
cgd
d74926452e
echo the lint command line when making 'lint'.
1997-11-03 22:51:23 +00:00
mrg
b7a9acd4a5
set all: target for defined(NOMAN) that does nothing.
1997-10-30 12:57:19 +00:00
lukem
513a06e6f5
remove lint rules for objective c as lint can't cope
1997-10-30 07:25:32 +00:00
agc
c72a8fd6be
When a package depends on an executable from another package,
...
bsd.port.mk would always find the executable (using which), even if
there wasn't an executable in the $PATH. I've modified bsd.port.mk to
look for the executable directly, and simplified the shell code
somewhat in the process. There may be a lurking bug in shell exit
status handling here.
Noted by matthew green <mrg@madrugada.eterna.com.au> and Chris
Demetriou <cgd@netbsd.org> (PR pkg/4337) but I was too stupid to
realise what was happening. That, and a copy of gmake in
/usr/local/bin.
1997-10-28 12:46:37 +00:00
lukem
6f77030130
add ${LIBOBJC}
1997-10-28 12:46:30 +00:00
lukem
55209d604d
add default rules for Objective C sources (`.m' suffix):
...
- sys.mk:
add ${OBJC} and ${OBJCFLAGS} (equivalent to ${CC} and
${CFLAGS} respectively), and ${COMPILE.m} and ${LINK.m} rules
- bsd.sys.mk:
add .m, .m.o, and .m.ln rules (as per the C rules in sys.mk).
it's here, rather than in sys.mk, because `.m' isn't
exclusively used for Objective C files.
- bsd.lib.mk:
add .m.o, .m.po, .m.so, and .m.ln rules (as per C)
1997-10-28 12:40:16 +00:00
drochner
978c73b8c6
Fix the before/after-install ordering problem in a different way.
...
The old fix broke with multiple targets on the make command line.
1997-10-27 19:41:05 +00:00
drochner
86bc651566
Force "beforeinstall" and "afterinstall" to be executed before/after
...
"install". (pr misc/4319)
1997-10-23 12:44:28 +00:00
hubertf
cfc838616e
- don't clean out dependent packages (requested by thorpej)
...
- actually document the feature used above (NOCLEANDEPENDS)
- put pkg/MESSAGE file into /var/db/pkg/XXX/+DISPLAY, if
present (from FreeBSD)
1997-10-18 23:33:25 +00:00
thorpej
4cfd0c8e5c
Make sure the ${PREFIX} directory exists before invoking mtree.
1997-10-17 01:40:49 +00:00
mikel
d76d14e5e5
add -Wpointer-arith to flags enabled by WARNS
1997-10-12 01:37:50 +00:00
mycroft
ef2bc499bd
Don't include bsd.obj.mk in these two files.
1997-10-11 08:43:34 +00:00
mycroft
1e9e92665f
Several changes:
...
* Allow bsd.man.mk to be included separately.
* Always include bsd.own.mk and bsd.obj.mk.
* Include bsd.man.mk and bsd.nls.mk even if NOMAN or NONLS; just turn off
building of the affected files instead.
* Require bsd.subdir.mk to be included explicitly.
(Will make appropriate changes to Makefiles shortly.)
1997-10-11 08:16:24 +00:00
mycroft
b7362c7c30
Move the previous to a different place, because `.if !target(...' sucks.
1997-10-11 07:26:53 +00:00
mycroft
6bb70fa48b
As the comment says:
...
Make sure all of the standard targets are defined, even if they do nothing.
Also, add a .PHONY for regress.
1997-10-11 07:14:57 +00:00
mycroft
430cf95918
Massively simplify this. Partly from David Holland in PR 3823.
1997-10-10 09:12:28 +00:00
agc
faf7739143
s/sed/${SED}/g
...
Change <$ARCH> into bsd.port.mk's ${ARCH} value (uname -m) when
constructing the derived PLIST, so that we can use packages on
non-i386 NetBSD architectures and have the correct file names in the
installed inventory.
1997-10-09 10:38:13 +00:00
mycroft
d39697696f
Put the `-nostdinc -idirafter ...' in CPPFLAGS, not CFLAGS.
1997-10-08 13:17:00 +00:00
hubertf
e6d2b60658
Be correct about manpage compression by regarding MANZ and fixing
...
PLIST before applying.
It is assumed that ports do install manpages uncompressed, if not
they have to set MANCOMPRESSED. Upon that, the pages will be
(un)compressed according to the setting of MANZ.
1997-10-07 00:30:31 +00:00
mycroft
448f02237b
Install man page source, in addition to the cat files.
1997-10-03 19:20:56 +00:00
agc
0f091effee
+ Move inclusion of bsd.own.mk to the end of bsd.port.mk.
...
<bsd.own.mk> defines its own `install' target if none is defined,
which conflicts with the default one we define later on in bsd.port.mk.
This may nuke any WRKOBJDIR definitions (which I have yet to encounter),
but enables "make install" to work as expected.
+ Add temporary mtree file for any X11 packages (like xpm, jpeg etc),
which require a default X11 tree. This will change when we get a NetBSD
x11.dist mtree file.
+ Define SHAREOWN, SHAREGRP and SHAREMODE (in NetBSD) to be the same as
DOCOWN, DOCGRP and DOCMODE respectively.
1997-10-03 09:16:15 +00:00
hubertf
45d4babcbd
MACHINE -> MACHINE_ARCH, as pointed out by thorpej.
...
(Changed in ARCH_ONLY stuff as well as WRKDIR definition)
1997-10-01 23:38:34 +00:00
hubertf
f6a5b0843d
/usr/pkg/src -> /usr/pkgsrc
1997-09-30 23:16:03 +00:00
is
ce5ef83f97
Make "make regress" work; by Charles Hannum.
1997-09-30 22:19:22 +00:00
gwr
42a70b47e1
Add $LIBBFD
1997-09-29 15:02:49 +00:00
hubertf
8f15104e92
- Move around .include <bsd.own.mk> so PORTSDIR gets set propperly
...
- make 'make clean' DTRT when WRKOBJDIR is set
1997-09-28 11:22:40 +00:00
hubertf
049546f7dd
Forgot to include <bsd.own.mk> in last commit
...
(from OpenBSD)
1997-09-28 00:56:00 +00:00
hubertf
114a47faf1
- Add OpenBSD and FreeBSD Ids in the header
...
- Changes from FreeBSD's V1.164:
* Warn if mtree-file not found
* On 'make reinstall' gets DEPENDS_TARGET set
to 'reinstall' instead of 'install'
- Changes from OpenBSD's V1.14:
* Documentation and implementation for ONLY_FOR_ARCHS
* Documentation and implementation for WRKOBJDIR
* Documentation on HAVE_MOTIF and MOTIF_STATIC:
set in /etc/mk.conf, not /etc/make.conf
* Set NOMANCOMPRESS=no to still compress man-pages
(should probably be set to 'yes')
* DEF_UMASK=022
* add ${MACHINE} suffix to WRKDIR if OBJMACHINE is set
* .include <bsd.own.mk>
1997-09-28 00:44:15 +00:00
christos
a1e04f77a8
PR/4146: Erik Bertelsen: WARNS was not unsettable in Makefiles
1997-09-26 13:24:03 +00:00
thorpej
e64c0d533b
/usr/pkg/src -> /usr/pkgsrc (per discussion w/ agc)
1997-09-25 19:09:32 +00:00
agc
f553f4c292
Install bsd.port.mk and bsd.port.subdir.mk.
...
This is part of the FreeBSD ports system.
1997-09-09 10:33:19 +00:00
agc
0ee4409cbe
Don't assume we're on NetBSD when setting LOCALBASE i.e.
...
test the OSNAME first.
Change the name of the mtree file to match NetBSD's.
1997-08-20 16:02:48 +00:00
agc
5d9fc2b5dd
Document the import of FreeBSD's <bsd.port.mk> and <bsd.port.subdir.mk>,
...
as used in their `ports' system.
1997-08-20 10:53:04 +00:00
agc
3709f02cd5
Change a path for NetBSD. Our PORTSDIR is /usr/pkg/src
1997-08-20 10:51:40 +00:00
agc
4a7d7317e2
Change paths for NetBSD. We have our PORTSDIR at /usr/pkg/src,
...
and our PREFIX is /usr/pkg.
1997-08-20 10:50:26 +00:00
agc
a1ac59e36e
Initial import of FreeBSD's ports makefiles.
1997-08-20 10:21:05 +00:00
christos
cd59f75df4
Enable extra warnings if WARNS is set
1997-07-01 21:42:55 +00:00
phil
69edc948f4
Some man pages need tbl to make their man page. This adds support for
...
tbl in building man pages. If the variable USETBL is defined, the
rules for making the man pages include tbl before nroff.
This supports at least 3 man pages in the tree.
(Related to PR 3144.)
1997-06-30 19:26:21 +00:00
christos
14b5e8dbc9
PR/3801: NAKAJIMA Yoshihiro: some documents are installed as executable
1997-06-28 01:22:59 +00:00
pk
19d4236655
Put `-DPIC' back in CPICFLAGS (a.out section); at least one C source
...
file (sparc/include/profile.h) relies on this.
1997-06-04 08:38:45 +00:00
cgd
521240796e
declare ${DESTDIR}${INCSDIR}/$I .PHONY if UPDATE isn't defined, so that
...
headers will be installed properly in the !UPDATE case. From Christos.
1997-06-03 16:00:30 +00:00
cjs
7a66732d34
Back out BUILDDIR and NOINSTALL changes.
1997-05-31 21:21:13 +00:00
cjs
54084592c2
Set or unset OBJDIR before we determine BUILDDIR.
1997-05-30 21:46:02 +00:00
cjs
ab09e2a45e
Fix quoting yet again; reformat.
1997-05-30 15:11:03 +00:00
cjs
a71bce3f88
Don't add MACHINE to BUILDDIR if it's already added to BSDOBJDIR.
1997-05-30 05:50:16 +00:00
cjs
c6a0de99f8
Add NOINSTALL option for libraries that are used only during the build
...
of a program, and not installed into the final system.
1997-05-30 01:54:42 +00:00
cjs
1cb525c1e0
Quote it properly this time.
1997-05-29 19:53:32 +00:00
cjs
2707a099a6
Forgot to quote a variable.
1997-05-29 19:35:23 +00:00
cjs
68d423f17b
If BUILDDIR is the same as DESTDIR, we aren't really using an object
...
file tree, so undef OBJDIR and install includes, etc. the old way.
Also, don't use OBJDIR at all if we're not under BSDSRCDIR.
1997-05-29 19:06:26 +00:00
veego
933397a44f
Fix pr#3679 a little different.
...
Remove the '-nostdlib' flag for ELF systems and keep it for a.out systems.
1997-05-29 15:37:11 +00:00
mikel
5817cfa122
fix typo
1997-05-29 06:26:35 +00:00
cjs
bda4c93e92
Append ${MACHINE} to ${BUILDDIR} if USR_OBJMACHINE is not set.
1997-05-28 23:52:37 +00:00
veego
2fbf728651
Add '-nostdlib -L${BUILDDIR}/usr/lib' for ${LDADD} so it links a shared
...
library with the correct shared library.
1997-05-28 11:16:19 +00:00
mycroft
d5e3cfc07a
Add a missing / in SHLIB_LD*FILE.
1997-05-27 18:51:12 +00:00
cjs
058d54e069
Always look in usr/lib for crtbegin/crtend; LIBDIR is the destination
...
directory of the library we're currently compiling.
1997-05-27 18:21:16 +00:00
cjs
b73b99ed41
Put include information in CPPFLAGS only (not in CFLAGS or MKDEPFLAGS).
...
Add note that CPPFLAGS is (or should be) passed to all programs that
pass input through cpp.
1997-05-27 18:09:00 +00:00
cjs
2fc3406301
Re-add other folks' changes that I accidently reverted when I did my
...
build system changes commit.
1997-05-27 17:45:57 +00:00
cjs
f66891a189
Make sure mkdep gets correct include directories.
1997-05-27 17:01:56 +00:00
pk
9e91a31967
Remove bogon.
1997-05-26 20:53:28 +00:00
cjs
b3b931acf8
Patch for yesterday's batch of `new build system' commits that I forgot
...
to commit.
1997-05-26 16:36:41 +00:00
cjs
5fd7ce7066
These updates to the build allow building against include files
...
and libs in the object tree, if you use a separate object tree,
while maintaining backward compatability with other build methods.
See the notes in src/share/mk/bsd.README for full details. Note
that the `make includes' target now only installs the include files
in the build directory (if you use one--otherwise they go in DESTDIR
just like before); `make install' will install include files in
DESTDIR.
1997-05-26 03:55:19 +00:00
jonathan
346af6eeff
More table-driven changes: split CPICFLAGS into separate flags, to
...
support the two different incompatible rules for build .so files from
.S source on both NetBSD and binutils toolchains:
${CPP} | ${AS} for syscalls
${CC} for non-syscalls
for which the different toolchains's ${AS} requires diffferent flags.
1997-05-24 01:42:36 +00:00
kleink
4c60ea6dc2
Add libposix.
1997-05-18 20:21:53 +00:00
christos
67c5f6f8ee
Add a realinstall target so that we recurse to subdirectories making install,
...
before the our afterinstall target fires.
1997-05-17 16:59:28 +00:00
mycroft
a9b9dbd457
Do LINKS and SYMLINKS after FILES and INCS.
1997-05-17 16:43:31 +00:00
mycroft
e30142d40d
Remove unneeded .SUFFIXES lines, and move .s and .S closer to .o to give the
...
right preferences.
1997-05-17 02:01:07 +00:00
mycroft
fb74da89f9
Add another .PHONY.
1997-05-10 14:19:02 +00:00
mycroft
e5ae95698c
Always rebuild links, since dependencies don't DTRT.
1997-05-10 10:55:19 +00:00
mycroft
bb84c33ebb
Add some .NOTMAINs.
1997-05-10 10:54:27 +00:00
mycroft
3ae4ef8d4c
Fix typo in previous.
1997-05-09 13:40:34 +00:00
mycroft
4e5d05c9cc
Automatically add the .c files corresponding to .l and .y files to DPSRCS.
...
Automatically add DPSRCS to CLEANFILES.
1997-05-09 13:25:46 +00:00
mycroft
83a6d8a106
Get the install dependencies in the right order, for the first time.
1997-05-09 09:18:23 +00:00
mycroft
fde14a0e77
Remove cruft.
1997-05-09 07:56:00 +00:00
mycroft
a6b93bb66a
Don't empty the suffix list.
1997-05-09 06:19:55 +00:00
mycroft
ca03cbbd4d
Oops; rearrange dependencies to get things built early enough.
1997-05-09 05:43:41 +00:00
mycroft
f0a00ea4d3
Make sure INCS and SRCS are built if necessary.
1997-05-09 05:17:29 +00:00
gwr
386c8864bc
Set the .NOPATH flag for ${OBJS} (from Christos).
1997-05-08 21:21:25 +00:00
gwr
1f53401903
Set the .NOPATH flag for the .depend target.
1997-05-08 21:18:59 +00:00
mycroft
8350f2906b
Fix the MACHINE and MACHINE_ARCH links.
1997-05-07 19:34:16 +00:00
mycroft
2189b1da42
Make $S default to /sys.
1997-05-07 19:25:16 +00:00
mycroft
413d34c758
Add some dummy targets.
1997-05-07 19:09:47 +00:00
mycroft
b81d43c325
Fix typo.
1997-05-07 17:17:20 +00:00
mycroft
b2a77a6aa4
Don't use _SUBDIRUSE outside of bsd.subdir.mk.
1997-05-07 17:06:16 +00:00
mycroft
b89441bd06
Always define cleanman.
1997-05-07 16:45:40 +00:00
mycroft
78f9e94dd2
Always define cleandepend. Don't use a .depend target if SRCS is empty.
1997-05-07 16:44:04 +00:00
mycroft
b475e889d8
Introduce a separate cleandoc target.
1997-05-07 16:35:44 +00:00
mycroft
bb8827f7d1
Various simplifications.
1997-05-07 15:53:28 +00:00
mycroft
1bd348b5f9
Shuffle some .PHONYs around, to work better with `-t'.
1997-05-07 08:42:18 +00:00
mycroft
6a00bc76f3
Set the .MAKE attribute for all recursive targets.
1997-05-06 23:53:40 +00:00
mycroft
2da111c521
Make most of the install targets .PRECIOUS.
1997-05-06 21:29:33 +00:00
mycroft
5acae7b6ea
Add a pile of missing .PHONYs.
1997-05-06 20:54:31 +00:00
christos
b69d8d5561
Update for incremental make changes.
1997-04-19 22:24:30 +00:00
christos
b339c21257
Add ${LIBNTP}
1997-04-18 14:30:24 +00:00
thorpej
a585fb7042
Add several HOST_* variables. These identical to their non-HOST_
...
counterparts, and are used to compile programs that are needed to
compile other programs (see src/bin/sh for an example use). These
facilitate cross-compiling.
Define an NM variable - the program to use for nm(1)
1997-04-17 06:43:32 +00:00
thorpej
985170db35
- Properly depend on crtbegin.o and crtend.o for platforms that use
...
them (currently Alpha and PowerPC)
- STRIP -> STRIPFLAG
1997-04-17 06:40:32 +00:00
thorpej
9377c557b2
Rename STRIP -> STRIPFLAG - this is a flag passed to install(1) to
...
indicate whether or not the program should be stripped. This rename
allows the user to set STRIP as an alternative to /usr/bin/strip,
helping cross-compiling.
1997-04-17 06:34:15 +00:00
thorpej
2e6057dd39
Pass the program to use for nm(1) to lorder(1), helps cross-compiling.
1997-04-17 06:32:23 +00:00
christos
c9ba10ae4a
Annotate missing directories as [skipped: missing] (from Christoph Badura)
1997-04-16 14:09:16 +00:00
christos
9a7df3e0e4
Skip missing subdirectories to enable builds in partial source trees.
...
Directories being skipped are mentioned as '===> dir [skipped]'
1997-04-15 21:32:40 +00:00
christos
a2a43b1836
Make the `obj' target `.PHONY', so that does not get affected by .PATH/VPATH
...
This is not hurting things right now, and it will help things when path
searching for target nodes is enabled for make.
1997-04-15 21:29:09 +00:00
perry
138bcc102f
fix 3497 from Manuel Bouyer -- install source man pages with proper suffix.
1997-04-15 16:57:46 +00:00
mikel
43ba9b9b69
don't allow override of all: target
1997-04-03 06:53:18 +00:00
thorpej
043fb41aec
Set NOPIC and NOPROFILE on PowerPC.
1997-03-29 21:17:22 +00:00
mikel
76cfd073e9
merge lite-2 changes (mostly SCCSids)
1997-03-29 08:02:45 +00:00
christos
f897bfdce7
Don't make bogus dependencies with symlinks sources.
1997-03-28 15:07:28 +00:00
christos
22d479a4a8
Don't generate an include target if we don't have INCS set, because SUBDIRS
...
can make one too. This will break on Makefiles that have both INCS and SUBDIRS,
so then we'll need to change includes: to includes::, but we don't have any
yet.
1997-03-27 17:39:31 +00:00
christos
6c7d983258
Add bsd.files.mk
1997-03-27 17:35:58 +00:00
christos
cef52070f9
Put the FILES generated rules in a separate .mk file since both bsd.prog.mk
...
and bsd.lib.mk use them.
1997-03-27 17:33:34 +00:00