summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-01-05 12:13:12 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-05 14:47:37 +0100
commit4d45a50c5efb68be44a2e39bf12a4a11353acc4f (patch)
tree253365a8cd1c4e4a57b132997b49b3798ef05fae /docs
parent96a54896ee453a453b25a9c9e5c6ba8d0caba7cc (diff)
downloadmupdf-4d45a50c5efb68be44a2e39bf12a4a11353acc4f.tar.xz
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/example.c10
-rw-r--r--docs/multi-threaded.c9
2 files changed, 5 insertions, 14 deletions
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
//