]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/Makefile.am
94e6c4d6b75a03465487fa13fb048602573a1195
[lyx.git] / src / tex2lyx / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 EXTRA_DIST = TODO.txt tex2lyx.1in $(TEST_FILES) pch.h
4
5 #noinst_LIBRARIES = libtexparser.a
6 #
7 #libtexparser_a_SOURCES = \
8 #       Parser.cpp \
9 #       Parser.h
10 #
11 #tex2lyx_LDADD = libtexparser.a
12
13 man_MANS = tex2lyx.1
14
15 bin_PROGRAMS = tex2lyx
16
17 DEFAULT_INCLUDES = 
18
19 AM_CPPFLAGS += -DTEX2LYX $(PCH_FLAGS) -I$(top_srcdir)/src/tex2lyx \
20         -I$(top_srcdir)/src -I$(top_builddir) $(BOOST_INCLUDES)
21
22 TEST_FILES = \
23         test/runtests.py \
24         test/box-color-size-space-align.tex \
25         test/CJK.tex \
26         test/DummyDocument.tex \
27         test/foo.eps \
28         test/foo.png \
29         test/test-insets.tex \
30         test/test.ltx \
31         test/test-structure.tex \
32         test/XeTeX-polyglossia.tex \
33         test/xfigtest.fig \
34         test/xfigtest.pstex \
35         test/xfigtest.pstex_t
36
37 TESTS = test/runtests.py
38 updatetests: tex2lyx
39         $(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx ../../../lib/scripts "$(srcdir)/test"
40
41 LINKED_FILES = \
42         ../Author.cpp \
43         ../Color.cpp \
44         ../Counters.cpp \
45         ../Encoding.cpp \
46         ../FloatList.cpp \
47         ../Floating.cpp \
48         ../FontInfo.cpp \
49         ../graphics/GraphicsParams.cpp \
50         ../insets/ExternalTemplate.cpp \
51         ../insets/ExternalTransforms.cpp \
52         ../insets/InsetLayout.cpp \
53         ../LaTeXPackages.cpp \
54         ../Layout.cpp \
55         ../LayoutFile.cpp \
56         ../LayoutModuleList.cpp \
57         ../Length.cpp \
58         ../lengthcommon.cpp \
59         ../Lexer.cpp \
60         ../ModuleList.cpp \
61         ../Spacing.cpp \
62         ../TextClass.cpp \
63         ../version.cpp
64
65 BUILT_SOURCES = $(PCH_FILE)
66
67 tex2lyx_SOURCES = \
68         $(LINKED_FILES) \
69         boost.cpp \
70         Context.cpp \
71         Context.h \
72         math.cpp \
73         Parser.cpp \
74         Parser.h \
75         Preamble.cpp \
76         Preamble.h \
77         table.cpp \
78         tex2lyx.cpp \
79         tex2lyx.h \
80         text.cpp
81
82 tex2lyx_LDADD = \
83         $(top_builddir)/src/support/liblyxsupport.a \
84         $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) \
85         $(QT4_LIB) $(QT4_LDFLAGS) \
86         @LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
87
88 if INSTALL_MACOSX
89 tex2lyx_LDFLAGS = -framework AppKit
90 endif