v1.1.24 update
[musl-tables] / Makefile
index 228337a..ed1d524 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,19 @@
-MUSL=../musl
-
-all: tables sizeof abi
+all: tables abi
 
 clean:
        rm -f sizeof*.o sizeof-glibc sizeof-musl sizeof.diff tab_*.html
 
 tables:
        MUSL=$(MUSL) ./update.sh
+abi: data/abi_type.x86_64.musl data/abi_func.x86_64.musl
+
+abi_type.x86_64.cc abi_func.cc: tables
+
+data/abi_type.x86_64.musl: abi_type.x86_64.cc
+       CXX='g++ -nostdinc -isystem /tmp/T.x86_64/include' ./abi_type_data.sh >$@
+data/abi_func.x86_64.musl: abi_func.cc
+       CXX='g++ -nostdinc -isystem /tmp/T.x86_64/include' ./abi_func_data.sh >$@
+
 
 sizeof: sizeof-glibc sizeof-musl
        ./sizeof-glibc >data/sizeof.ARCH.glibc
@@ -33,16 +40,16 @@ sizeof-g++: sizeof.c
        g++ -std=gnu99 -nostdinc -fno-stack-protector -isystem $(MUSL)/include -isystem $(LIBGCC) -isystem /usr/include -c -o $@.o $<
        ld -o $@ $@.o -X -d -e _start -Bstatic $(MUSL)/lib/crti.o $(MUSL)/lib/crt1.o $(MUSL)/lib/crtn.o -L$(MUSL)/lib -lc -L$(LIBGCC) -lgcc -nostdlib
 
-abi: abi.ARCH.diff
-       cp abi.ARCH.* data/
-
-abi.cc:
-       ./abi.sh
-abi.ARCH.glibc: abi.cc
-       g++ -c -o $@.o $<
-       nm $@.o |sed -n 's/^[[:xdigit:]]* T //p' |c++filt >$@
-abi.ARCH.musl: abi.cc
-       g++ -nostdinc -fno-stack-protector -isystem $(MUSL)/include -isystem $(LIBGCC) -isystem /usr/include -c -o $@.o $<
-       nm $@.o |sed -n 's/^[[:xdigit:]]* T //p' |c++filt >$@
+#abi: abi.ARCH.diff
+#      cp abi.ARCH.* data/
+
+#abi_type.cc:
+#      ./abi_type.sh
+abi.ARCH.glibc: abi_type.cc
+       g++ -std=c++11 $(GLIBC_FLAGS) -c -o $@.o $<
+       nm -C $@.o |sed -n 's/^[[:xdigit:]]* T //p' |sort >$@
+abi.ARCH.musl: abi_type.cc
+       g++ -std=c++11 -nostdinc -fno-stack-protector -isystem $(MUSL)/include -isystem $(LIBGCC) -isystem /usr/include -c -o $@.o $<
+       nm -C $@.o |sed -n 's/^[[:xdigit:]]* T //p' |sort >$@
 abi.ARCH.diff:  abi.ARCH.glibc abi.ARCH.musl
        diff -U0 $^ >$@ || true