source: trunk/libdjvu/Makefile.in @ 15

Last change on this file since 15 was 15, checked in by Eugene Romanenko, 15 years ago

needed libs update

File size: 4.2 KB
Line 
1#C- This program is free software; you can redistribute it and/or
2#C- modify it under the terms of the GNU General Public License,
3#C- version 2.  The license should have accompanied the program
4#C- or you may obtain a copy of the license from the Free Software
5#C- Foundation at http://www.fsf.org.
6#C-
7#C- This program is distributed in the hope that it will be useful,
8#C- but WITHOUT ANY WARRANTY; without even the implied warranty of
9#C- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10#C- GNU General Public License for more details.
11
12@SET_MAKE@
13SHELL = @SHELL@
14VPATH = @srcdir@
15PACKAGE_NAME = @PACKAGE_NAME@
16PACKAGE_VERSION = @PACKAGE_VERSION@
17
18srcdir = @srcdir@
19top_srcdir = @top_srcdir@
20top_builddir = ..
21
22prefix = @prefix@
23exec_prefix = @exec_prefix@
24bindir = @bindir@
25datadir = @datadir@
26libdir = @libdir@
27mandir = @mandir@
28includedir = @includedir@
29
30CC = @CC@
31CXX = @CXX@
32RM = @RM@
33AR = @AR@
34LN_S = @LN_S@
35TOUCH = @TOUCH@
36INSTALL = @INSTALL@
37INSTALL_PROGRAM = @INSTALL_PROGRAM@
38INSTALL_DATA = @INSTALL_DATA@
39INSTALL_SHLIB = @INSTALL_SHLIB@
40LIBTOOL = @LIBTOOL@
41
42DEFS = @DEFS@
43OPTS = @OPTS@
44CXXRPOFLAGS = @CXXRPOFLAGS@
45JPEG_LIBS=@JPEG_LIBS@
46JPEG_CFLAGS=@JPEG_CFLAGS@
47THREAD_LIBS = @THREAD_LIBS@
48THREAD_CFLAGS = @THREAD_CFLAGS@
49
50LIBDJVU_LA = libdjvulibre.la
51LIBDJVU_VER = @LIBDJVU_VER@
52
53INCS = -I${top_builddir} -I${srcdir}
54FLAGS = ${DEFS} ${INCS} ${OPTS} ${JPEG_CFLAGS} ${THREAD_CFLAGS}
55LIBS= @LDFLAGS@ ${JPEG_LIBS} ${THREAD_LIBS} @LIBS@
56CFLAGS = @CPPFLAGS@ @CFLAGS@ ${FLAGS}
57CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ ${CXXPICFLAGS} ${CXXRPOFLAGS} ${FLAGS}
58
59all: ${LIBDJVU_LA}
60
61install: install-lib install-data install-include
62
63OBJS = \
64        DjVuGlobal.lo DjVuGlobalMemory.lo GOS.lo GException.lo GContainer.lo \
65        GString.lo GThreads.lo GRect.lo GSmartPointer.lo  MMX.lo Arrays.lo \
66        GBitmap.lo GPixmap.lo GScaler.lo DjVuPalette.lo ByteStream.lo \
67        IFFByteStream.lo BSByteStream.lo BSEncodeByteStream.lo ZPCodec.lo \
68        JB2Image.lo JB2EncodeCodec.lo IW44Image.lo IW44EncodeCodec.lo \
69        MMRDecoder.lo JPEGDecoder.lo DataPool.lo GURL.lo DjVuFileCache.lo \
70        DjVuPort.lo GMapAreas.lo DjVuAnno.lo GIFFManager.lo DjVuText.lo \
71        DjVuInfo.lo DjVuFile.lo DjVuImage.lo DjVuDocument.lo \
72        DjVmDir.lo DjVmDoc.lo DjVmDir0.lo DjVmNav.lo DjVuNavDir.lo \
73        DjVuErrorList.lo DjVuDocEditor.lo DjVuToPS.lo DjVuDumpHelper.lo \
74        DjVuMessageLite.lo DjVuMessage.lo GUnicode.lo UnicodeByteStream.lo \
75        XMLParser.lo XMLTags.lo miniexp.lo ddjvuapi.lo debug.lo
76
77${LIBDJVU_LA} : ${OBJS}
78        @echo "[ generating $@ ... ]"
79        ${LIBTOOL} --mode=link ${CXX} ${CXXFLAGS} -no-undefined \
80            -rpath ${libdir} -version-info ${LIBDJVU_VER} \
81            ${OBJS} ${LIBS} -o ${LIBDJVU_LA}
82
83@RPO_YES@${LIBDJVU_LA} : libdjvu-rpo
84@RPO_YES@libdjvu-rpo : ${OBJS}
85@RPO_YES@       @echo "[ performing library closure ... ]"
86@RPO_YES@       @echo "int main() { return 0; }" > $@.cpp
87@RPO_YES@       ${LIBTOOL} --mode=compile ${CXX} ${CXXFLAGS} -c $@.cpp
88@RPO_YES@       ${LIBTOOL} --mode=link ${CXX} ${CXXFLAGS} -o $@ $@.lo ${OBJS} ${LIBS}
89
90install-data: FORCE
91        ${INSTALL} -d ${DESTDIR}${datadir}/djvu
92        for n in `cd ${top_srcdir}/share && \
93                  find djvu -name '*.xml' -print` ; do \
94          src="${top_srcdir}/share/$$n" ; \
95          dir="`dirname ${datadir}/$$n`" ;\
96          test -d ${DESTDIR}$$dir || ${INSTALL} -d ${DESTDIR}$$dir ; \
97          ${INSTALL_DATA} $$src ${DESTDIR}$$dir || exit ; done
98
99install-lib: ${LIBDJVU_LA} FORCE
100        ${INSTALL} -d ${DESTDIR}${libdir}
101        ${LIBTOOL} --mode=install \
102          ${INSTALL_SHLIB} ${LIBDJVU_LA} ${DESTDIR}${libdir}
103
104install-include: FORCE
105        ${INSTALL} -d ${DESTDIR}${includedir}/libdjvu
106        ${INSTALL_DATA} ${srcdir}/ddjvuapi.h ${DESTDIR}${includedir}/libdjvu
107        ${INSTALL_DATA} ${srcdir}/miniexp.h ${DESTDIR}${includedir}/libdjvu
108
109depend: FORCE
110        for n in ${srcdir}/*.cpp ; do \
111          ${CXX} -MM ${CXXFLAGS} $$n ; \
112        done > Makefile.dep
113
114clean: FORCE
115        -${LIBTOOL} --mode=clean ${RM} 2>/dev/null *.lo *.la
116        -${RM} 2>/dev/null libdjvu-rpo
117
118distclean: clean
119        -${RM} -r 2>/dev/null Makefile *.rpo ii_files
120
121FORCE:
122.PHONY: FORCE
123.SUFFIXES: .c .cpp .lo .o
124
125.c.o:
126        ${CC} ${CFLAGS} -c $<
127
128.cpp.o:
129        ${CXX} ${CXXFLAGS} -c $<
130
131.c.lo:
132        ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c $<
133
134.cpp.lo:
135        ${LIBTOOL} --mode=compile ${CXX} ${CXXFLAGS} -c $<
136
137# Dependencies
138
139Makefile.dep: ${srcdir}/Makefile.dep
140        cp ${srcdir}/Makefile.dep $@
141
142include Makefile.dep
143
Note: See TracBrowser for help on using the repository browser.