Merging in 2.0.2.
This commit is contained in:
@@ -87,6 +87,15 @@
|
||||
# These build variables can be set explicitly for further control if
|
||||
# desired, but should in general not need attention.
|
||||
#
|
||||
# (Tools.)
|
||||
#
|
||||
# PYTHON_INTERPRETER Location of Python interpreter.
|
||||
# Default is "/usr/bin/env python".
|
||||
#
|
||||
# This may need to be changed on some platforms; but the configure
|
||||
# script is supposed to take care of it for you. If that fails, or
|
||||
# picks the wrong thing, please file a bug report.
|
||||
#
|
||||
# (Locations.)
|
||||
#
|
||||
# BUILDTOP Top of tree where .o files go.
|
||||
@@ -96,7 +105,7 @@
|
||||
# the build. Default is $(WORKDIR)/tooldir.
|
||||
#
|
||||
# INSTALLTOP Staging directory for installation.
|
||||
# Default is $(WORKDIR)/install
|
||||
# Default is $(WORKDIR)/install.
|
||||
#
|
||||
# Probably the only reason to change these would be if you're short on
|
||||
# diskspace in $(WORKDIR).
|
||||
@@ -470,7 +479,7 @@ MORECFLAGS+=-I$(INSTALLTOP)/include
|
||||
LDFLAGS+=-nostdlib -L$(INSTALLTOP)/lib $(INSTALLTOP)/lib/crt0.o
|
||||
MORELIBS+=-lc
|
||||
LIBDEPS+=$(INSTALLTOP)/lib/crt0.o $(INSTALLTOP)/lib/libc.a
|
||||
LIBS+=-ltest161
|
||||
|
||||
############################################################
|
||||
|
||||
# end.
|
||||
|
@@ -56,7 +56,7 @@ all-local: $(MYBUILDDIR) .WAIT $(MYBUILDDIR)/$(_LIB_)
|
||||
install-staging-local: $(TOOLDIR)/hostlib .WAIT $(TOOLDIR)/hostlib/$(_LIB_)
|
||||
$(TOOLDIR)/hostlib/$(_LIB_): $(MYBUILDDIR)/$(_LIB_)
|
||||
rm -f $(.TARGET)
|
||||
ln $(MYBUILDDIR)/$(_LIB_) $(.TARGET) >/dev/null 2>&1 || \
|
||||
ln $(MYBUILDDIR)/$(_LIB_) $(.TARGET) || \
|
||||
cp $(MYBUILDDIR)/$(_LIB_) $(.TARGET)
|
||||
|
||||
install-local:
|
||||
|
@@ -76,14 +76,14 @@ cleanhostprog:
|
||||
install-staging-local: $(_INSTALLDIR_) .WAIT $(_INSTALLDIR_)/$(_PROG_)
|
||||
$(_INSTALLDIR_)/$(_PROG_): $(MYBUILDDIR)/$(_PROG_)
|
||||
rm -f $(.TARGET)
|
||||
ln $(MYBUILDDIR)/$(_PROG_) $(.TARGET) >/dev/null 2>&1 || \
|
||||
ln $(MYBUILDDIR)/$(_PROG_) $(.TARGET) || \
|
||||
cp $(MYBUILDDIR)/$(_PROG_) $(.TARGET)
|
||||
|
||||
.if defined(HOSTBINDIR)
|
||||
install-local: install-hostprog
|
||||
install-hostprog: $(OSTREE)$(HOSTBINDIR) $(MYBUILDDIR)/$(_PROG_)
|
||||
rm -f $(OSTREE)$(HOSTBINDIR)/$(_PROG_)
|
||||
ln $(MYBUILDDIR)/$(_PROG_) $(OSTREE)$(HOSTBINDIR)/$(_PROG_) >/dev/null 2>&1 || \
|
||||
ln $(MYBUILDDIR)/$(_PROG_) $(OSTREE)$(HOSTBINDIR)/$(_PROG_) || \
|
||||
cp $(MYBUILDDIR)/$(_PROG_) $(OSTREE)$(HOSTBINDIR)/$(_PROG_)
|
||||
.else
|
||||
install-local:
|
||||
|
@@ -163,9 +163,6 @@ includelinks:
|
||||
clean:
|
||||
rm -f *.o *.a tags $(KERNEL)
|
||||
rm -rf includelinks
|
||||
@ABSTOP=$$(readlink -f $(TOP))
|
||||
rm -f $(OSTREE)/.src
|
||||
rm -f $(TOP)/.root
|
||||
|
||||
distclean cleandir: clean
|
||||
rm -f .depend
|
||||
@@ -191,9 +188,6 @@ install:
|
||||
cp $(KERNEL) $(OSTREE)/$(KERNEL)-$(CONFNAME)
|
||||
-rm -f $(OSTREE)/$(KERNEL)
|
||||
ln -s $(KERNEL)-$(CONFNAME) $(OSTREE)/$(KERNEL)
|
||||
@ABSTOP=$$(readlink -f $(TOP))
|
||||
ln -Tsf $(ABSTOP) $(OSTREE)/.src
|
||||
ln -Tsf $(OSTREE) $(ABSTOP)/.root
|
||||
|
||||
#
|
||||
# Run tags on all the sources and header files. This is probably not
|
||||
|
@@ -59,13 +59,13 @@ all-local: $(MYBUILDDIR) .WAIT $(MYBUILDDIR)/$(_LIB_)
|
||||
install-staging-local: $(INSTALLTOP)$(LIBDIR) .WAIT $(INSTALLTOP)$(LIBDIR)/$(_LIB_)
|
||||
$(INSTALLTOP)$(LIBDIR)/$(_LIB_): $(MYBUILDDIR)/$(_LIB_)
|
||||
rm -f $(.TARGET)
|
||||
ln $(MYBUILDDIR)/$(_LIB_) $(.TARGET) >/dev/null 2>&1 || \
|
||||
ln $(MYBUILDDIR)/$(_LIB_) $(.TARGET) || \
|
||||
cp $(MYBUILDDIR)/$(_LIB_) $(.TARGET)
|
||||
|
||||
install-local: $(OSTREE)$(LIBDIR) $(MYBUILDDIR)/$(_LIB_)
|
||||
@echo "Warning: manually installing library without relinking anything"
|
||||
rm -f $(OSTREE)$(LIBDIR)/$(_LIB_)
|
||||
ln $(MYBUILDDIR)/$(_LIB_) $(OSTREE)$(LIBDIR)/$(_LIB_) >/dev/null 2>&1 || \
|
||||
ln $(MYBUILDDIR)/$(_LIB_) $(OSTREE)$(LIBDIR)/$(_LIB_) || \
|
||||
cp $(MYBUILDDIR)/$(_LIB_) $(OSTREE)$(LIBDIR)/$(_LIB_)
|
||||
|
||||
# Build the library.
|
||||
|
@@ -44,21 +44,24 @@ install-staging-local: $(INSTALLTOP)$(MANDIR) .WAIT
|
||||
install-staging-local: $(INSTALLTOP)$(MANDIR)/$(_F_)
|
||||
$(INSTALLTOP)$(MANDIR)/$(_F_): $(_F_)
|
||||
rm -f $(.TARGET)
|
||||
ln $(_F_) $(.TARGET) >/dev/null 2>&1 || cp $(_F_) $(.TARGET)
|
||||
ln $(_F_) $(.TARGET) || cp $(_F_) $(.TARGET)
|
||||
.endfor
|
||||
|
||||
install-local: $(OSTREE)$(MANDIR) .WAIT installmanpages
|
||||
installmanpages:
|
||||
.for _F_ in $(MANFILES)
|
||||
rm -f $(OSTREE)$(MANDIR)/$(_F_)
|
||||
ln $(_F_) $(OSTREE)$(MANDIR)/$(_F_) >/dev/null 2>&1 || \
|
||||
ln $(_F_) $(OSTREE)$(MANDIR)/$(_F_) || \
|
||||
cp $(_F_) $(OSTREE)$(MANDIR)/$(_F_)
|
||||
.endfor
|
||||
|
||||
# clean: remove build products (nothing to do)
|
||||
clean-local: ;
|
||||
|
||||
# Mark targets that don't represent files PHONY, to prevent various
|
||||
# lossage if files by those names appear.
|
||||
.PHONY: all all-local install-staging-local install-local installmanpages
|
||||
.PHONY: clean-local
|
||||
|
||||
# Finally, get the shared definitions for the most basic rules.
|
||||
.include "$(TOP)/mk/os161.baserules.mk"
|
||||
|
@@ -61,13 +61,13 @@ cleanprog:
|
||||
install-staging-local: $(INSTALLTOP)$(BINDIR) .WAIT $(INSTALLTOP)$(BINDIR)/$(PROG)
|
||||
$(INSTALLTOP)$(BINDIR)/$(PROG): $(MYBUILDDIR)/$(PROG)
|
||||
rm -f $(.TARGET)
|
||||
ln $(MYBUILDDIR)/$(PROG) $(.TARGET) >/dev/null 2>&1 || \
|
||||
ln $(MYBUILDDIR)/$(PROG) $(.TARGET) || \
|
||||
cp $(MYBUILDDIR)/$(PROG) $(.TARGET)
|
||||
|
||||
install-local: install-prog
|
||||
install-prog: $(OSTREE)$(BINDIR) $(MYBUILDDIR)/$(PROG)
|
||||
rm -f $(OSTREE)$(BINDIR)/$(PROG)
|
||||
ln $(MYBUILDDIR)/$(PROG) $(OSTREE)$(BINDIR)/$(PROG) >/dev/null 2>&1 || \
|
||||
ln $(MYBUILDDIR)/$(PROG) $(OSTREE)$(BINDIR)/$(PROG) || \
|
||||
cp $(MYBUILDDIR)/$(PROG) $(OSTREE)$(BINDIR)/$(PROG)
|
||||
|
||||
# Link the program.
|
||||
|
Reference in New Issue
Block a user