blob: 66bfbf160b96aeee5c7dc158d8b7c211fb155634 [file] [log] [blame] [raw]
CFLAGS = -Wall -arch i386 -arch x86_64 -arch ppc -mmacosx-version-min=10.4
libcrypto.dylib: libcrypto.0.9.7.dylib
strip $^ -o $@
libcrypto.0.9.7.dylib: libcrypto.0.9.7.exported.c
gcc --shared $(CFLAGS) $^ -o $@
libcrypto.0.9.7.exported.c: libcrypto-0.9.7-export-list
echo "for i in \$$@; do echo \"void \$$i() {}\"; done" | bash /dev/stdin `cat $^` > $@
clean:
rm -f libcrypto.0.9.7.exported.c libcrypto.0.9.7.dylib