Skip to content

Commit

Permalink
Merge pull request #1 from houqp/make-fix
Browse files Browse the repository at this point in the history
move all target in Makefile.defs to Makefile
  • Loading branch information
hwhw committed Mar 24, 2013
2 parents 9953a06 + d3268ab commit 2542686
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
include Makefile.defs

all: koreader-base extr

koreader-base: koreader-base.o einkfb.o pdf.o blitbuffer.o drawcontext.o koptcontext.o input.o $(POPENNSLIB) util.o ft.o lfs.o mupdfimg.o $(MUPDFLIBS) $(THIRDPARTYLIBS) $(LUALIB) djvu.o $(DJVULIBS) cre.o $(CRELIB) $(CRE_3RD_LIBS) pic.o pic_jpeg.o $(K2PDFOPTLIB)
echo $(VERSION) > git-rev
$(CC) \
$(CFLAGS) \
koreader-base.o \
Expand Down
5 changes: 0 additions & 5 deletions Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,3 @@ LUALIB := $(LIBDIR)/libluajit-5.1.so.2
POPENNSLIB := $(POPENNSDIR)/libpopen_noshell.a

K2PDFOPTLIB := $(LIBDIR)/libk2pdfopt.so.1

all: koreader-base extr

VERSION?=$(shell git describe HEAD)

9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ This is the base framework for creating document readers like Koreader,
an e-ink device oriented reader application for various document formats.

It's using the muPDF library (see http://mupdf.com/), djvulibre library,
CREngine library and it is scripted using Lua (see http://www.lua.org/).
To gain good speed at that, it uses the LuaJIT compiler.
CREngine library, libk2pdfopt library and it is scripted using Lua (see
http://www.lua.org/). To gain good speed at that, it uses the LuaJIT compiler.

It all started as the KindlePDFviewer application, which has since been
greatly enhanced and now reflects this in having a new name, Koreader.
Expand All @@ -28,6 +28,7 @@ Follow these steps:
* install CREngine sources into subfolder "kpvcrlib/crengine"
* install LuaJit sources into subfolder "luajit-2.0"
* install popen_noshell sources into subfolder "popen-noshell"
* install libk2pdfopt sources into subfolder "libk2pdfopt"

* automatically fetch thirdparty sources with Makefile:
* make sure you have patch, wget, unzip, git and svn installed
Expand All @@ -36,7 +37,7 @@ Follow these steps:
* adapt Makefile to your needs

* run `make thirdparty`. This will build MuPDF (plus the libraries it depends
on), libDjvuLibre, CREngine and LuaJIT.
on), libDjvuLibre, CREngine, libk2pdfopt and LuaJIT.

* run `make`. This will build the koreaderbase application which is a Lua
interpreter offering the koreader-base API to Lua scripts.
Expand All @@ -61,6 +62,6 @@ By default emulation will provide a resolution of 824x1200. It can be
specified at compile time, this is example for 600x800:

```
EMULATE_READER_W=600 EMULATE_READER_H=800 EMULATE_READER=1 make kpdfview
EMULATE_READER_W=600 EMULATE_READER_H=800 EMULATE_READER=1 make thirdparty koreaderbase
```

0 comments on commit 2542686

Please sign in to comment.