NATIVE = native
-GCC = gcc -O
-CFLAGS = -g
+GCC = gcc -O
+CFLAGS = -g
+CXXFLAGS = -g -O
log = 1>$(canonhost)-build-log 2>&1
tlog = 1> $(canonhost)-x-$$i-build-log 2>&1
canonhost := $(shell $(TREE)/config.sub $(host))
# Convert config.guess results to a simpler form.
+ifeq ($(canonhost),sparc-sun-solaris2.1)
+canonhost := sparc-sun-solaris2
+endif
ifeq ($(canonhost),mips-dec-ultrix4.2)
canonhost := mips-dec-ultrix
endif
# i960-vxworks m68k-coff m68k-vxworks \
# sparc-aout sparc-vxworks \
# sparclite-aout sparclitefrwcompat-aout
-CC = cc
+CC = cc +Obb2000
all: all-native
endif
"GCC=$(GCC)" \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
+ "CXXFLAGS=$(CXXFLAGS)" \
"host=$(canonhost)" \
"RELEASE_TAG=$(RELEASE_TAG)"
ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
@for i in $(TARGETS) ; do \
if [ "$$i" = "native" ] ; then \
- if [ ! -f $(canonhost)-3stage-done ] ; then \
+ if [ ! -f $(canonhost)-stamp-3stage-done ] ; then \
echo "3staging $(canonhost) native" ; \
$(MAKE) -f test-build.mk $(FLAGS_TO_PASS) $(canonhost)-stamp-3stage-done $(log) && \
echo " completed successfully" ; \
+ else \
+ true ; \
fi \
else \
echo "building $(canonhost) cross to $$i" ; \
all-cross:
[ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)
- rm -f /usr/cygnus/$(TAG)
- ln -s $(INSTALLDIR) /usr/cygnus/$(TAG)
+ rm -f $(ROOTING)/$(RELEASE_TAG)
+ ln -s $(INSTALLDIR) $(ROOTING)/$(RELEASE_TAG)
@for i in $(TARGETS) ; do \
echo "building $(canonhost) cross to $$i" ; \
$(MAKE) -f test-build.mk $(FLAGS_TO_PASS) target=$$i build=$(build) do-cygnus $(tlog) && \