~ubuntu-branches/ubuntu/karmic/luatex/karmic

« back to all changes in this revision

Viewing changes to src/texk/web2c/luatexdir/luatexlib.mk

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2008-04-18 15:57:37 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080418155737-kcdpzpew80owd477
Tags: 0.25.3-1
new upstream release: fixes implicit pointer conversion in check_isnode
(Closes: #482311)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
## luatexlib.mk - Makefile fragment for libraries used by pdf[ex]tex.
2
 
# $Id: luatexlib.mk 1106 2008-03-11 16:46:09Z oneiros $
 
1
## luatexlib.mk - Makefile fragment for libraries used by luatex.
 
2
# $Id: luatexlib.mk 1175 2008-04-17 14:15:19Z taco $
3
3
# Public domain.
4
4
 
5
 
# The pdf*tex programs depend on a number of libraries.
6
 
# Include dependencies to get the built if we don't do make
 
5
# luatex depends on a number of libraries.
 
6
# Include dependencies to get them built if we don't do make
7
7
# from the top-level directory.
8
8
 
9
9
Makefile: luatexdir/luatexlib.mk
10
10
 
11
 
# libz
12
 
 
13
 
ZLIBDIR=../../libs/zlib
14
 
ZLIBSRCDIR=$(srcdir)/$(ZLIBDIR)
15
 
ZLIBDEP = @ZLIBDEP@
16
 
LDZLIB = @LDZLIB@
17
 
 
18
 
$(ZLIBDIR)/libz.a: $(ZLIBSRCDIR)
19
 
        cd $(ZLIBDIR) && $(MAKE) $(common_makeargs) libz.a
20
 
 
21
 
# libpng
22
 
 
23
 
LIBPNGDIR=../../libs/libpng
24
 
LIBPNGSRCDIR=$(srcdir)/$(LIBPNGDIR)
25
 
LIBPNGDEP = @LIBPNGDEP@
26
 
LDLIBPNG = @LDLIBPNG@
27
 
 
28
 
$(LIBPNGDIR)/libpng.a: $(LIBPNGSRCDIR)/*.c
29
 
        cd $(LIBPNGDIR) && $(MAKE) $(common_makeargs) libpng.a
30
 
 
31
 
 
32
 
# libxpdf
33
 
 
34
 
LIBXPDFDIR=../../libs/xpdf
35
 
LIBXPDFSRCDIR=$(srcdir)/$(LIBXPDFDIR)
36
 
LIBXPDFDEP = @LIBXPDFDEP@
37
 
LDLIBXPDF = @LDLIBXPDF@
38
 
 
39
 
$(LIBXPDFDIR)/fofi/libfofi.a: $(LIBXPDFSRCDIR)/fofi/*.cc \
40
 
        $(LIBXPDFSRCDIR)/fofi/*.h
41
 
        cd $(LIBXPDFDIR)/fofi; $(MAKE) $(common_makeargs) libfofi.a
42
 
$(LIBXPDFDIR)/goo/libGoo.a: $(LIBXPDFSRCDIR)/goo/*.cc \
43
 
        $(LIBXPDFSRCDIR)/goo/*.c $(LIBXPDFSRCDIR)/goo/*.h
44
 
        cd $(LIBXPDFDIR)/goo; $(MAKE) $(common_makeargs) libGoo.a
45
 
$(LIBXPDFDIR)/xpdf/libxpdf.a: $(LIBXPDFSRCDIR)/xpdf/*.cc \
46
 
        $(LIBXPDFSRCDIR)/xpdf/*.h
47
 
        cd $(LIBXPDFDIR)/xpdf; $(MAKE) $(common_makeargs) libxpdf.a
48
 
 
49
 
 
50
 
# md5
51
 
 
52
 
LIBMD5DIR=../../libs/md5
53
 
LIBMD5SRCDIR=$(srcdir)/$(LIBMD5DIR)
54
 
LIBMD5DEP=$(LIBMD5DIR)/md5.o
55
 
 
56
 
$(LIBMD5DEP): $(LIBMD5SRCDIR)/md5.c $(LIBMD5SRCDIR)/md5.h
57
 
clean:: md5lib-clean
58
 
md5lib-clean:
59
 
        rm -f $(LIBMD5DEP)
60
 
 
61
 
# obsdcompat
62
 
LIBOBSDDIR=../../libs/obsdcompat
63
 
LIBOBSDSRCDIR=$(srcdir)/$(LIBOBSDCOMPATDIR)
64
 
LIBOBSDDEP=@LIBOBSDDEP@
65
 
LDLIBOBSD=@LDLIBOBSD@
66
 
 
67
 
$(LIBOBSDDIR)/libopenbsd-compat.a: $(LIBOBSDSRCDIR)/*.c $(LIBOBSDSRCDIR)/*.h
68
 
# common_makeargs = $(MFLAGS) CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' $(XMAKEARGS)
69
 
# CFLAGS setzt libopenbsd-compat selbst, nicht durchreichen!
70
 
        cd $(LIBOBSDDIR); $(MAKE) $(MFLAGS) $(XMAKEARGS) libopenbsd-compat.a
71
 
 
72
11
# libpdf itself
73
 
pdflib = luatexdir/libpdf.a
74
 
pdflib_sources = $(srcdir)/luatexdir/*.c $(srcdir)/luatexdir/*.cc \
 
12
luapdflib = luatexdir/libpdf.a
 
13
luapdflib_sources = $(srcdir)/luatexdir/*.c $(srcdir)/luatexdir/*.cc \
75
14
        $(srcdir)/luatexdir/*.h
76
15
 
77
 
luatexdir/libpdf.a: $(pdflib_sources) luatexdir/luatexextra.h ctangle
 
16
$(luapdflib): $(pdflib_sources) luatexdir/luatexextra.h ctangle
78
17
        cd luatexdir && mkdir -p font image lua lang tex && $(MAKE) $(common_makeargs) libpdf.a
79
18
 
80
19
# makecpool:
202
141
 
203
142
# Convenience variables.
204
143
 
205
 
luatexlibs = $(pdflib) $(LDLIBPNG) $(LDZLIB) $(LDLIBXPDF) $(LIBMD5DEP) $(LDLIBOBSD) \
 
144
luatexlibs = $(luapdflib) $(LDLIBPNG) $(LDZLIB) $(LDLIBXPDF) $(LIBMD5DEP) $(LDLIBOBSD) \
206
145
             $(LIBLUADEP) $(SLNUNICODEDEP)  $(LUAZIPDEP) $(ZZIPLIBDEP) $(LUAFSDEP) \
207
146
             $(LUAPEGDEP) $(LUAMDVDEP)  $(LUAZLIBDEP) $(LUAFFDEP)
208
147
 
209
 
luatexlibsdep = $(pdflib) $(LIBPNGDEP) $(ZLIBDEP) $(LIBXPDFDEP) $(LIBMD5DEP) $(LIBOBSDDEP) \
 
148
luatexlibsdep = $(luapdflib) $(LIBPNGDEP) $(ZLIBDEP) $(LIBXPDFDEP) $(LIBMD5DEP) $(LIBOBSDDEP) \
210
149
                $(LIBLUADEP) $(SLNUNICODEDEP) $(ZZIPLIBDEP) $(LUAZIPDEP)  $(LUAFSDEP) \
211
150
                $(LUAPEGDEP) $(LUAMDVDEP)  $(LUAZLIBDEP) $(LUAFFDEP) $(makecpool)
212
151