48a924c561
The libredox 0.1.19 / redox_syscall 0.9.1 bump left 45 recipe lockfiles pinning libredox 0.1.18+rb0.3.1 and redox_syscall 0.9.0+rb0.3.1. The cookbook builds with --locked, so every affected recipe died with error: cannot update the lock file .../Cargo.lock because --locked was passed to prevent this which is what took out redox-driver-sys -- and with it every Red Bear driver -- during the redbear-full build. Regenerating the fork lockfiles was not enough; the recipes that consume the forks as path deps carry their own. This is step 6 of local/docs/FORK-BUMP-PATCHING-POLICY.md applied to the recipe layer. Also drop the hardcoded GCC version in recipes/libs/libstdcxx-v3: the literal include/c++/13.2.0 stopped resolving the moment the cross toolchain moved to 16.1.0, leaving -I pointing at a directory that does not exist. Now resolves the newest installed C++ header directory and fails loudly if there is none. Same failure class as the hardcoded 13.2.0 in mk/prefix.mk. Note: a few recipe-level Cargo.lock files (redox-driver-pci, cpufreqd, redbear-acmd/-ecmd/-ftdi) sit beside a recipe.toml whose [source] is path = "source", so they are not build inputs; redox-driver-pci's even references a redox-driver-core/Cargo.toml that does not exist. They are left alone rather than given meaning they do not have. redox-driver-sys now cooks clean.
144 lines
3.8 KiB
Makefile
144 lines
3.8 KiB
Makefile
# Makefile for c++tools
|
|
# Copyright (C) 2020-2026 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; see the file COPYING3. If not see
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
srcdir := @srcdir@
|
|
prefix := @prefix@
|
|
bindir := @bindir@
|
|
libexecdir := @libexecdir@
|
|
target_noncanonical := @target_noncanonical@
|
|
gcc_version := $(shell @get_gcc_base_ver@ $(srcdir)/../gcc/BASE-VER)
|
|
libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
|
|
INSTALL := @INSTALL@
|
|
INSTALL_PROGRAM := @INSTALL_PROGRAM@
|
|
INSTALL_STRIP_PROGRAM := $(srcdir)/../install-sh -c -s
|
|
AUTOCONF := @AUTOCONF@
|
|
AUTOHEADER := @AUTOHEADER@
|
|
CXX := @CXX@
|
|
CXXFLAGS := @CXXFLAGS@
|
|
PICFLAG := @PICFLAG@
|
|
LD_PICFLAG := @LD_PICFLAG@
|
|
CXXOPTS := $(CXXFLAGS) $(PICFLAG) -fno-exceptions -fno-rtti
|
|
LDFLAGS := @LDFLAGS@
|
|
exeext := @EXEEXT@
|
|
LIBIBERTY := ../libiberty/libiberty.a
|
|
VERSION.O := ../gcc/version.o
|
|
|
|
all::
|
|
|
|
mostlyclean::
|
|
rm -f $(MAPPER.O)
|
|
|
|
clean:: mostlyclean
|
|
rm -f g++-mapper-server$(exeext)
|
|
|
|
distclean:: clean
|
|
rm -f config.log config.status config.h config.cache Makefile
|
|
rm -f $(MAPPER.O:%.o=%.d)
|
|
|
|
maintainer-clean:: distclean
|
|
|
|
install::
|
|
|
|
check::
|
|
installcheck::
|
|
dvi::
|
|
pdf::
|
|
html::
|
|
info::
|
|
install-info::
|
|
install-pdf::
|
|
install-dvi::
|
|
install-man::
|
|
install-html::
|
|
|
|
install-strip: override INSTALL_PROGRAM = $(INSTALL_STRIP_PROGRAM)
|
|
ifneq ($(STRIP),)
|
|
install-strip: STRIPPROG = $(STRIP)
|
|
export STRIPPROG
|
|
endif
|
|
install-strip: install
|
|
|
|
vpath %.cc $(srcdir)
|
|
vpath %.in $(srcdir)
|
|
.SUFFIXES:
|
|
.SUFFIXES: .cc .o
|
|
|
|
# Per-source & per-directory compile flags (warning: recursive)
|
|
SRC_CXXFLAGS = $(CXXFLAGS$(patsubst $(srcdir)%,%,$1)) \
|
|
$(if $(filter-out $(srcdir)/,$1),\
|
|
$(call $0,$(dir $(patsubst %/,%,$1))))
|
|
|
|
%.o: %.cc
|
|
$(CXX) $(strip $(CXXOPTS) $(call SRC_CXXFLAGS,$<) $(CXXINC)) \
|
|
-MMD -MP -MF ${@:.o=.d} -c -o $@ $<
|
|
|
|
ifeq (@CXX_AUX_TOOLS@,yes)
|
|
|
|
all::g++-mapper-server$(exeext)
|
|
|
|
ifneq ($(PICFLAG),)
|
|
override LIBIBERTY := ../libiberty/pic/libiberty.a
|
|
endif
|
|
|
|
MAPPER.O := server.o resolver.o
|
|
CODYLIB = ../libcody/libcody.a
|
|
CXXINC += -I$(srcdir)/../libcody -I$(srcdir)/../include -I$(srcdir)/../gcc -I. -I../gcc
|
|
g++-mapper-server$(exeext): $(MAPPER.O) $(CODYLIB)
|
|
+$(CXX) $(LDFLAGS) $(PICFLAG) $(LD_PICFLAG) -o $@ $^ $(LIBIBERTY)
|
|
|
|
# copy to gcc dir so tests there can run
|
|
all::../gcc/g++-mapper-server$(exeext)
|
|
|
|
../gcc/g++-mapper-server$(exeext): g++-mapper-server$(exeext)
|
|
$(INSTALL) $< $@
|
|
|
|
install::
|
|
$(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(libexecsubdir)
|
|
$(INSTALL_PROGRAM) g++-mapper-server$(exeext) $(DESTDIR)$(libexecsubdir)
|
|
endif
|
|
|
|
ifneq ($(MAINTAINER),)
|
|
override MAINTAINER += $1
|
|
endif
|
|
ifeq (@MAINTAINER@,yes)
|
|
MAINTAINER = $2
|
|
else
|
|
MAINTAINER = \# --enable-maintainer-mode to rebuild $1, or make MAINTAINER=touch
|
|
endif
|
|
|
|
all:: Makefile
|
|
|
|
Makefile: $(srcdir)/Makefile.in config.status
|
|
$(SHELL) ./config.status Makefile
|
|
|
|
$(srcdir)/configure: $(srcdir)/configure.ac
|
|
$(call MAINTAINER,$@,cd $(@D) && $(AUTOCONF) -W all,error)
|
|
|
|
$(srcdir)/config.h.in: $(srcdir)/configure.ac
|
|
$(call MAINTAINER,$@,cd $(@D) && $(AUTOHEADER) -f -W all,error)
|
|
|
|
config.h: config.status config.h.in
|
|
./$< --header=$@
|
|
touch $@
|
|
|
|
config.status: $(srcdir)/configure $(srcdir)/config.h.in
|
|
if test -x $@; then ./$@ -recheck; else $< @configure_args@; fi
|
|
|
|
.PHONY: all check mostlyclean clean distclean maintainer-clean
|
|
|
|
-include $(MAPPER.O:.o=.d)
|