Subversion Repositories Kolibri OS

Rev

Rev 7621 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7621 Rev 7624
Line 8... Line 8...
8
default: all
8
default: all
9
LDFLAGS = -Tinclude/scripts/menuetos_app_v01.ld -nostdlib -L include/lib
9
LDFLAGS = -Tinclude/scripts/menuetos_app_v01.ld -nostdlib -L include/lib
10
CFLAGS += -Ifitz -Ipdf -Iscripts  -fno-stack-protector -nostdinc -fno-builtin -m32 -I include -fno-pic -w
10
CFLAGS += -Ifitz -Ipdf -Iscripts  -fno-stack-protector -nostdinc -fno-builtin -m32 -I include -fno-pic -w
11
LIBS += -lfreetype2 -lpng -ljbig2dec -ljpeg -lopenjpeg -lz -lm -lc
11
LIBS += -lfreetype2 -lpng -ljbig2dec -ljpeg -lopenjpeg -lz -lm -lc
Line 12... Line -...
12
 
-
 
13
#include Makerules
-
 
14
#include Makethird
-
 
15
 
12
 
16
THIRD_LIBS := $(FREETYPE_LIB)
-
 
17
THIRD_LIBS += $(JBIG2DEC_LIB)
-
 
18
THIRD_LIBS += $(JPEG_LIB)
-
 
19
THIRD_LIBS += $(OPENJPEG_LIB)
-
 
Line 20... Line 13...
20
THIRD_LIBS += $(ZLIB_LIB)
13
THIRD_LIBS := $(FREETYPE_LIB) $(JBIG2DEC_LIB) $(JPEG_LIB) $(OPENJPEG_LIB) $(ZLIB_LIB)
21
 
14
 
22
ifeq "$(verbose)" ""
15
ifeq "$(verbose)" ""
23
QUIET_AR = @ echo ' ' ' ' AR $@ ;
16
QUIET_AR = @ echo ' ' ' ' AR $@ ;
Line 52... Line 45...
52
$(OUT)/%.o : apps/%.c fitz/fitz.h pdf/mupdf.h | $(OUT)
45
$(OUT)/%.o : apps/%.c fitz/fitz.h pdf/mupdf.h | $(OUT)
53
	$(CC_CMD)
46
	$(CC_CMD)
54
$(OUT)/%.o : scripts/%.c | $(OUT)
47
$(OUT)/%.o : scripts/%.c | $(OUT)
55
	$(CC_CMD)
48
	$(CC_CMD)
Line 56... Line -...
56
 
-
 
57
.PRECIOUS : $(OUT)/%.o # Keep intermediates from chained rules
-
 
58
 
49
 
Line 59... Line 50...
59
# --- Fitz and MuPDF libraries ---
50
# --- Fitz and MuPDF libraries ---
60
 
51
 
Line 66... Line 57...
66
 
57
 
67
$(FITZ_LIB) : $(addprefix $(OUT)/, $(FITZ_SRC:%.c=%.o))
58
$(FITZ_LIB) : $(addprefix $(OUT)/, $(FITZ_SRC:%.c=%.o))
Line 68... Line 59...
68
$(MUPDF_LIB) : $(addprefix $(OUT)/, $(MUPDF_SRC:%.c=%.o))
59
$(MUPDF_LIB) : $(addprefix $(OUT)/, $(MUPDF_SRC:%.c=%.o))
69
 
-
 
Line 70... Line 60...
70
libs: $(MUPDF_LIB) $(FITZ_LIB) $(THIRD_LIBS)
60
 
Line 71... Line 61...
71
	@ echo MuPDF and underlying libraries built
61
libs: $(MUPDF_LIB) $(FITZ_LIB) $(THIRD_LIBS)
72
 
-
 
Line 73... Line 62...
73
# --- Generated CMAP and FONT files ---
62
 
74
 
63
# --- Generated CMAP and FONT files ---
75
CMAPDUMP := scripts/cmapdump
64
 
76
# FONTDUMP := scripts/fontdump 
65
CMAPDUMP := scripts/cmapdump
Line 113... Line 102...
113
$(OUT)/pdf_fontfile.o : $(FONT_HDR)
102
$(OUT)/pdf_fontfile.o : $(FONT_HDR)
114
$(OUT)/cmapdump.o : pdf/pdf_cmap.c pdf/pdf_cmap_parse.c
103
$(OUT)/cmapdump.o : pdf/pdf_cmap.c pdf/pdf_cmap_parse.c
Line 115... Line 104...
115
 
104
 
Line 116... Line -...
116
# --- Tools and Apps ---
-
 
117
 
-
 
118
PDF_APPS := $(addprefix $(OUT)/, pdfdraw pdfclean pdfextract pdfinfo pdfshow)
-
 
119
 
-
 
120
$(PDF_APPS) : $(MUPDF_LIB) $(FITZ_LIB) $(THIRD_LIBS)
105
# --- Tools and Apps ---
121
 
106
 
122
MUPDF := $(OUT)/mupdf
107
MUPDF := $(OUT)/mupdf
123
$(MUPDF) : $(MUPDF_LIB) $(FITZ_LIB) $(THIRD_LIBS)
108
$(MUPDF) : $(MUPDF_LIB) $(FITZ_LIB) $(THIRD_LIBS)
124
ifeq "$(NOX11)" ""
109
ifeq "$(NOX11)" ""