NATIVE = native
-GCC = gcc -O2
+GCC = gcc
CFLAGS = -g
-CXXFLAGS = -g -O2 -fexternal-templates
+GNUCFLAGS= -g -O2
+CXXFLAGS = -g -O2
MAKEINFOFLAGS =
log = 1>$(canonhost)-build-log 2>&1
ifeq ($(canonhost),rs6000-lynx-lynxos)
canonhost := rs6000-lynx
endif
+ifeq ($(canonhost),i386-unknown-linux)
+canonhost := i386-linux
+endif
+ifeq ($(canonhost),i486-unknown-linux)
+canonhost := i486-linux
+endif
+ifeq ($(canonhost),i586-unknown-linux)
+canonhost := i486-linux
+endif
+ifeq ($(canonhost),i386-unknown-linuxelf)
+canonhost := i386-linuxelf
+endif
+ifeq ($(canonhost),i486-unknown-linuxelf)
+canonhost := i486-linuxelf
+endif
+ifeq ($(canonhost),i586-unknown-linuxelf)
+canonhost := i486-linuxelf
+endif
#
# The following TARGETS variable settings probably ought to
all: all-cygnus
endif
-ifeq ($(canonhost),alpha-dec-osf1.3)
+ifeq ($(patsubst alpha-dec-osf%,alpha,$(canonhost)),alpha)
TARGETS = $(NATIVE)
CC = cc
all: all-cygnus
SHELL=/bin/bash
endif
+ifeq ($(patsubst %-linux,linux,$(patsubst %-linuxelf,linux,$(canonhost))),linux)
+TARGETS = $(NATIVE)
+all: all-cygnus
+endif
+
FLAGS_TO_PASS := \
"GCC=$(GCC)" \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
+ "GNUCFLAGS=$(GNUCFLAGS)" \
"CXXFLAGS=$(CXXFLAGS)" \
"host=$(canonhost)" \
"MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
FLAGS_TO_PASS := $(FLAGS_TO_PASS) "GNU_MAKE=$(MAKE)" "CONFIG_SHELL=/bin/bash"
endif
+ifeq ($(patsubst %-linux,linux,$(patsubst %-linuxelf,linux,$(canonhost))),linux)
+FLAGS_TO_PASS := $(FLAGS_TO_PASS) "GNU_MAKE=$(MAKE)"
+endif
+
all-emacs:
@echo build started at `date`
[ -d $(INSTALLDIR) ] || mkdir $(INSTALLDIR)