aboutsummaryrefslogtreecommitdiff
path: root/src/tools/mac/upload_system_symbols/testdata/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/mac/upload_system_symbols/testdata/Makefile')
-rw-r--r--src/tools/mac/upload_system_symbols/testdata/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tools/mac/upload_system_symbols/testdata/Makefile b/src/tools/mac/upload_system_symbols/testdata/Makefile
new file mode 100644
index 00000000..cb481a3c
--- /dev/null
+++ b/src/tools/mac/upload_system_symbols/testdata/Makefile
@@ -0,0 +1,22 @@
+all: libarchtest.dylib archtest.exe
+
+archtest32.exe: archtest.c
+ clang -m32 $< -o $@
+
+archtest64.exe: archtest.c
+ clang -m64 $< -o $@
+
+archtest.exe: archtest32.exe archtest64.exe
+ lipo $^ -create -output $@
+
+libarchtest32.dylib: archtest.c
+ clang -m32 -dynamiclib $< -o $@
+
+libarchtest64.dylib: archtest.c
+ clang -m64 -dynamiclib $< -o $@
+
+libarchtest.dylib: libarchtest32.dylib libarchtest64.dylib
+ lipo $^ -create -output $@
+
+clean:
+ rm -f *.dylib *.exe