8000 makefile can echo the abiname · stackless-dev/stackman@c572d4d · GitHub
[go: up one dir, main page]

Skip to content

Commit c572d4d

Browse files
kristjanvalurAnselm Kruis
authored and
Anselm Kruis
committed
makefile can echo the abiname
(cherry picked from commit cf5d06e)
1 parent 63bb64b commit c572d4d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,22 @@ endif
2121
ABI := $(shell ./abiname.sh "$(CC)" "$(CFLAGS)")
2222
ifndef ABI
2323
$(error Could not determine platform)
24-
else
25-
$(info ABI is $(ABI))
2624
endif
2725

2826
LIB := lib/$(ABI)
2927

3028
all: $(LIB)/libstackman.a
3129

30+
# echo the abiname, for build tools.
31+
.PHONY: abiname
32+
abiname:
33+
@echo $(ABI)
34+
3235
obj = stackman/stackman.o stackman/stackman_s.o
3336

3437

3538
$(LIB)/libstackman.a: lib $(obj)
39+
$(info ABI is $(ABI))
3640
$(AR) $(ARFLAGS) -s $@ $(obj)
3741

3842
.PHONY: lib clean

0 commit comments

Comments
 (0)
0