Skip to content

Commit d77e9d5

Browse files
committed
Move the abiname discovery stuff into "tools"
1 parent e607b7e commit d77e9d5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LD = $(PLATFORM_PREFIX)-ld
1818
AR = $(PLATFORM_PREFIX)-ar
1919
endif
2020
# run c preprocessor with any cflags to get cross compilation result, then run regular compile in native
21-
ABI := $(shell ./abiname.sh "$(CC)" "$(CFLAGS)")
21+
ABI := $(shell tools/abiname.sh "$(CC)" "$(CFLAGS)")
2222
ifndef ABI
2323
$(error Could not determine platform)
2424
endif
@@ -46,7 +46,7 @@ lib:
4646
clean:
4747
rm -f stackman/*.o tests/*.o
4848
rm -f bin/*
49-
rm -rf tmp
49+
rm -rf tmp tools/tmp
5050

5151
DEBUG = #-DDEBUG_DUMP
5252

File renamed without changes.

abiname.sh renamed to tools/abiname.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tmp=$(mktemp "${here}/tmp/abinameXXX.c")
1616
#1 create the preprocessed file
1717
CC=${1:-cc}
1818
CFLAGS=${2:-}
19-
${CC} ${CFLAGS} -E -o "${tmp}" "${here}/stackman/abiname.c"
19+
${CC} ${CFLAGS} -I${here}/../stackman -E -o "${tmp}" "${here}/abiname.c"
2020
#2 compile resulting file
2121
cc -o "${tmp}.out" "${tmp}"
2222
#3 run it

0 commit comments

Comments
 (0)