Back out BUILDDIR and NOINSTALL changes.

This commit is contained in:
cjs 1997-05-31 21:21:13 +00:00
parent ad9b4015c2
commit 7a66732d34
55 changed files with 224 additions and 881 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.41 1997/05/29 14:23:02 cjs Exp $
# $NetBSD: Makefile,v 1.42 1997/05/31 21:21:13 cjs Exp $
.include <bsd.own.mk> # for configuration variables.
@ -40,7 +40,7 @@ afterinstall:
(cd ${.CURDIR}/share/man && ${MAKE} makedb)
.endif
oldbuild:
build:
(cd ${.CURDIR}/share/mk && ${MAKE} install)
${MAKE} includes
.if !defined(UPDATE)
@ -55,19 +55,4 @@ oldbuild:
.endif
${MAKE} depend && ${MAKE} && ${MAKE} install
build:
@# can't do domestic includes until crt0.o, etc. is built.
${MAKE} EXPORTABLE_SYSTEM=1 includes
.if !defined(UPDATE)
${MAKE} cleandir
.endif
(cd ${.CURDIR}/lib/csu && ${MAKE} depend && ${MAKE})
(cd ${.CURDIR}/lib && ${MAKE} depend && ${MAKE})
(cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE})
.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
(cd ${.CURDIR}/domestic && ${MAKE} includes)
(cd ${.CURDIR}/domestic/lib/ && ${MAKE} depend && ${MAKE})
.endif
${MAKE} depend && ${MAKE}
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.70 1997/05/26 03:55:43 cjs Exp $
# $NetBSD: Makefile,v 1.71 1997/05/31 21:21:16 cjs Exp $
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
TZDIR= /usr/share/zoneinfo
@ -8,7 +8,9 @@ LOCALTIME= US/Pacific
# an objdir would break the installation stuff below
NOOBJ= oobj
.include <bsd.own.mk> # for BUILDDIR and configs
.if exists(etc.${MACHINE}/Makefile.inc)
.include "etc.${MACHINE}/Makefile.inc"
.endif
# -rw-r--r--
BINOWN= root

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 1997/05/26 03:55:49 cjs Exp $
# $NetBSD: Makefile,v 1.9 1997/05/31 21:21:17 cjs Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= phantasia
@ -20,8 +20,8 @@ host_phantglobs.o: ${.CURDIR}/phantglobs.c
setup.o: ${.CURDIR}/setup.c
${HOST_COMPILE.c} ${.CURDIR}/setup.c
beforeinstall:
DESTDIR=${DESTDIR} ./setup -m ${.CURDIR}/monsters.asc
afterinstall:
./setup -m ${.CURDIR}/monsters.asc
chown games:bin ${DESTDIR}/var/games/phantasia/*
# Make Phantasia map. Change the map commands reflect your installation.

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 1997/05/26 03:55:57 cjs Exp $
# $NetBSD: Makefile,v 1.24 1997/05/31 21:21:19 cjs Exp $
SUBDIR= libg++ libstdc++ # libio libiostream
@ -8,47 +8,8 @@ HEADERS= cassert cctype cerrno cfloat ciso646 climits clocale cmath complex \
algorithm deque list map queue set stack vector utility functional \
iterator memory numeric
.include <bsd.own.mk> # for OBJDIR
.PHONY: builddir
builddir:
@echo ${INSTALL} -d ${BUILDDIR}/usr/include/g++/gen
@${INSTALL} -d ${BUILDDIR}/usr/include/g++/gen
@echo ${INSTALL} -d ${BUILDDIR}/usr/include/g++/std
@${INSTALL} -d ${BUILDDIR}/usr/include/g++/std
@echo installing includes from libg++/src
@(cd libg++/src ; for j in *.[ih]; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/$$j; \
done)
@echo installing includes from include/gen
@(cd include/gen ; for j in *.*P; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/gen/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/gen/$$j; \
done)
@echo installing includes from libio
@(cd libio ; for j in *.h; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/$$j; \
done)
@echo installing includes from libstdc++/std
@(cd libstdc++/std ; for j in *.h *.cc; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/std/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/std/$$j; \
done)
@echo installing includes from libstdc++/stl
@(cd libstdc++/stl ; for j in *.h *.cc; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/$$j; \
done)
@echo installing includes from libstdc++
@(cd libstdc++ ; for j in *.h ${HEADERS}; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/$$j; \
done)
.PHONY: destdir
destdir:
includes:
@echo installing includes from libg++/src
@(cd libg++/src ; for j in *.[ih]; do \
cmp -s $$j ${DESTDIR}/usr/include/g++/$$j || \
@ -86,13 +47,4 @@ destdir:
${DESTDIR}/usr/include/g++/$$j; \
done)
.if defined(OBJDIR)
includes: builddir
.else
includes: destdir
.endif # defined(OBJDIR)
.PHONY: install
install: destdir
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 1997/05/26 03:56:03 cjs Exp $
# $NetBSD: Makefile,v 1.7 1997/05/31 21:21:23 cjs Exp $
LIB= g++
@ -13,8 +13,6 @@ bitset1.c bitxor.c builtin.cc compare.cc error.cc fmtq.cc \
gcd.cc hash.cc ioob.cc lg.cc pow.cc sqrt.cc \
timer.c
.include <bsd.own.mk> # for BUILDDIR
CXXFLAGS+= -nostdinc++ -I$(.CURDIR)/../../include \
-I$(.CURDIR)/../../libio -I$(.CURDIR)/../../libstdc++
CFLAGS+= -I$(.CURDIR) -I$(.CURDIR)/../../libio
@ -22,12 +20,12 @@ CFLAGS+= -I$(.CURDIR) -I$(.CURDIR)/../../libio
LDADD= -lcurses
DPADD= ${LIBCURSES}
.else
LDADD= ${BUILDDIR}/usr/lib/c++rt0.o -lcurses
DPADD= ${BUILDDIR}/usr/lib/c++rt0.o ${LIBCURSES}
LDADD= ${DESTDIR}/usr/lib/c++rt0.o -lcurses
DPADD= ${DESTDIR}/usr/lib/c++rt0.o ${LIBCURSES}
.endif
NOMAN= noman
NOLINT= nolint
LIBCURSES!= printf "xxx:\n\techo \$${LIBCURSES}\n.include <bsd.prog.mk>" |\
$(MAKE) -r -s -f - xxx | grep curses
LIBCURSES!= printf "xxx: .MAKE\n\t@echo \$${LIBCURSES}\n.include <bsd.prog.mk>" |\
$(MAKE) -s -f- xxx
.include <bsd.lib.mk>

View File

@ -1,6 +1,6 @@
#!/usr/local/bin/perl
#
# $NetBSD: libg++2netbsd,v 1.21 1997/05/26 04:24:42 cjs Exp $
# $NetBSD: libg++2netbsd,v 1.22 1997/05/31 21:21:20 cjs Exp $
#
# Perl script to convert a standard distribution directory for libg++ into
# a NetBSD source tree.
@ -433,47 +433,8 @@ HEADERS= cassert cctype cerrno cfloat ciso646 climits clocale cmath complex \
algorithm deque list map queue set stack vector utility functional \
iterator memory numeric
.include <bsd.own.mk> # for OBJDIR
.PHONY: builddir
builddir:
@echo ${INSTALL} -d ${BUILDDIR}/usr/include/g++/gen
@${INSTALL} -d ${BUILDDIR}/usr/include/g++/gen
@echo ${INSTALL} -d ${BUILDDIR}/usr/include/g++/std
@${INSTALL} -d ${BUILDDIR}/usr/include/g++/std
@echo installing includes from libg++/src
@(cd libg++/src ; for j in *.[ih]; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/$$j; \
done)
@echo installing includes from include/gen
@(cd include/gen ; for j in *.*P; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/gen/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/gen/$$j; \
done)
@echo installing includes from libio
@(cd libio ; for j in *.h; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/$$j; \
done)
@echo installing includes from libstdc++/std
@(cd libstdc++/std ; for j in *.h *.cc; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/std/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/std/$$j; \
done)
@echo installing includes from libstdc++/stl
@(cd libstdc++/stl ; for j in *.h *.cc; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/$$j; \
done)
@echo installing includes from libstdc++
@(cd libstdc++ ; for j in *.h ${HEADERS}; do \
cmp -s $$j ${BUILDDIR}/usr/include/g++/$$j || \
${INSTALL} -c -m 444 $$j ${BUILDDIR}/usr/include/g++/$$j; \
done)
.PHONY: destdir
destdir:
includes:
@echo installing includes from libg++/src
@(cd libg++/src ; for j in *.[ih]; do \
cmp -s $$j ${DESTDIR}/usr/include/g++/$$j || \
@ -511,15 +472,6 @@ destdir:
${DESTDIR}/usr/include/g++/$$j; \
done)
.if defined(OBJDIR)
includes: builddir
.else
includes: destdir
.endif # defined(OBJDIR)
.PHONY: install
install: destdir
.include <bsd.subdir.mk>
%% file libg++/Makefile
%% NetBSD
@ -544,8 +496,6 @@ LIB= g++
%% srcs libg++
.include <bsd.own.mk> # for BUILDDIR
CXXFLAGS+= -nostdinc++ -I$(.CURDIR)/../../include \
-I$(.CURDIR)/../../libio -I$(.CURDIR)/../../libstdc++
CFLAGS+= -I$(.CURDIR) -I$(.CURDIR)/../../libio
@ -553,8 +503,8 @@ CFLAGS+= -I$(.CURDIR) -I$(.CURDIR)/../../libio
LDADD= -lcurses
DPADD= ${LIBCURSES}
.else
LDADD= ${BUILDDIR}/usr/lib/c++rt0.o -lcurses
DPADD= ${BUILDDIR}/usr/lib/c++rt0.o ${LIBCURSES}
LDADD= ${DESTDIR}/usr/lib/c++rt0.o -lcurses
DPADD= ${DESTDIR}/usr/lib/c++rt0.o ${LIBCURSES}
.endif
NOMAN= noman
NOLINT= nolint
@ -605,13 +555,13 @@ NOLINT= nolint
.PATH: $(.CURDIR)/../libio $(.CURDIR)/stl $(.CURDIR)/../librx
.include <bsd.lib.mk>
.if (${MACHINE} != "alpha")
LDADD= ${DESTDIR}/usr/lib/c++rt0.o
DPADD= ${DESTDIR}/usr/lib/c++rt0.o
.endif
.include <bsd.lib.mk>
%% frag
%% rtti typeinfoi
%% rtti stdexcepti

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 1997/05/26 03:56:12 cjs Exp $
# $NetBSD: Makefile,v 1.8 1997/05/31 21:21:24 cjs Exp $
LIB= stdc++
@ -22,13 +22,13 @@ NOLINT= nolint
.PATH: $(.CURDIR)/../libio $(.CURDIR)/stl $(.CURDIR)/../librx
.include <bsd.lib.mk>
.if (${MACHINE} != "alpha")
LDADD= ${BULDDIR}/usr/lib/c++rt0.o
DPADD= ${BULDDIR}/usr/lib/c++rt0.o
LDADD= ${DESTDIR}/usr/lib/c++rt0.o
DPADD= ${DESTDIR}/usr/lib/c++rt0.o
.endif
.include <bsd.lib.mk>
cstrmain.cc: Makefile
@echo Creating cstrmain.cc
@(for i in REP MAIN TRAITS ADDSS ADDPS ADDCS ADDSP ADDSC EQSS EQPS EQSP NESS NEPS NESP LTSS LTPS LTSP GTSS GTPS GTSP LESS LEPS LESP GESS GEPS GESP ; do \
@ -137,3 +137,4 @@ stdexcepti.so: stdexcepti.cc
@$(LD) -x -r $(.TARGET).o -o $(.TARGET)
@rm -f $(.TARGET).o

View File

@ -1,5 +1,5 @@
# This subdirectory contains Unix specific support functions.
# $Id: Makefile,v 1.7 1997/05/30 13:43:06 cjs Exp $
# $Id: Makefile,v 1.8 1997/05/31 21:21:26 cjs Exp $
LIB= unix
SRCS= access.c addbas.c app3.c app4.c basnam.c bytfre.c cwd.c \
@ -19,7 +19,7 @@ NOMAN= noman
NOPROFILE= noprofile
NOPIC= nopic
# this library is used only for the build
NOINSTALL=1
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,5 +1,5 @@
# This is the Makefile for the Taylor UUCP uuconf library
# $Id: Makefile,v 1.7 1997/05/30 13:43:08 cjs Exp $
# $Id: Makefile,v 1.8 1997/05/31 21:21:27 cjs Exp $
LIB= uuconf
SRCS= addblk.c addstr.c allblk.c alloc.c base.c bool.c callin.c \
@ -23,7 +23,7 @@ NOMAN= noman
NOPROFILE= noprofile
NOPIC= nopic
# this library is used only for the build
NOINSTALL=1
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,5 +1,5 @@
# This is the Makefile for the libuucp subdirectory of Taylor UUCP
# $Id: Makefile,v 1.6 1997/05/30 13:43:10 cjs Exp $
# $Id: Makefile,v 1.7 1997/05/31 21:21:28 cjs Exp $
LIB= uucp
SRCS= buffer.c crc.c debug.c escape.c getopt.c getop1.c parse.c \
@ -10,7 +10,7 @@ NOMAN= noman
NOPROFILE= noprofile
NOPIC= nopic
# this library is used only for the build
NOINSTALL=1
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 1997/05/30 13:43:12 cjs Exp $
# $NetBSD: Makefile,v 1.12 1997/05/31 21:21:29 cjs Exp $
LIB= cc1
@ -6,9 +6,6 @@ NOMAN=
NOPIC=
NOPROFILE=
# this library is used only for the build
NOINSTALL=1
COMMON!=cd $(.CURDIR)/../common; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
@ -183,4 +180,7 @@ c-parse.c: c-parse.y
mv -f c.tab.c c-parse.c
mv -f c.tab.h c-parse.h
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,12 +1,9 @@
# $Id: Makefile,v 1.7 1997/05/30 13:43:14 cjs Exp $
# $Id: Makefile,v 1.8 1997/05/31 21:21:30 cjs Exp $
LIB= bfd
NOPROFILE=
NOPIC=
# this library is used only for the build
NOINSTALL=1
CFLAGS+= -I$(.CURDIR)/arch/$(MACHINE_ARCH) -I$(.CURDIR) \
-I$(.CURDIR)/../include
.PATH: $(.CURDIR)/arch/$(MACHINE_ARCH)
@ -23,4 +20,7 @@ SRCS= archive.c archures.c bfd.c cache.c coffgen.c core.c ctor.c \
targets.o archures.o: $(.CURDIR)/$(.TARGET:S/.o$/.c/)
${COMPILE.c} $(VECTORS) -o $(.TARGET) $(.IMPSRC)
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,14 +1,14 @@
# $Id: Makefile,v 1.3 1997/05/30 13:43:16 cjs Exp $
# $Id: Makefile,v 1.4 1997/05/31 21:21:31 cjs Exp $
LIB= iberty
NOPROFILE=
NOPIC=
# this library is used only for the build
NOINSTALL=1
CFLAGS+= -I$(.CURDIR)/../include
SRCS= argv.c basename.c concat.c cplus-dem.c getopt.c getopt1.c \
obstack.c strsignal.c ieee-float.c insque.c
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,13 +1,13 @@
# $Id: Makefile,v 1.3 1997/05/30 13:43:17 cjs Exp $
# $Id: Makefile,v 1.4 1997/05/31 21:21:32 cjs Exp $
LIB= readline
NOPROFILE=
NOPIC=
# this library is used only for the build
NOINSTALL=1
CFLAGS+= -DVOID_SIGHANDLER -DVI_MODE
SRCS= funmap.c history.c keymaps.c readline.c vi_mode.c tilde.c
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.6 1997/05/30 13:43:19 cjs Exp $
# $Id: Makefile,v 1.7 1997/05/31 21:21:34 cjs Exp $
LIB= bib
SRCS= common.cc index.cc linear.cc search.cc map.c
@ -8,8 +8,8 @@ NOMAN= noman
NOPROFILE= noprofile
NOPIC= nopic
# this library is used only for the build
NOINSTALL=1
# only needed during build
libinstall::
.include "../Makefile.cfg"
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.8 1997/05/30 13:43:22 cjs Exp $
# $Id: Makefile,v 1.9 1997/05/31 21:21:35 cjs Exp $
LIB= driver
SRCS= input.cc printer.cc
@ -8,8 +8,8 @@ NOMAN= noman
NOPROFILE= noprofile
NOPIC= nopic
# this library is used only for the build
NOINSTALL=1
# only needed during build
libinstall::
.include "../Makefile.cfg"
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.8 1997/05/30 13:43:24 cjs Exp $
# $Id: Makefile,v 1.9 1997/05/31 21:21:36 cjs Exp $
LIB= groff
SRCS= assert.cc change_lf.cc cmap.cc cset.cc device.cc errarg.cc\
@ -13,13 +13,13 @@ NOMAN= noman
NOPROFILE= noprofile
NOPIC= nopic
# this library is used only for the build
NOINSTALL=1
CLEANFILES+= version.cc
version.cc: $(.CURDIR)/../VERSION
@echo Making version.cc
@echo const char \*version_string = \"`cat $(.CURDIR)/../VERSION`\"\; >$@
# only needed during build
libinstall::
.include "../Makefile.cfg"
.include <bsd.lib.mk>

View File

@ -1,6 +1,4 @@
# $NetBSD: Makefile,v 1.18 1997/05/30 14:06:34 cjs Exp $
.include <bsd.own.mk> # for BUILDDIR
# $NetBSD: Makefile,v 1.19 1997/05/31 21:21:37 cjs Exp $
PROG= ld.so
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c vfprintf.c
@ -9,10 +7,8 @@ PICFLAG=-fpic -fno-function-cse
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS
ASFLAGS+=-k
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
# XXX The ELF ports do not currently use this ld.so, so we don't have to
# worry about their linker not accepting -nostdlib.
.if defined(BUILDDIR)
LDFLAGS+= -nostdlib -L${BUILDDIR}/usr/lib
.if defined(DESTDIR)
LDFLAGS+= -nostdlib -L${DESTDIR}/usr/lib
.endif
LDADD+= -lc_pic
DPADD+= ${LIBC_PIC}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 1997/05/30 13:43:26 cjs Exp $
# $NetBSD: Makefile,v 1.10 1997/05/31 21:21:38 cjs Exp $
# Define FSYNC_ALL to get slower but safer writes in case of crashes in
# the middle of CVS/RCS changes
@ -16,7 +16,7 @@ SRCS= maketime.c merger.c partime.c rcsedit.c rcsfcmp.c rcsfnms.c rcsgen.c \
NOPROFILE=noprofile
NOPIC=nopic
# this library is used only for the build
NOINSTALL=1
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 1997/05/26 03:56:18 cjs Exp $
# $NetBSD: Makefile,v 1.13 1997/05/31 21:21:39 cjs Exp $
.include <bsd.own.mk> # for ECOFF_TOOLCHAIN definition
@ -13,8 +13,6 @@ OBJS= crt0.o gcrt0.o crtbegin.o crtend.o
CLEANFILES+= core a.out
.include <bsd.own.mk> # for BUILDDIR
all: ${OBJS}
crt0.o: crt0.c
@ -22,58 +20,24 @@ crt0.o: crt0.c
@${CC} ${CFLAGS} -DCRT0 -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
gcrt0.o: crt0.c
@echo ${CC} ${CFLAGS} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}
@${CC} ${CFLAGS} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
crtbegin.o: crtbegin.c
@echo ${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
@${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
@echo ${BUILDDIR}${LIBDIR}/crtbeginS.o '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/crtbeginS.o
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/crtbeginS.o;
.endif
crtend.o: crtend.c
@echo ${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
@${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
@echo ${BUILDDIR}${LIBDIR}/crtendS.o '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/crtendS.o
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/crtendS.o;
.endif
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \

View File

@ -1,61 +1,31 @@
# $NetBSD: Makefile,v 1.6 1997/05/29 15:13:00 cjs Exp $
# $NetBSD: Makefile,v 1.7 1997/05/31 21:21:40 cjs Exp $
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
CFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
OBJS= crt0.o gcrt0.o scrt0.o mcrt0.o
CLEANFILES+= core a.out
.include <bsd.own.mk> # for OBJDIR and BUILDDIR
all: ${OBJS}
crt0.o: crt0.c
${COMPILE.c} -DCRT0 -DDYNAMIC ${.ALLSRC}
# ${LD} -x -r ${.TARGET}
# mv a.out ${.TARGET}
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
gcrt0.o: crt0.c
${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}
# ${LD} -x -r ${.TARGET}
# mv a.out ${.TARGET}
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
mcrt0.o: crt0.c
${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}
# ${LD} -x -r ${.TARGET}
# mv a.out ${.TARGET}
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
scrt0.o: crt0.c
${COMPILE.c} -DSCRT0 ${.ALLSRC} -o ${.TARGET}
# ${LD} -x -r ${.TARGET}
# mv a.out ${.TARGET}
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 1997/05/26 03:56:31 cjs Exp $
# $NetBSD: Makefile,v 1.9 1997/05/31 21:21:41 cjs Exp $
CFLAGS+= -DLIBC_SCCS
.if (${MACHINE_ARCH} != "powerpc")
@ -6,21 +6,12 @@ CFLAGS+= -fpic
.endif
OBJS= c++rt0.o
.include <bsd.own.mk> # for BUILDDIR
all: ${OBJS}
c++rt0.o: c++rt0.c
${COMPILE.c} ${.ALLSRC}
@${LD} -x -r ${.TARGET}
@mv a.out ${.TARGET}
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
FILES=${OBJS}
FILESDIR=/usr/lib

View File

@ -1,12 +1,10 @@
# $NetBSD: Makefile,v 1.20 1997/05/26 03:56:38 cjs Exp $
# $NetBSD: Makefile,v 1.21 1997/05/31 21:21:42 cjs Exp $
# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
CFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
OBJS= crt0.o gcrt0.o scrt0.o
SRCS= crt0.c
.include <bsd.own.mk> # for OBJDIR and BUILDDIR
all: ${OBJS}
crt0.o: ${SRCS}
@ -14,39 +12,18 @@ crt0.o: ${SRCS}
@${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
gcrt0.o: ${SRCS}
@echo "${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
scrt0.o: ${SRCS}
@echo "${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
.if make(depend)
CPPFLAGS+= -DDYNAMIC

View File

@ -1,12 +1,10 @@
# $NetBSD: Makefile,v 1.12 1997/05/29 15:57:45 veego Exp $
# $NetBSD: Makefile,v 1.13 1997/05/31 21:21:44 cjs Exp $
# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
CFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
OBJS= crt0.o gcrt0.o scrt0.o
SRCS= crt0.c
.include <bsd.own.mk> # for OBJDIR and BUILDDIR
all: ${OBJS}
crt0.o: ${SRCS}
@ -14,39 +12,22 @@ crt0.o: ${SRCS}
@${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
gcrt0.o: ${SRCS}
@echo "${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
scrt0.o: ${SRCS}
@echo "${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
${DESTDIR}/usr/lib
.if make(depend)
CPPFLAGS+= -DDYNAMIC
@ -58,7 +39,4 @@ afterdepend: .depend
< .depend > $$TMP; \
mv $$TMP .depend)
FILES=${OBJS}
FILESDIR=/usr/lib
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 1997/05/29 15:13:07 cjs Exp $
# $NetBSD: Makefile,v 1.14 1997/05/31 21:21:45 cjs Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/1/93
CFLAGS+= -DLIBC_SCCS -fPIC -DPIC -DDYNAMIC -DELFSIZE=32
@ -7,8 +7,6 @@ CFLAGS+= -DLIBC_SCCS -fPIC -DPIC -DDYNAMIC -DELFSIZE=32
OBJS= crt0.o gcrt0.o crtn.o # crtbegin.o crtend.o
CLEANFILES+= core a.out
.include <bsd.own.mk> # for OBJDIR and BUILDDIR
all: ${OBJS}
crt0.o: crt0.c
@ -16,39 +14,18 @@ crt0.o: crt0.c
@${CC} ${CFLAGS} -DCRT0 -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
gcrt0.o: crt0.c
@echo ${CC} ${CFLAGS} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}
@${CC} ${CFLAGS} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
crtn.o: crtend.c
@echo ${CC} ${CFLAGS} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}
@${CC} ${CFLAGS} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \

View File

@ -1,12 +1,10 @@
# $NetBSD: Makefile,v 1.13 1997/05/29 15:57:47 veego Exp $
# $NetBSD: Makefile,v 1.14 1997/05/31 21:21:46 cjs Exp $
# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
CFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
OBJS= crt0.o gcrt0.o scrt0.o
SRCS= crt0.c
.include <bsd.own.mk> # for OBJDIR and BUILDDIR
all: ${OBJS}
crt0.o: ${SRCS}
@ -14,39 +12,22 @@ crt0.o: ${SRCS}
@${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
gcrt0.o: ${SRCS}
@echo "${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
scrt0.o: ${SRCS}
@echo "${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
${DESTDIR}/usr/lib
.if make(depend)
CPPFLAGS+= -DDYNAMIC
@ -58,7 +39,4 @@ afterdepend: .depend
< .depend > $$TMP; \
mv $$TMP .depend)
FILES=${OBJS}
FILESDIR=/usr/lib
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 1997/05/29 15:13:12 cjs Exp $
# $NetBSD: Makefile,v 1.4 1997/05/31 21:21:47 cjs Exp $
CFLAGS+= -DLIBC_SCCS -DPIC # -DDYNAMIC
CFLAGS+= -I${.CURDIR}/../../../libexec/ld.elf_so
@ -7,8 +7,6 @@ OBJS= crt0.o gcrt0.o crtbegin.o crtend.o
CLEANFILES+= core a.out
.include <bsd.own.mk> # for OBJDIR and BUILDDIR
all: ${OBJS}
crt0.o: crt0.c
@ -16,52 +14,24 @@ crt0.o: crt0.c
@${CC} ${CFLAGS} -DCRT0 -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
gcrt0.o: crt0.c
@echo ${CC} ${CFLAGS} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}
@${CC} ${CFLAGS} -DMCRT0 -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
crtbegin.o: crtbegin.c
@echo ${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
@${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
crtend.o: crtend.c
@echo ${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
@${CC} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}.o
@${LD} -x -r -o ${.TARGET} ${.TARGET}.o
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \

View File

@ -1,12 +1,10 @@
# $NetBSD: Makefile,v 1.13 1997/05/29 15:57:46 veego Exp $
# $NetBSD: Makefile,v 1.14 1997/05/31 21:21:48 cjs Exp $
# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
CFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
OBJS= crt0.o gcrt0.o scrt0.o
SRCS= crt0.c
.include <bsd.own.mk> # for OBJDIR and BUILDDIR
all: ${OBJS}
crt0.o: ${SRCS}
@ -14,39 +12,22 @@ crt0.o: ${SRCS}
@${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
gcrt0.o: ${SRCS}
@echo "${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
scrt0.o: ${SRCS}
@echo "${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
@${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
${DESTDIR}/usr/lib
.if make(depend)
CPPFLAGS+= -DDYNAMIC
@ -58,7 +39,4 @@ afterdepend: .depend
< .depend > $$TMP; \
mv $$TMP .depend)
FILES=${OBJS}
FILESDIR=/usr/lib
.include <bsd.prog.mk>

View File

@ -1,49 +1,26 @@
# $NetBSD: Makefile,v 1.7 1997/05/29 15:13:16 cjs Exp $
# $NetBSD: Makefile,v 1.8 1997/05/31 21:21:49 cjs Exp $
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
CFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
OBJS= crt0.o gcrt0.o scrt0.o
CLEANFILES+= core a.out
.include <bsd.own.mk> # for OBJDIR and BUILDDIR
all: ${OBJS}
crt0.o: crt0.c
${COMPILE.c} -DCRT0 -UDYNAMIC ${.ALLSRC}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
gcrt0.o: crt0.c
${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
scrt0.o: crt0.c
${COMPILE.c} -DSCRT0 ${.ALLSRC} -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
.if defined(OBJDIR)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \

View File

@ -1,13 +1,11 @@
# $NetBSD: Makefile,v 1.2 1997/05/30 21:47:34 cjs Exp $
.include <bsd.own.mk> # for BUILDDIR
# $NetBSD: Makefile,v 1.3 1997/05/31 21:21:50 cjs Exp $
LIB= posix
CFLAGS+=-D_REENTRANT -I${.CURDIR}/../libc/include
AINC= -I${.CURDIR}/../libc/arch/${MACHINE_ARCH}
.if defined(BUILDDIR)
AINC+= -nostdinc -idirafter ${BUILDDIR}/usr/include
.if defined(DESTDIR)
AINC+= -nostdinc -idirafter ${DESTDIR}/usr/include
.endif
.include "${.CURDIR}/sys/Makefile.inc"

View File

@ -1,6 +1,4 @@
# $NetBSD: Makefile.inc,v 1.3 1997/05/30 14:16:59 cjs Exp $
.include <bsd.own.mk> # for BUILDDIR
# $NetBSD: Makefile.inc,v 1.4 1997/05/31 21:21:53 cjs Exp $
# sys sources
.PATH: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/sys ${.CURDIR}/sys
@ -16,7 +14,7 @@ LOBJS+= ${LPSEUDO}
${PPSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
${BUILDDIR}/usr/include/sys/syscall.h
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@printf '#include "SYS.h"\n \
PSEUDO(${.PREFIX},${.PREFIX:S/^/posix_/})\n' | \
@ -25,7 +23,7 @@ ${PPSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
@rm -f ${.TARGET}.o
${SPSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
${BUILDDIR}/usr/include/sys/syscall.h
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@printf '#include "SYS.h"\n \
PSEUDO(${.PREFIX},${.PREFIX:S/^/posix_/})\n' | \
@ -33,7 +31,7 @@ ${SPSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
${AS} ${APICFLAGS} -o ${.TARGET}
${PSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
${BUILDDIR}/usr/include/sys/syscall.h
${DESTDIR}/usr/include/sys/syscall.h
@echo creating ${.TARGET}
@printf '#include "SYS.h"\n \
PSEUDO(${.PREFIX},${.PREFIX:S/^/posix_/})\n' | \
@ -41,7 +39,7 @@ ${PSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
@rm -f ${.TARGET}.o
${LPSEUDO}: ${BUILDDIR}/usr/include/sys/syscall.h ${.CURDIR}/sys/makelintstub
${LPSEUDO}: ${DESTDIR}/usr/include/sys/syscall.h ${.CURDIR}/sys/makelintstub
@echo creating ${.TARGET}
@${.CURDIR}/sys/makelintstub ${.PREFIX:S/posix_//} ${.PREFIX} | \
${LINT} -z ${LINTFLAGS} ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} -

View File

@ -1,6 +1,4 @@
# $NetBSD: Makefile,v 1.18 1997/05/30 14:06:34 cjs Exp $
.include <bsd.own.mk> # for BUILDDIR
# $NetBSD: Makefile,v 1.19 1997/05/31 21:21:37 cjs Exp $
PROG= ld.so
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c vfprintf.c
@ -9,10 +7,8 @@ PICFLAG=-fpic -fno-function-cse
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS
ASFLAGS+=-k
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
# XXX The ELF ports do not currently use this ld.so, so we don't have to
# worry about their linker not accepting -nostdlib.
.if defined(BUILDDIR)
LDFLAGS+= -nostdlib -L${BUILDDIR}/usr/lib
.if defined(DESTDIR)
LDFLAGS+= -nostdlib -L${DESTDIR}/usr/lib
.endif
LDADD+= -lc_pic
DPADD+= ${LIBC_PIC}

View File

@ -1,6 +1,4 @@
# $NetBSD: Makefile,v 1.5 1997/05/26 03:57:44 cjs Exp $
.include <bsd.own.mk> # for BUILDDIR
# $NetBSD: Makefile,v 1.6 1997/05/31 21:21:54 cjs Exp $
PROG= ld.elf_so
@ -30,20 +28,7 @@ STRIPFLAG=
${PROG}: ${OBJS} ${DPADD}
${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LDADD}
.if defined(BUILDDIR)
includes:
@cd ${.CURDIR}; for i in $(HDRS); do \
j="cmp -s $$i ${BUILDDIR}/usr/include/$$i || \
install -d ${BUILDDIR}/usr/include && \
${INSTALL} -c -m 444 $$i ${BUILDDIR}/usr/include"; \
echo $$j; \
eval "$$j"; \
done
.else
includes: beforeinstall
.endif
beforeinstall:
@cd ${.CURDIR}; for i in $(HDRS); do \
j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.README,v 1.28 1997/05/29 06:26:35 mikel Exp $
# $NetBSD: bsd.README,v 1.29 1997/05/31 21:21:55 cjs Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the new make "include" files for the BSD
@ -10,52 +10,6 @@ files for anything tricky.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
CONFIGURATION:
`Global' configuration variables you wish to use for all builds
may be placed in the file pointed to by the MAKECONF variable, or
/etc/mk.conf if MAKECONF is unset. Configuration for a certain
directory tree may be placed in Build.conf at the root of that
tree. The first instance of make will search from the source
directory upwards for a Build.conf file; when it finds one, it will
include it and remember the location in the BUILDCONF variable,
which will be passed on to any further instances of make in MAKEFLAGS.
If you wish to use a specific Build.conf file, you can just specify
it (using a full path) in the BUILDCONF variable when you run make.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
BUILD DIRECTORIES:
These makefiles use the concept of a `build directory,' which holds
include files and libraries that the programs are built against.
This allows you to build an entire new system, including new
libraries, without having to install its include files or libraries
into the currently running system.
When you start make it will check for the existence of the directory
named in BSDOBJDIR, with your architecture name appended if
USR_OBJMACHINE is defined. If that directory exists, it assumes
that you are compiling your object files to it and it will create
a subdirectory under it called `build' to be your build directory.
`make includes' will install include files to that, rather than to
DESTDIR, and when the libraries are compiled links to them will be
placed in the build directory as well.
Please note that for this to work BSDOBJDIR must be set while you
are doing your compile, not just while you're doing the `make obj'
(as previously). The actual location of the object files will still
be wherever the symbolic links for `obj' or `obj.machine' in your
source tree point.
If you are not using a separate object tree (you are putting the
object files in the source directories or in obj directories under
the source directories), DESTDIR will be used as the build directory,
and you will need to install include files and libraries there by
hand before you can compile other programs.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
RANDOM THINGS WORTH KNOWING:
The files are simply C-style #include files, and pretty much behave like
@ -163,13 +117,10 @@ a few global "feature configuration" parameters.
It has no targets.
This file is safe to include more than once, and may be included
at the top of your makefile, rather than the bottom, if your makefile
needs any of the information it defines.
To get system- and build-specific configuration parameters, bsd.own.mk
will look for the MAKECONF and BUILDCONF files as described under
the `Configuration' section above.
To get system-specific configuration parameters, bsd.own.mk will try to
include the file specified by the "MAKECONF" variable. If MAKECONF is not
set, or no such file exists, the system make configuration file, /etc/mk.conf
is included. These files may define any of the variables described below.
bsd.own.mk sets the following variables, if they are not already defined
(defaults are in brackets):
@ -454,19 +405,12 @@ from bsd.lib.mk and bsd.prog.mk.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The include file <bsd.inc.mk> defines the following targets:
The include file <bsd.inc.mk> defines the includes target and uses two
variables:
install:
Install the include files in their final home,
under DESTDIR.
INCS The list of include files
includes:
Install the include files under BUILDDIR.
INCS The list of include files
INCSDIR The location to install the include files (relative
to DESTDIR or BUILDDIR).
INCSDIR The location to install the include files.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

View File

@ -1,39 +1,11 @@
# $NetBSD: bsd.inc.mk,v 1.8 1997/05/26 03:58:00 cjs Exp $
#
# If an include file is already installed, this always compares the
# installed file to the one we are about to install. If they are the
# same, it doesn't do the install. This is to avoid triggering massive
# amounts of rebuilding.
#
# Targets:
#
# includes:
# Installs the include files in BUILDDIR if we are using one, DESTDIR
# otherwise. This is to be run before `make depend' or `make'.
#
# install:
# Installs the include files in DESTDIR.
#
# $NetBSD: bsd.inc.mk,v 1.9 1997/05/31 21:21:56 cjs Exp $
.PHONY: incbuild incinstall
.PHONY: incinstall
includes: ${INCS} incinstall
.if defined(INCS)
.for I in ${INCS}
.if defined(OBJDIR)
.PRECIOUS: ${BUILDDIR}${INCSDIR}/$I
${BUILDDIR}${INCSDIR}/$I: $I
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
(echo "${INSTALL} -d `dirname ${.TARGET}`" && \
${INSTALL} -d `dirname ${.TARGET}` && \
echo "${INSTALL} -c -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}" && \
${INSTALL} -c -m ${NONBINMODE} ${.ALLSRC} ${.TARGET})
incbuild:: ${BUILDDIR}${INCSDIR}/$I
.else
incbuild:: ${DESTDIR}${INCSDIR}/$I
.endif # defined(OBJDIR)
incinstall:: ${DESTDIR}${INCSDIR}/$I
.PRECIOUS: ${DESTDIR}${INCSDIR}/$I
${DESTDIR}${INCSDIR}/$I: $I
@ -42,18 +14,7 @@ ${DESTDIR}${INCSDIR}/$I: $I
${.ALLSRC} ${.TARGET}" && \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
${.ALLSRC} ${.TARGET})
incinstall:: ${DESTDIR}${INCSDIR}/$I
.endfor
includes: ${INCS} incbuild
install: ${INCS} incinstall
.endif # defined(INCS)
.if !target(incbuild)
incbuild::
.endif
.if !target(incinstall)

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.lib.mk,v 1.114 1997/05/30 01:54:42 cjs Exp $
# $NetBSD: bsd.lib.mk,v 1.115 1997/05/31 21:21:57 cjs Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.if exists(${.CURDIR}/../Makefile.inc)
@ -43,8 +43,8 @@ SHLIB_MINOR != . ${.CURDIR}/shlib_version ; echo $$minor
.if (${MACHINE_ARCH} == "alpha")
SHLIB_TYPE=ELF
SHLIB_LDSTARTFILE= ${BUILDDIR}/usr/lib/crtbeginS.o
SHLIB_LDENDFILE= ${BUILDDIR}/usr/lib/crtendS.o
SHLIB_LDSTARTFILE= ${DESTDIR}/usr/lib/crtbeginS.o
SHLIB_LDENDFILE= ${DESTDIR}/usr/lib/crtendS.o
SHLIB_SOVERSION=${SHLIB_MAJOR}
CPICFLAGS ?= -fpic -DPIC
CPPPICFLAGS?= -DPIC
@ -181,35 +181,14 @@ CLEANFILES+= ${DPSRCS}
OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/g}
lib${LIB}.a:: ${OBJS} __archivebuild
@echo building standard ${LIB} library
.if defined(OBJDIR) && !defined(NOINSTALL)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
POBJS+= ${OBJS:.o=.po}
lib${LIB}_p.a:: ${POBJS} __archivebuild
@echo building profiled ${LIB} library
.if defined(OBJDIR) && !defined(NOINSTALL)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
SOBJS+= ${OBJS:.o=.so}
lib${LIB}_pic.a:: ${SOBJS} __archivebuild
@echo building shared object ${LIB} library
.if defined(OBJDIR) && !defined(NOINSTALL)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.endif
lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}_pic.a ${DPADD} \
${SHLIB_LDSTARTFILE} ${SHLIB_LDENDFILE}
@ -217,28 +196,13 @@ lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}_pic.a ${DPADD} \
@rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
.if (${SHLIB_TYPE} == "a.out")
$(LD) -x -Bshareable -Bforcearchive \
-o ${.TARGET} lib${LIB}_pic.a -nostdlib -L${BUILDDIR}/usr/lib ${LDADD}
-o ${.TARGET} lib${LIB}_pic.a ${LDADD}
.elif (${SHLIB_TYPE} == "ELF")
$(LD) -x -shared -o ${.TARGET} \
-soname lib${LIB}.so.${SHLIB_SOVERSION} ${SHLIB_LDSTARTFILE} \
--whole-archive lib${LIB}_pic.a --no-whole-archive \
-L${BUILDDIR}/usr/lib ${LDADD} ${SHLIB_LDENDFILE}
--whole-archive lib${LIB}_pic.a --no-whole-archive ${LDADD} \
${SHLIB_LDENDFILE}
.endif
.if defined(OBJDIR) && !defined(NOINSTALL)
@echo install -d ${BUILDDIR}${LIBDIR}
@install -d ${BUILDDIR}${LIBDIR}
@echo ${BUILDDIR}${LIBDIR}/${.TARGET} '->' `pwd`/${.TARGET};
@rm -f ${BUILDDIR}${LIBDIR}/${.TARGET};
@ln -s `pwd`/${.TARGET} ${BUILDDIR}${LIBDIR}/${.TARGET};
.if (${SHLIB_TYPE} == "ELF")
rm -f ${BUILDDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}
ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
${BUILDDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}
rm -f ${BUILDDIR}${LIBDIR}/lib${LIB}.so
ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
${BUILDDIR}${LIBDIR}/lib${LIB}.so
.endif # SHLIB_TYPE == ELF
.endif # defined(OBJDIR)
LOBJS+= ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}
LLIBS?= -lc
@ -262,12 +226,6 @@ afterdepend: .depend
mv $$TMP .depend)
.endif
# Define NOINSTALL if this is a library that is used during the build
# only, and should not be installed into DESTDIR.
.if defined(NOINSTALL)
libinstall::
.endif
.if !target(libinstall)
libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a
.if !defined(UPDATE)

View File

@ -1,36 +1,11 @@
# $NetBSD: bsd.own.mk,v 1.49 1997/05/30 21:46:02 cjs Exp $
# $NetBSD: bsd.own.mk,v 1.50 1997/05/31 21:21:58 cjs Exp $
# This file may be included multiple times without harm.
# Use global build config file if we have one
.if defined(MAKECONF) && exists(${MAKECONF})
.include "${MAKECONF}"
.elif exists(/etc/mk.conf)
.include "/etc/mk.conf"
.endif
# BUILDCONF is our build configuration file. Search upwards in
# the tree starting in the current directory for it.
.if ! defined(BUILDCONF)
BUILDCONF != \
d=${.CURDIR}; \
while [ $$d != / ]; do \
if [ -f $$d/Build.conf ]; then \
break; \
fi; \
d=`dirname $$d`; \
done; \
if [ -f $$d/Build.conf ]; then \
echo $$d/Build.conf; \
else \
echo; \
fi
MAKEFLAGS += "BUILDCONF=\"${BUILDCONF}\""
.endif
.if exists(${BUILDCONF})
.include "${BUILDCONF}"
.endif
# Defining `SKEY' causes support for S/key authentication to be compiled in.
SKEY= yes
# Defining `KERBEROS' causes support for Kerberos authentication to be
@ -45,55 +20,6 @@ SKEY= yes
BSDSRCDIR?= /usr/src
BSDOBJDIR?= /usr/obj
# set OBJDIR to our actual tree for this build, if we use one
.if ! defined(OBJDIR)
.if defined(BSDOBJDIR)
.if defined(USR_OBJMACHINE)
OBJDIR= ${BSDOBJDIR}.${MACHINE}
.else
OBJDIR= ${BSDOBJDIR}
.endif
.endif
.endif
.if defined(OBJDIR) && ! exists(${OBJDIR})
.undef OBJDIR
.endif
# Don't use a build directory at all if we're not under BSDSRCDIR. This is
# a bit of a hack; we should possibly generalise object directories so that
# they can be used outside the BSD tree.
.if defined(BSDSRCDIR)
insrcdir != \
x=${.CURDIR}; \
if [ \"$${x\#${BSDSRCDIR}}\" = \"$$x\" ]; then \
echo no; \
else \
echo yes; \
fi
.if ${insrcdir} == "no"
.undef OBJDIR
.endif # ${insrcdir}
.undef insrcdir
.else
.undef OBJDIR
.endif
# BUILDDIR is where we install libraries, include files, etc. that
# are used during the build. If no build tree (OBJDIR) is available,
# this is DESTDIR or just nothing at all (root of current system).
.if ! defined(BUILDDIR)
.if defined(OBJDIR) && exists(${OBJDIR})
.if defined(OBJMACHINE) && !defined(USR_OBJMACHINE)
BUILDDIR= ${OBJDIR}/build.${MACHINE}
.else
BUILDDIR= ${OBJDIR}/build
.endif # defined(OBJMACHINE)
.else
BUILDDIR= ${DESTDIR}
.undef OBJDIR # we are really building against DESTDIR, not BUILDDIR
.endif # defined(OBJDIR) && exists(${OBJDIR})
.endif # ! defined(BUILDDIR)
BINGRP?= bin
BINOWN?= bin
BINMODE?= 555

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.prog.mk,v 1.85 1997/05/26 03:58:41 cjs Exp $
# $NetBSD: bsd.prog.mk,v 1.86 1997/05/31 21:21:59 cjs Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.if exists(${.CURDIR}/../Makefile.inc)
@ -17,43 +17,44 @@ CFLAGS+= ${COPTS}
# ELF platforms depend on crtbegin.o and crtend.o
.if (${MACHINE_ARCH} == "alpha") || \
(${MACHINE_ARCH} == "powerpc")
LIBCRTBEGIN?= ${BUILDDIR}/usr/lib/crtbegin.o
LIBCRTEND?= ${BUILDDIR}/usr/lib/crtend.o
LIBCRTBEGIN?= ${DESTDIR}/usr/lib/crtbegin.o
LIBCRTEND?= ${DESTDIR}/usr/lib/crtend.o
.else
LIBCRTBEGIN?=
LIBCRTEND?=
.endif
LIBCRT0?= ${BUILDDIR}/usr/lib/crt0.o
LIBC?= ${BUILDDIR}/usr/lib/libc.a
LIBC_PIC?= ${BUILDDIR}/usr/lib/libc_pic.a
LIBCOMPAT?= ${BUILDDIR}/usr/lib/libcompat.a
LIBCRYPT?= ${BUILDDIR}/usr/lib/libcrypt.a
LIBCURSES?= ${BUILDDIR}/usr/lib/libcurses.a
LIBDBM?= ${BUILDDIR}/usr/lib/libdbm.a
LIBDES?= ${BUILDDIR}/usr/lib/libdes.a
LIBEDIT?= ${BUILDDIR}/usr/lib/libedit.a
LIBGCC?= ${BUILDDIR}/usr/lib/libgcc.a
LIBGNUMALLOC?= ${BUILDDIR}/usr/lib/libgnumalloc.a
LIBKDB?= ${BUILDDIR}/usr/lib/libkdb.a
LIBKRB?= ${BUILDDIR}/usr/lib/libkrb.a
LIBKVM?= ${BUILDDIR}/usr/lib/libkvm.a
LIBL?= ${BUILDDIR}/usr/lib/libl.a
LIBM?= ${BUILDDIR}/usr/lib/libm.a
LIBMP?= ${BUILDDIR}/usr/lib/libmp.a
LIBNTP?= ${BUILDDIR}/usr/lib/libntp.a
LIBPC?= ${BUILDDIR}/usr/lib/libpc.a
LIBPCAP?= ${BUILDDIR}/usr/lib/libpcap.a
LIBPLOT?= ${BUILDDIR}/usr/lib/libplot.a
LIBRESOLV?= ${BUILDDIR}/usr/lib/libresolv.a
LIBRPCSVC?= ${BUILDDIR}/usr/lib/librpcsvc.a
LIBSKEY?= ${BUILDDIR}/usr/lib/libskey.a
LIBTERMCAP?= ${BUILDDIR}/usr/lib/libtermcap.a
LIBTELNET?= ${BUILDDIR}/usr/lib/libtelnet.a
LIBUTIL?= ${BUILDDIR}/usr/lib/libutil.a
LIBWRAP?= ${BUILDDIR}/usr/lib/libwrap.a
LIBY?= ${BUILDDIR}/usr/lib/liby.a
LIBZ?= ${BUILDDIR}/usr/lib/libz.a
LIBCRT0?= ${DESTDIR}/usr/lib/crt0.o
LIBC?= ${DESTDIR}/usr/lib/libc.a
LIBC_PIC?= ${DESTDIR}/usr/lib/libc_pic.a
LIBCOMPAT?= ${DESTDIR}/usr/lib/libcompat.a
LIBCRYPT?= ${DESTDIR}/usr/lib/libcrypt.a
LIBCURSES?= ${DESTDIR}/usr/lib/libcurses.a
LIBDBM?= ${DESTDIR}/usr/lib/libdbm.a
LIBDES?= ${DESTDIR}/usr/lib/libdes.a
LIBEDIT?= ${DESTDIR}/usr/lib/libedit.a
LIBGCC?= ${DESTDIR}/usr/lib/libgcc.a
LIBGNUMALLOC?= ${DESTDIR}/usr/lib/libgnumalloc.a
LIBKDB?= ${DESTDIR}/usr/lib/libkdb.a
LIBKRB?= ${DESTDIR}/usr/lib/libkrb.a
LIBKVM?= ${DESTDIR}/usr/lib/libkvm.a
LIBL?= ${DESTDIR}/usr/lib/libl.a
LIBM?= ${DESTDIR}/usr/lib/libm.a
LIBMP?= ${DESTDIR}/usr/lib/libmp.a
LIBNTP?= ${DESTDIR}/usr/lib/libntp.a
LIBPC?= ${DESTDIR}/usr/lib/libpc.a
LIBPCAP?= ${DESTDIR}/usr/lib/libpcap.a
LIBPLOT?= ${DESTDIR}/usr/lib/libplot.a
LIBPOSIX?= ${DESTDIR}/usr/lib/libposix.a
LIBRESOLV?= ${DESTDIR}/usr/lib/libresolv.a
LIBRPCSVC?= ${DESTDIR}/usr/lib/librpcsvc.a
LIBSKEY?= ${DESTDIR}/usr/lib/libskey.a
LIBTERMCAP?= ${DESTDIR}/usr/lib/libtermcap.a
LIBTELNET?= ${DESTDIR}/usr/lib/libtelnet.a
LIBUTIL?= ${DESTDIR}/usr/lib/libutil.a
LIBWRAP?= ${DESTDIR}/usr/lib/libwrap.a
LIBY?= ${DESTDIR}/usr/lib/liby.a
LIBZ?= ${DESTDIR}/usr/lib/libz.a
.if defined(SHAREDSTRINGS)
CLEANFILES+=strings
@ -89,17 +90,17 @@ LOBJS+= ${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}
.if defined(OBJS) && !empty(OBJS)
.NOPATH: ${OBJS}
.if defined(BUILDDIR)
# link against the libs in BUILDDIR
.if defined(DESTDIR)
${PROG}: ${LIBCRT0} ${DPSRCS} ${OBJS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}
${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} -nostdlib -L${BUILDDIR}/usr/lib ${LIBCRT0} ${LIBCRTBEGIN} ${OBJS} ${LDADD} -lgcc -lc -lgcc ${LIBCRTEND}
${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} -nostdlib -L${DESTDIR}/usr/lib ${LIBCRT0} ${LIBCRTBEGIN} ${OBJS} ${LDADD} -lgcc -lc -lgcc ${LIBCRTEND}
.else
# link against libs in system we're running
${PROG}: ${LIBCRT0} ${DPSRCS} ${OBJS} ${LIBC} ${LIBCRTBEGIN} ${LIBCRTEND} ${DPADD}
${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${OBJS} ${LDADD}
.endif # defined(BUILDDIR)
.endif # defined(DESTDIR)
.endif # defined(OBJS) && !empty(OBJS)
.if !defined(MAN)

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.subdir.mk,v 1.23 1997/05/27 17:45:59 cjs Exp $
# $NetBSD: bsd.subdir.mk,v 1.24 1997/05/31 21:22:00 cjs Exp $
# @(#)bsd.subdir.mk 8.1 (Berkeley) 6/8/93
.include <bsd.own.mk>

View File

@ -1,11 +1,11 @@
# $NetBSD: bsd.sys.mk,v 1.7 1997/05/27 18:09:00 cjs Exp $
# $NetBSD: bsd.sys.mk,v 1.8 1997/05/31 21:22:01 cjs Exp $
#
# Overrides used for NetBSD source tree builds.
CFLAGS+= -Werror
.if defined(BUILDDIR)
CPPFLAGS+= -nostdinc -idirafter ${BUILDDIR}/usr/include
.if defined(DESTDIR)
CFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include
.endif
# Helpers for cross-compiling

View File

@ -1,4 +1,4 @@
# $NetBSD: sys.mk,v 1.32 1997/05/27 18:09:02 cjs Exp $
# $NetBSD: sys.mk,v 1.33 1997/05/31 21:22:02 cjs Exp $
# @(#)sys.mk 8.2 (Berkeley) 3/21/94
unix?= We run NetBSD.
@ -28,8 +28,6 @@ CXXFLAGS?= ${CFLAGS}
COMPILE.cc?= ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c
LINK.cc?= ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS}
# Note: CPPFLAGS is passed to all programs that pass the input
# through cpp (cc, pc, etc.)
CPP?= cpp
CPPFLAGS?=

View File

@ -1,10 +1,8 @@
# $NetBSD: Makefile,v 1.20 1997/05/26 03:59:14 cjs Exp $
# $NetBSD: Makefile,v 1.21 1997/05/31 21:22:03 cjs Exp $
# The ``rm -rf''s used below are safe because rm doesn't follow symbolic
# links.
.include <bsd.own.mk> # for BUILDDIR
SUBDIR+= arch/${MACHINE}
.if (${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "mips" && \
@ -22,66 +20,8 @@ LDIRS= dev net netatalk netinet netccitt netiso netns netnatm nfs miscfs \
.include <bsd.own.mk>
SYS_INCLUDE?= copies
.PHONY: includes
.if defined(BUILDDIR)
includes: build_${SYS_INCLUDE}
@echo installing ${LFILES}
@-for i in ${LFILES}; do \
rm -f ${BUILDDIR}/usr/include/$$i; \
ln -s sys/$$i ${BUILDDIR}/usr/include/$$i; \
done
@echo installing ${MFILES}
@-for i in ${MFILES}; do \
rm -f ${BUILDDIR}/usr/include/$$i; \
ln -s machine/$$i ${BUILDDIR}/usr/include/$$i; \
done
.else
includes: install_${SYS_INCLUDE}
.endif
build_copies:
@echo copies: ${LDIRS}
@-for i in ${LDIRS}; do \
rm -rf ${BUILDDIR}/usr/include/$$i; \
${INSTALL} -d -m 755 ${BUILDDIR}/usr/include/$$i ; \
done
pax -rw -pa -L \
`find ${LDIRS} -follow -type f -name '*.h' '!' -path \
'netiso/xebec/*' -print` ${BUILDDIR}/usr/include
rm -rf ${BUILDDIR}/usr/include/machine
${INSTALL} -d -m 755 ${BUILDDIR}/usr/include/machine
pax -rw -pa -s "|arch/${MACHINE}/include||" \
arch/${MACHINE}/include/*.h \
${BUILDDIR}/usr/include/machine
rm -rf ${BUILDDIR}/usr/include/${MACHINE_ARCH}
if test ${MACHINE} != ${MACHINE_ARCH} -a \
-d arch/${MACHINE_ARCH}/include; then \
${INSTALL} -d -m 755 ${BUILDDIR}/usr/include/${MACHINE_ARCH}; \
pax -rw -pa -s "|arch/${MACHINE_ARCH}/include||" \
arch/${MACHINE_ARCH}/include/*.h \
${BUILDDIR}/usr/include/${MACHINE_ARCH}; \
else \
ln -s machine ${BUILDDIR}/usr/include/${MACHINE_ARCH}; \
fi
build_symlinks:
@echo symlinks: ${LDIRS}
@for i in ${LDIRS}; do \
rm -rf ${BUILDDIR}/usr/include/$$i; \
ln -s /sys/$$i ${BUILDDIR}/usr/include/$$i; \
done
rm -rf ${BUILDDIR}/usr/include/machine
ln -s /sys/arch/${MACHINE}/include ${BUILDDIR}/usr/include/machine
rm -rf ${BUILDDIR}/usr/include/${MACHINE_ARCH}
if test ${MACHINE} != ${MACHINE_ARCH} -a \
-d arch/${MACHINE_ARCH}/include ; then \
ln -s /sys/arch/${MACHINE_ARCH}/include \
${BUILDDIR}/usr/include/${MACHINE_ARCH} ; \
else \
ln -s machine ${BUILDDIR}/usr/include/${MACHINE_ARCH} ; \
fi
install: install_${SYS_INCLUDE}
.PHONY: includes
includes: ${SYS_INCLUDE}
@echo installing ${LFILES}
@-for i in ${LFILES}; do \
rm -f ${DESTDIR}/usr/include/$$i; \
@ -93,8 +33,8 @@ install: install_${SYS_INCLUDE}
ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \
done
.PHONY: install_copies
install_copies:
.PHONY: copies
copies:
@echo copies: ${LDIRS}
@-for i in ${LDIRS}; do \
rm -rf ${DESTDIR}/usr/include/$$i; \
@ -122,8 +62,8 @@ install_copies:
ln -s machine ${DESTDIR}/usr/include/${MACHINE_ARCH}; \
fi
.PHONY: install_symlinks
install_symlinks:
.PHONY: symlinks
symlinks:
@echo symlinks: ${LDIRS}
@for i in ${LDIRS}; do \
rm -rf ${DESTDIR}/usr/include/$$i; \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 1997/05/30 13:43:28 cjs Exp $
# $NetBSD: Makefile,v 1.5 1997/05/31 21:22:04 cjs Exp $
LIB= sa
@ -6,9 +6,6 @@ NOPIC=
NOPROFILE=
OBJMACHINE=
# this library is used only for the build
NOINSTALL=1
CPPFLAGS+= ${DEFS} ${INCL}
CFLAGS+= -fomit-frame-pointer -Wall
NO_NET=
@ -53,4 +50,7 @@ S_MACHSA=${S}/arch/atari/stand/libsa
.PATH: ${S_SA} ${S_KERN}
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,13 +1,10 @@
# $NetBSD: Makefile,v 1.4 1997/05/30 13:43:29 cjs Exp $
# $NetBSD: Makefile,v 1.5 1997/05/31 21:22:05 cjs Exp $
LIB=bug
NOPIC=
NOPROFILE=
# this library is used only for the build
NOINSTALL=1
S=${.CURDIR}/../../../..
DIR_SA=$S/lib/libsa
@ -16,4 +13,7 @@ CFLAGS+=-I${.CURDIR}/../../include -I${DIR_SA}
SRCS= delay.c diskrd.c diskwr.c getbrdid.c inchr.c instat.c outln.c \
outstr.c putchar.c return.c rtc_rd.c
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 1997/05/30 13:43:31 cjs Exp $
# $NetBSD: Makefile,v 1.5 1997/05/31 21:22:06 cjs Exp $
LIB=sa
@ -7,9 +7,6 @@ CLEANFILES+=SRT0.o
NOPIC=nopic
NOPROFILE=noprofile
# this library is used only for the build
NOINSTALL=1
# Logically src/sys
S=${.CURDIR}/../../../..
DIR_SA=$S/lib/libsa
@ -43,4 +40,7 @@ CFLAGS= -O2 ${COPTS} ${DEFS} ${DBG} ${INCL}
all: libsa.a SRT0.o
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,13 +1,10 @@
# $NetBSD: Makefile,v 1.13 1997/05/30 13:43:32 cjs Exp $
# $NetBSD: Makefile,v 1.14 1997/05/31 21:22:07 cjs Exp $
LIB=sa
NOPIC=nopic
NOPROFILE=noprofile
# this library is used only for the build
NOINSTALL=1
# Logically src/sys
S=${.CURDIR}/../../../..
DIR_SA=$S/lib/libsa
@ -43,4 +40,7 @@ CFLAGS= -O ${COPTS} ${DEFS} ${DBG} ${INCL}
all: libsa.a SRT0.o SRT1.o
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,13 +1,10 @@
# $NetBSD: Makefile,v 1.4 1997/05/30 13:43:33 cjs Exp $
# $NetBSD: Makefile,v 1.5 1997/05/31 21:22:09 cjs Exp $
LIB=sa
NOPIC=nopic
NOPROFILE=noprofile
# this library is used only for the build
NOINSTALL=1
# Logically src/sys
S=${.CURDIR}/../../../..
DIR_SA=$S/lib/libsa
@ -41,4 +38,7 @@ CFLAGS= -O ${COPTS} ${DEFS} ${DBG} ${INCL}
all: libsa.a SRT0.o SRT1.o
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,11 +1,8 @@
# $NetBSD: Makefile,v 1.15 1997/05/30 01:55:09 cjs Exp $
# $NetBSD: Makefile,v 1.16 1997/05/31 21:22:10 cjs Exp $
LIB= compat
NOPIC=
# this library needed only during build
NOINSTALL=1
CPPFLAGS= ${COMPATCPPFLAGS}
SRCS= compat_exec.c compat_util.c kern_exit_43.c kern_info_09.c \
@ -17,4 +14,7 @@ SRCS= compat_exec.c compat_util.c kern_exit_43.c kern_info_09.c \
SRCS+= kern_ipc_10.c
.endif
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,11 +1,8 @@
# $NetBSD: Makefile,v 1.35 1997/05/30 01:55:10 cjs Exp $
# $NetBSD: Makefile,v 1.36 1997/05/31 21:22:11 cjs Exp $
LIB= kern
NOPIC=
# this library is needed only during build
NOINSTALL=1
M= ${.CURDIR}/arch/${MACHINE_ARCH}
CPPFLAGS= -I$M ${KERNCPPFLAGS} ${KERNMISCCPPFLAGS}
@ -32,6 +29,9 @@ CLEANFILES+= lib${LIB}.o lib${LIB}.po
mcount.po: mcount.o
cp mcount.o mcount.po
# only needed during build
libinstall::
.include <bsd.lib.mk>
lib${LIB}.o:: ${OBJS}

View File

@ -1,12 +1,9 @@
# $NetBSD: Makefile,v 1.18 1997/05/30 01:55:11 cjs Exp $
# $NetBSD: Makefile,v 1.19 1997/05/31 21:22:12 cjs Exp $
LIB= sa
NOPIC=
NOPROFILE=
# this library needed only during build
NOINSTALL=1
SA_USE_CREAD?= no
SA_INCLUDE_NET?= yes
@ -39,6 +36,9 @@ SRCS+= bootp.c rarp.c bootparam.c
# boot filesystems
SRCS+= ufs.c nfs.c cd9660.c
# only needed during build
libinstall::
.include <bsd.lib.mk>
lib${LIB}.o:: ${OBJS}

View File

@ -1,12 +1,9 @@
# $NetBSD: Makefile,v 1.5 1997/05/30 01:55:12 cjs Exp $
# $NetBSD: Makefile,v 1.6 1997/05/31 21:22:13 cjs Exp $
LIB= z
NOPIC=
NOPROFILE=
# this library needed only during build
NOINSTALL=1
CPPFLAGS= -I. ${ZCPPFLAGS} ${ZMISCCPPFLAGS} -D_ZLIB_PRIVATE
# files to be copied down from libz.
@ -21,6 +18,9 @@ SRCS= ${LIBZSRCS}
# Files to clean up
CLEANFILES+= lib${LIB}.o
# only needed during build
libinstall::
.include <bsd.lib.mk>
lib${LIB}.o:: ${OBJS}

View File

@ -38,7 +38,7 @@ NOPROFILE=
NOPIC=
NOLINT=
# this library is used only for the build
NOINSTALL=1
# only needed during build
libinstall::
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 1997/05/26 03:59:47 cjs Exp $
# $NetBSD: Makefile,v 1.13 1997/05/31 21:22:15 cjs Exp $
CFLAGS+=-DYP
@ -10,13 +10,11 @@ MLINKS= rpc.bootparamd.8 bootparamd.8
DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc
.include <bsd.own.mk> # for BUILDDIR
bootparam_prot_svc.c: ${BUILDDIR}/usr/include/rpcsvc/bootparam_prot.x
bootparam_prot_svc.c: ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x
rm -f bootparam_prot.x
ln -s ${BUILDDIR}/usr/include/rpcsvc/bootparam_prot.x .
ln -s ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x .
rm -f bootparam_prot.h
ln -s ${BUILDDIR}/usr/include/rpcsvc/bootparam_prot.h .
ln -s ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.h .
rpcgen -m -o $@ bootparam_prot.x
CLEANFILES += bootparam_prot_svc.c bootparam_prot.x bootparam_prot.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 1997/05/26 03:59:53 cjs Exp $
# $NetBSD: Makefile,v 1.4 1997/05/31 21:22:17 cjs Exp $
PROG= rpc.lockd
SRCS= nlm_prot_svc.c lockd.c lock_proc.c
@ -12,13 +12,11 @@ LDADD= -lrpcsvc
CLEANFILES= nlm_prot_svc.c nlm_prot.x nlm_prot.h test
.include <bsd.own.mk> # for BUILDDIR
nlm_prot_svc.c: ${BUILDDIR}/usr/include/rpcsvc/nlm_prot.x
nlm_prot_svc.c: ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x
rm -f nlm_prot.x
ln -s ${BUILDDIR}/usr/include/rpcsvc/nlm_prot.x .
ln -s ${DESTDIR}/usr/include/rpcsvc/nlm_prot.x .
rm -f nlm_prot.h
ln -s ${BUILDDIR}/usr/include/rpcsvc/nlm_prot.h .
ln -s ${DESTDIR}/usr/include/rpcsvc/nlm_prot.h .
rpcgen -m -o $@ nlm_prot.x
test: ${.CURDIR}/test.c

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 1997/05/26 04:00:02 cjs Exp $
# $NetBSD: Makefile,v 1.4 1997/05/31 21:22:18 cjs Exp $
PROG= rpc.statd
SRCS= sm_inter_svc.c statd.c stat_proc.c
@ -12,13 +12,11 @@ LDADD= -lrpcsvc
CLEANFILES+= sm_inter_svc.c sm_inter.x sm_inter.h test
.include <bsd.own.mk> # for BUILDDIR
sm_inter_svc.c: ${RPCSRC} ${BUILDDIR}/usr/include/rpcsvc/sm_inter.x
sm_inter_svc.c: ${RPCSRC} ${DESTDIR}/usr/include/rpcsvc/sm_inter.x
rm -f sm_inter.x
ln -s ${BUILDDIR}/usr/include/rpcsvc/sm_inter.x .
ln -s ${DESTDIR}/usr/include/rpcsvc/sm_inter.x .
rm -f sm_inter.h
ln -s ${BUILDDIR}/usr/include/rpcsvc/sm_inter.h .
ln -s ${DESTDIR}/usr/include/rpcsvc/sm_inter.h .
rpcgen -m -o $@ sm_inter.x
test: ${.CURDIR}/test.c