mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
Use new config features of DejaGnu in site.exp file.
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
srcdir = .
|
srcdir = .
|
||||||
prefix = /usr/local
|
prefix = /usr/local
|
||||||
|
|
||||||
|
program_transform_name =
|
||||||
exec_prefix = $(prefix)
|
exec_prefix = $(prefix)
|
||||||
bindir = $(exec_prefix)/bin
|
bindir = $(exec_prefix)/bin
|
||||||
libdir = $(exec_prefix)/lib
|
libdir = $(exec_prefix)/lib
|
||||||
@ -34,9 +35,36 @@ CFLAGS = -g
|
|||||||
CHILLFLAGS = $(CFLAGS)
|
CHILLFLAGS = $(CFLAGS)
|
||||||
CHILL_LIB = -lchill
|
CHILL_LIB = -lchill
|
||||||
$(end-sanitize-chill)
|
$(end-sanitize-chill)
|
||||||
|
|
||||||
|
CC_FOR_TARGET = ` \
|
||||||
|
if [ -f $${rootme}/../../gcc/xgcc ] ; then \
|
||||||
|
echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
|
||||||
|
else \
|
||||||
|
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
||||||
|
echo $(CC); \
|
||||||
|
else \
|
||||||
|
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
|
||||||
|
fi; \
|
||||||
|
fi`
|
||||||
|
|
||||||
CXX = gcc
|
CXX = gcc
|
||||||
|
CXX_FOR_TARGET = ` \
|
||||||
|
if [ -f $${rootme}/../../gcc/xgcc ] ; then \
|
||||||
|
echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
|
||||||
|
else \
|
||||||
|
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
||||||
|
echo $(CXX); \
|
||||||
|
else \
|
||||||
|
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
|
||||||
|
fi; \
|
||||||
|
fi`
|
||||||
|
|
||||||
CXXFLAGS = -g -O
|
CXXFLAGS = -g -O
|
||||||
|
|
||||||
|
EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; \
|
||||||
|
then echo $${rootme}/../../expect/expect ; \
|
||||||
|
else echo expect; fi`
|
||||||
|
|
||||||
LINK= ln -s
|
LINK= ln -s
|
||||||
SUBDIRS=
|
SUBDIRS=
|
||||||
|
|
||||||
@ -44,6 +72,7 @@ RUNTEST = runtest
|
|||||||
RUNTESTFLAGS =
|
RUNTESTFLAGS =
|
||||||
FLAGS_TO_PASS = \
|
FLAGS_TO_PASS = \
|
||||||
"CC=$(CC)" \
|
"CC=$(CC)" \
|
||||||
|
"CC_FOR_TARGET=$(CC_FOR_TARGET)" \
|
||||||
"CFLAGS=$(CFLAGS)"
|
"CFLAGS=$(CFLAGS)"
|
||||||
|
|
||||||
#### host, target, and site specific Makefile frags come in here.
|
#### host, target, and site specific Makefile frags come in here.
|
||||||
@ -62,13 +91,12 @@ install-info:
|
|||||||
$(MAKE) subdir_do DO=install-info "DODIRS=$(INFODIRS)" $(FLAGS_TO_PASS)
|
$(MAKE) subdir_do DO=install-info "DODIRS=$(INFODIRS)" $(FLAGS_TO_PASS)
|
||||||
|
|
||||||
check: site.exp all
|
check: site.exp all
|
||||||
$(RUNTEST) $(RUNTESTFLAGS) $(FLAGS_TO_PASS) --tool binutils --srcdir $(srcdir)
|
$(RUNTEST) $(RUNTESTFLAGS)
|
||||||
|
|
||||||
site.exp: ./config.status Makefile
|
site.exp: ./config.status Makefile
|
||||||
@echo "Making a new config file..."
|
@echo "Making a new config file..."
|
||||||
-@rm -f ./tmp?
|
-@rm -f ./tmp?
|
||||||
@touch site.exp
|
@touch site.exp
|
||||||
|
|
||||||
-@mv site.exp site.bak
|
-@mv site.exp site.bak
|
||||||
@echo "## these variables are automatically generated by make ##" > ./tmp0
|
@echo "## these variables are automatically generated by make ##" > ./tmp0
|
||||||
@echo "# Do not edit here. If you wish to override these values" >> ./tmp0
|
@echo "# Do not edit here. If you wish to override these values" >> ./tmp0
|
||||||
@ -76,6 +104,14 @@ site.exp: ./config.status Makefile
|
|||||||
@echo "set host_triplet ${host_canonical}" >> ./tmp0
|
@echo "set host_triplet ${host_canonical}" >> ./tmp0
|
||||||
@echo "set target_triplet ${target_canonical}" >> ./tmp0
|
@echo "set target_triplet ${target_canonical}" >> ./tmp0
|
||||||
@echo "set tool binutils" >> ./tmp0
|
@echo "set tool binutils" >> ./tmp0
|
||||||
|
@echo "set srcdir ${srcdir}" >> ./tmp0
|
||||||
|
@echo "set RANLIB [findfile \$$base_dir/../ranlib]" >> ./tmp0
|
||||||
|
@echo "set OBJCOPY [findfile \$$base_dir/../objcopy]" >> ./tmp0
|
||||||
|
@echo "set STRIP [findfile \$$base_dir/../strip]" >> ./tmp0
|
||||||
|
@echo "set STRINGS [findfile \$$base_dir/../strings]" >> ./tmp0
|
||||||
|
@echo "set NM [findfile \$$base_dir/../nm]" >> ./tmp0
|
||||||
|
@echo "set OBJDUMP [findfile \$$base_dir/../objdump]" >> ./tmp0
|
||||||
|
@echo "set SIZE [findfile \$$base_dir/../size]" >> ./tmp0
|
||||||
@echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
|
@echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
|
||||||
@cat ./tmp0 > site.exp
|
@cat ./tmp0 > site.exp
|
||||||
@cat site.bak | sed \
|
@cat site.bak | sed \
|
||||||
|
Reference in New Issue
Block a user