From 4d45a50c5efb68be44a2e39bf12a4a11353acc4f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 5 Jan 2016 12:13:12 +0100 Subject: Link required thirdparty libraries into one library: libmupdfthird.a Keep the extra thirdparty libraries (curl and glfw) separate. This matches the build process for android and win32. Also purge some unused makefile sections. --- docs/example.c | 10 +++------- docs/multi-threaded.c | 9 ++------- 2 files changed, 5 insertions(+), 14 deletions(-) (limited to 'docs') diff --git a/docs/example.c b/docs/example.c index 3099ecb1..231bbaeb 100644 --- a/docs/example.c +++ b/docs/example.c @@ -4,13 +4,9 @@ Build the mupdf library using make, then either run 'make examples' or compile the example manually: - gcc -Iinclude -o example.exe docs/example.c build/debug/libmupdf.a \ - build/debug/libfreetype.a \ - build/debug/libjbig2dec.a \ - build/debug/libjpeg.a \ - build/debug/libmujs.a \ - build/debug/libopenjpeg.a \ - build/debug/libz.a \ + gcc -Iinclude -o example.exe docs/example.c \ + build/debug/libmupdf.a \ + build/debug/libmupdfthird.a -lcrypto \ -lm diff --git a/docs/multi-threaded.c b/docs/multi-threaded.c index eb66db07..a8e2d204 100644 --- a/docs/multi-threaded.c +++ b/docs/multi-threaded.c @@ -15,13 +15,8 @@ // // gcc -g -o build/debug/example-mt -Iinclude docs/multi-threaded.c \ // build/debug/libmupdf.a \ -// build/debug/libfreetype.a build/debug/libjbig2dec.a \ -// build/debug/libjpeg.a build/debug/libopenjpeg.a \ -// build/debug/libmujs.a \ -// build/debug/libz.a -lpthread -lm -// -// (If this fails with errors about missing BIO_ and X509_ references -// try again with "-lcrypto" added to the end of that command). +// build/debug/libmupdfthird.a \ +// -lpthread -lcrypto -lm // // build/debug/example-mt /path/to/document.pdf // -- cgit v1.2.3