Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sjg
committed
Dec 2, 2005
1 parent
eb25140
commit fcb3923
Showing
94 changed files
with
46,591 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
FILES | ||
ChangeLog | ||
bmake.cat1 | ||
boot-strap | ||
os.sh | ||
Makefile.in | ||
PSD.doc/Makefile | ||
PSD.doc/tutorial.ms | ||
README | ||
arch.c | ||
buf.c | ||
buf.h | ||
compat.c | ||
cond.c | ||
make-conf.h | ||
config.h.in | ||
configure | ||
aclocal.m4 | ||
configure.in | ||
dir.c | ||
dir.h | ||
find_lib.sh | ||
for.c | ||
getenv.c | ||
getopt.c | ||
hash.c | ||
hash.h | ||
install-sh | ||
job.c | ||
job.h | ||
trace.c | ||
trace.h | ||
lst.h | ||
lst.lib/Makefile | ||
lst.lib/lstAppend.c | ||
lst.lib/lstAtEnd.c | ||
lst.lib/lstAtFront.c | ||
lst.lib/lstClose.c | ||
lst.lib/lstConcat.c | ||
lst.lib/lstDatum.c | ||
lst.lib/lstDeQueue.c | ||
lst.lib/lstDestroy.c | ||
lst.lib/lstDupl.c | ||
lst.lib/lstEnQueue.c | ||
lst.lib/lstFind.c | ||
lst.lib/lstFindFrom.c | ||
lst.lib/lstFirst.c | ||
lst.lib/lstForEach.c | ||
lst.lib/lstForEachFrom.c | ||
lst.lib/lstInit.c | ||
lst.lib/lstInsert.c | ||
lst.lib/lstInt.h | ||
lst.lib/lstIsAtEnd.c | ||
lst.lib/lstIsEmpty.c | ||
lst.lib/lstLast.c | ||
lst.lib/lstMember.c | ||
lst.lib/lstNext.c | ||
lst.lib/lstOpen.c | ||
lst.lib/lstRemove.c | ||
lst.lib/lstReplace.c | ||
lst.lib/lstSucc.c | ||
lst.lib/makefile.boot.in | ||
machine.sh | ||
main.c | ||
make.1 | ||
make.c | ||
make.h | ||
makefile.boot.in | ||
missing/sys/cdefs.h | ||
mkdeps.sh | ||
nonints.h | ||
parse.c | ||
pathnames.h | ||
ranlib.h | ||
setenv.c | ||
sigcompat.c | ||
sprite.h | ||
str.c | ||
suff.c | ||
targ.c | ||
util.c | ||
var.c | ||
wait.h | ||
unit-tests/Makefile.in | ||
unit-tests/cond1 | ||
unit-tests/comment | ||
unit-tests/modmatch | ||
unit-tests/modorder | ||
unit-tests/modts | ||
unit-tests/modword | ||
unit-tests/posix | ||
unit-tests/ternary | ||
unit-tests/test.exp | ||
unit-tests/varcmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
# $NetBSD: Makefile.in,v 1.1.1.1 2005/12/02 00:02:59 sjg Exp $ | ||
# @(#)Makefile 5.2 (Berkeley) 12/28/90 | ||
|
||
# $Id: Makefile.in,v 1.1.1.1 2005/12/02 00:02:59 sjg Exp $ | ||
|
||
PROG= bmake | ||
SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c main.c \ | ||
make.c parse.c str.c suff.c targ.c trace.c var.c util.c | ||
SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \ | ||
lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \ | ||
lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \ | ||
lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \ | ||
lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c | ||
|
||
.if !empty(LIBOBJS) | ||
SRCS+= ${LIBOBJS:.o=.c} | ||
.endif | ||
|
||
# you can use this Makefile if you have an earlier version of bmake. | ||
prefix= @prefix@ | ||
srcdir= @srcdir@ | ||
CC?= @CC@ | ||
|
||
# Base version on src date | ||
BMAKE_VERSION= 20051105 | ||
# knowing when it was built is also handy | ||
BUILD_DATE!= date +%Y%m%d | ||
MAKE_VERSION:= bmake-${BMAKE_VERSION} build-${BUILD_DATE} | ||
MACHINE=@machine@ | ||
MACHINE_ARCH=@machine_arch@ | ||
|
||
CFLAGS+= -D_PATH_DEFSYSPATH=\"@default_sys_path@\" | ||
CFLAGS+= -I. -I${srcdir} @DEFS@ @CPPFLAGS@ ${XDEFS} -DMAKE_NATIVE | ||
CFLAGS+= ${CFLAGS_${.TARGET:T}} | ||
CFLAGS_main.o= "-DMAKE_VERSION=\"${MAKE_VERSION}\"" | ||
LDFLAGS= @LDFLAGS@ | ||
LIBOBJS= @LIBOBJS@ | ||
LDADD= @LIBS@ | ||
|
||
.PATH: ${srcdir} | ||
.PATH: ${srcdir}/lst.lib | ||
|
||
OS!= uname -s | ||
ARCH!= uname -p 2>/dev/null || uname -m | ||
|
||
# list of OS's which are derrived from BSD4.4 | ||
isBSD44= NetBSD FreeBSD OpenBSD DragonFly | ||
|
||
.if ${OS} == "NetBSD" | ||
# Don't set these for anyone else since we don't know what the effect may be. | ||
# On FreeBSD WARNS=2 sets a bunch of -W flags that make does not handle. | ||
WFORMAT= 1 | ||
WARNS=3 | ||
.NOPATH: bmake.cat1 | ||
.if make(install) && exists(${DESTDIR}/usr/share/doc) | ||
SUBDIR= PSD.doc | ||
.endif | ||
.endif | ||
|
||
.if empty(isBSD44:M${OS}) | ||
# XXX not sure if we still want this given that configure | ||
# lets us force or not the definition of MACHINE. | ||
CFLAGS_main.o+= "-DFORCE_MACHINE=\"${MACHINE}\"" | ||
NOMAN=no | ||
SRCS+= getenv.c | ||
INSTALL?=${srcdir}/install-sh | ||
.if (${MACHINE} == "sun386") | ||
# even I don't have one of these anymore :-) | ||
CFLAGS+= -DPORTAR | ||
.elif (${MACHINE} != "sunos") | ||
SRCS+= sigcompat.c | ||
CFLAGS+= -DSIGNAL_FLAGS=SA_RESTART | ||
.endif | ||
.endif | ||
.if make(obj) || make(clean) | ||
SUBDIR+= unit-tests | ||
.endif | ||
|
||
# many systems use gcc these days | ||
CC_IS_GCC=@GCC@ | ||
.if ${CC_IS_GCC} == "yes" | ||
# problem with gcc3 | ||
CFLAGS_var.o+= -Wno-cast-qual | ||
.endif | ||
|
||
CFLAGS_main.o+= "-D@force_machine@MACHINE=\"${MACHINE}\"" "-DMACHINE_ARCH=\"${MACHINE_ARCH}\"" | ||
|
||
EXTRACT_MAN=no | ||
|
||
MAN=${PROG}.1 | ||
.if (${PROG} != "make") | ||
${MAN}: make.1 | ||
@echo making ${PROG}.1 | ||
@sed -e '/^.Nm/s/make/${PROG}/' -e '/^.Sh HISTORY/,$$d' ${srcdir}/make.1 > $@ | ||
@(echo ".Sh HISTORY"; echo ".Nm"; echo "is derived from NetBSD's"; echo ".Xr make 1 ."; echo It uses autoconf to facilitate portability to other platforms.) >> $@ | ||
|
||
.endif | ||
|
||
.if exists(${srcdir}/../Makefile.inc) | ||
.include "${srcdir}/../Makefile.inc" | ||
.endif | ||
.include <bsd.prog.mk> | ||
# sigh, FreeBSD at least includes bsd.subdir.mk via bsd.obj.mk | ||
# so the inclusion below, results in complaints about re-defined | ||
# targets. For NetBSD though we need to explicitly include it. | ||
.if defined(SUBDIR) && !target(${SUBDIR:[1]}) | ||
.include <bsd.subdir.mk> | ||
.endif | ||
|
||
# Force these | ||
BINDIR= ${prefix}/bin | ||
MANDIR= ${prefix}/man | ||
|
||
.if "${OS}" != "NetBSD" && !empty(isBSD44:M${OS}) | ||
# freebsd's bsd.man.mk works differently | ||
MAN1=${MAN} | ||
MANDIR= ${prefix}/man/man | ||
MANDEST= ${MANDIR}1 | ||
.NOPATH: bmake.cat1 | ||
.endif | ||
MANDEST?= ${MANDIR} | ||
|
||
arch.o: config.h | ||
# make sure that MAKE_VERSION gets updated. | ||
main.o: ${SRCS} ${MAKEFILE} | ||
|
||
MK?=${prefix}/share/mk | ||
MKSRC?=@mksrc@ | ||
INSTALL?=${srcdir}/install-sh | ||
|
||
beforeinstall: | ||
test -d ${DESTDIR}${BINDIR} || ${INSTALL} -m 775 -d ${DESTDIR}${BINDIR} | ||
test -d ${DESTDIR}${MANDEST} || ${INSTALL} -m 775 -d ${DESTDIR}${MANDEST} | ||
|
||
# latest version of *.mk includes an installer. | ||
# you should not need to set USE_OS | ||
install-mk: | ||
.if exists(${MKSRC}/install-mk) | ||
test -d ${DESTDIR}${MK} || ${INSTALL} -m 775 -d ${DESTDIR}${MK} | ||
${MKSRC}/install-mk -v -m 644 ${DESTDIR}${MK} ${USE_OS} | ||
.else | ||
@echo need to unpack mk.tar.gz under ${srcdir} or set MKSRC; false | ||
.endif | ||
|
||
# A simple unit-test driver to help catch regressions | ||
accept test: | ||
cd ${.CURDIR}/unit-tests && ${.MAKE:S,^./,${.CURDIR}/,} TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# $NetBSD: Makefile,v 1.1.1.1 2005/12/02 00:03:00 sjg Exp $ | ||
# @(#)Makefile 8.1 (Berkeley) 8/14/93 | ||
|
||
DIR= psd/12.make | ||
SRCS= tutorial.ms | ||
MACROS= -ms | ||
|
||
.include <bsd.doc.mk> |
Oops, something went wrong.