blob: a8c4ef770dce7aeeabf7c033351af444b8c364c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
1. debug build (not sure why...)
2. build shared library
3. add optional static lib target
4. Don't install COPYING
diff --git a/Makefile b/Makefile
index 37fc48e6..4303e9fa 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
-include user.make
ifndef build
- build := release
+ build := debug
endif
ifndef OUT
@@ -190,13 +190,15 @@ generate: source/pdf/js/util.js.h
# --- Library ---
-MUPDF_LIB = $(OUT)/libmupdf.a
-THIRD_LIB = $(OUT)/libmupdf-third.a
+MUPDF_LIB = libmupdf.so.$(GENTOO_PV)
+MUPDF_STATIC = $(OUT)/libmupdf.a
+THIRD_LIB =
THREAD_LIB = $(OUT)/libmupdf-threads.a
PKCS7_LIB = $(OUT)/libmupdf-pkcs7.a
-$(MUPDF_LIB) : $(MUPDF_OBJ)
-$(THIRD_LIB) : $(THIRD_OBJ)
+$(MUPDF_LIB): $(MUPDF_OBJ) $(THIRD_OBJ)
+ $(QUIET_LINK) $(CC) $(LDFLAGS) --shared -Wl,-soname -Wl,$(MUPDF_LIB) -Wl,--no-undefined -o $@ $^ $(THIRD_LIBS) $(LIBS)
+$(MUPDF_STATIC): $(MUPDF_OBJ) $(THIRD_OBJ)
$(THREAD_LIB) : $(THREAD_OBJ)
$(PKCS7_LIB) : $(PKCS7_OBJ)
@@ -355,7 +357,7 @@ install: libs apps
install -d $(DESTDIR)$(docdir)
install -d $(DESTDIR)$(docdir)/examples
- install README COPYING CHANGES $(DESTDIR)$(docdir)
+ install README CHANGES $(DESTDIR)$(docdir)
install docs/*.html docs/*.css docs/*.png $(DESTDIR)$(docdir)
install docs/examples/* $(DESTDIR)$(docdir)/examples
|