blob: cb481a3ce1f844bd0c5923703f794fabe6d31d3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|