]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
Store ASCII data in std::string
[lyx.git] / src / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 ############################### Core  ##############################
4
5 AM_CPPFLAGS += $(PCH_FLAGS) -I$(top_srcdir)/src $(BOOST_INCLUDES) $(ENCHANT_CFLAGS) $(HUNSPELL_CFLAGS)
6 AM_CPPFLAGS += $(QT_CPPFLAGS) $(QT_CORE_INCLUDES)
7
8 if BUILD_CLIENT_SUBDIR
9 CLIENT = client
10 endif
11
12 SUBDIRS = support frontends . $(CLIENT) tex2lyx
13
14 EXTRA_DIST = lyx_commit_hash.h.in \
15         pch.h \
16         CMakeLists.txt \
17         graphics/CMakeLists.txt \
18         insets/CMakeLists.txt \
19         mathed/CMakeLists.txt \
20         tests/CMakeLists.txt
21
22 OTHERLIBS = $(BOOST_LIBS) $(MYTHES_LIBS) $(ENCHANT_LIBS) $(HUNSPELL_LIBS) \
23             @LIBS@ $(SOCKET_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
24
25 noinst_LIBRARIES = liblyxcore.a
26 bin_PROGRAMS = lyx
27
28 lyx_LDADD = \
29         liblyxcore.a \
30         liblyxmathed.a \
31         liblyxinsets.a \
32         frontends/liblyxfrontends.a \
33         frontends/qt4/liblyxqt4.a \
34         liblyxgraphics.a \
35         support/liblyxsupport.a \
36         $(OTHERLIBS) \
37         $(QT_LDFLAGS) \
38         $(QT_LIB)
39
40 if LYX_WIN_RESOURCE
41 .rc.o:
42         cp $(top_srcdir)/development/Win32/packaging/icons/lyx_*32x32.ico .
43         windres -I$(top_builddir) --preprocessor "$(CPP) -xc-header -DRC_INVOKED" $< -o $@
44 endif
45
46 if INSTALL_MACOSX
47 lyx_LDFLAGS = -framework AppKit -framework ApplicationServices
48 endif
49
50 #lyx_LDFLAGS=-Wl,-O1
51
52 BUILT_SOURCES = $(PCH_FILE)
53
54 if INSTALL_MACOSX
55 APPLESPELL = AppleSpellChecker.cpp AppleSpellChecker.h
56 endif
57
58 if USE_ASPELL
59 ASPELL = AspellChecker.cpp AspellChecker.h
60 PWL = PersonalWordList.cpp PersonalWordList.h
61 endif
62
63 if USE_ENCHANT
64 ENCHANT = EnchantChecker.cpp EnchantChecker.h
65 PWL = PersonalWordList.cpp PersonalWordList.h
66 endif
67
68 if USE_HUNSPELL
69 HUNSPELL = HunspellChecker.cpp HunspellChecker.h
70 PWL = PersonalWordList.cpp PersonalWordList.h
71 endif
72
73 # These four objects are linked as object files as they are not
74 # referenced within the core and therefore are not picked up
75 # by the linker without looping over libs. We do not want that,
76 # and in fact libtools seems not able to do that.
77 lyx_SOURCES = \
78         main.cpp \
79         $(APPLESPELL) \
80         $(ASPELL) \
81         BiblioInfo.h \
82         BiblioInfo.cpp \
83         Box.cpp \
84         Box.h \
85         Compare.cpp \
86         Compare.h \
87         Dimension.cpp \
88         Dimension.h \
89         $(ENCHANT) \
90         $(HUNSPELL) \
91         $(PWL) \
92         LaTeXFonts.cpp \
93         LaTeXFonts.h \
94         PrinterParams.cpp \
95         PrinterParams.h \
96         Thesaurus.cpp \
97         Thesaurus.h
98
99 if LYX_WIN_RESOURCE
100 lyx_SOURCES += lyxwinres.rc
101 endif
102
103 SOURCEFILESCORE = \
104         Author.cpp \
105         Bidi.cpp \
106         boost.cpp \
107         BranchList.cpp \
108         Buffer.cpp \
109         buffer_funcs.cpp \
110         BufferList.cpp \
111         BufferParams.cpp \
112         BufferView.cpp \
113         Bullet.cpp \
114         Changes.cpp \
115         Chktex.cpp \
116         CmdDef.cpp \
117         Color.cpp \
118         ConverterCache.cpp \
119         Converter.cpp \
120         CoordCache.cpp \
121         Counters.cpp \
122         Cursor.cpp \
123         CursorSlice.cpp \
124         CutAndPaste.cpp \
125         DepTable.cpp \
126         DocIterator.cpp \
127         Encoding.cpp \
128         BufferEncodings.cpp \
129         ErrorList.cpp \
130         Exporter.cpp \
131         factory.cpp \
132         Floating.cpp \
133         FloatList.cpp \
134         FontInfo.cpp \
135         FontList.cpp \
136         Font.cpp \
137         Format.cpp \
138         FuncRequest.cpp \
139         FuncStatus.cpp \
140         Graph.cpp \
141         HSpace.cpp \
142         IndicesList.cpp \
143         InsetIterator.cpp \
144         InsetList.cpp \
145         Intl.cpp \
146         KeyMap.cpp \
147         KeySequence.cpp \
148         Language.cpp \
149         LaTeX.cpp \
150         LaTeXFeatures.cpp \
151         LaTeXPackages.cpp \
152         LayoutFile.cpp \
153         LayoutModuleList.cpp \
154         Length.cpp \
155         lengthcommon.cpp \
156         Lexer.cpp \
157         LyX.cpp \
158         LyXAction.cpp \
159         lyxfind.cpp \
160         LyXRC.cpp \
161         LyXVC.cpp \
162         MetricsInfo.cpp \
163         ModuleList.cpp \
164         Mover.cpp \
165         output_docbook.cpp \
166         output.cpp \
167         output_latex.cpp \
168         output_xhtml.cpp \
169         OutputParams.cpp \
170         output_plaintext.cpp \
171         Paragraph.cpp \
172         ParagraphMetrics.cpp \
173         ParagraphParameters.cpp \
174         ParIterator.cpp \
175         PDFOptions.cpp \
176         Row.cpp \
177         RowPainter.cpp \
178         Server.cpp \
179         ServerSocket.cpp \
180         sgml.cpp \
181         Session.cpp \
182         Spacing.cpp \
183         TexRow.cpp \
184         Text.cpp \
185         Text2.cpp \
186         Text3.cpp \
187         TextClass.cpp \
188         TextMetrics.cpp \
189         TocBackend.cpp \
190         Trans.cpp \
191         Undo.cpp \
192         VCBackend.cpp \
193         version.cpp \
194         VSpace.cpp \
195         WordList.cpp
196
197 HEADERFILESCORE = \
198         Author.h \
199         Bidi.h \
200         BranchList.h \
201         buffer_funcs.h \
202         Buffer.h \
203         BufferEncodings.h \
204         BufferList.h \
205         BufferParams.h \
206         BufferView.h \
207         Bullet.h \
208         Citation.h \
209         Changes.h \
210         Chktex.h \
211         CmdDef.h \
212         ColorCode.h \
213         Color.h \
214         ColorSet.h \
215         CompletionList.h \
216         ConverterCache.h \
217         Converter.h \
218         CoordCache.h \
219         Counters.h \
220         Cursor.h \
221         CursorSlice.h \
222         CutAndPaste.h \
223         DepTable.h \
224         DispatchResult.h \
225         DocIterator.h \
226         DocumentClassPtr.h \
227         Encoding.h \
228         ErrorList.h \
229         Exporter.h \
230         factory.h \
231         Floating.h \
232         FloatList.h \
233         Font.h \
234         FontEnums.h \
235         FontInfo.h \
236         FontList.h \
237         Format.h \
238         FuncCode.h \
239         FuncRequest.h \
240         FuncStatus.h \
241         Graph.h \
242         HSpace.h \
243         IndicesList.h \
244         InsetIterator.h \
245         InsetList.h \
246         Intl.h \
247         KeyMap.h \
248         KeySequence.h \
249         Language.h \
250         LaTeXFeatures.h \
251         LaTeXPackages.h \
252         LaTeX.h \
253         Layout.h \
254         LayoutEnums.h \
255         LayoutFile.h \
256         LayoutModuleList.h \
257         Length.h \
258         Lexer.h \
259         LyXAction.h \
260         lyxfind.h \
261         LyX.h \
262         LyXRC.h \
263         LyXVC.h \
264         MetricsInfo.h \
265         ModuleList.h \
266         Mover.h \
267         output_docbook.h \
268         output.h \
269         OutputEnums.h \
270         output_latex.h \
271         output_xhtml.h \
272         OutputParams.h \
273         output_plaintext.h \
274         paper.h \
275         Paragraph.h \
276         ParagraphList.h \
277         ParagraphMetrics.h \
278         ParagraphParameters.h \
279         ParIterator.h \
280         PDFOptions.h \
281         Row.h \
282         RowPainter.h \
283         Server.h \
284         ServerSocket.h \
285         Session.h \
286         sgml.h \
287         Spacing.h \
288         SpellChecker.h \
289         TexRow.h \
290         Text.h \
291         TextClass.h \
292         TextMetrics.h \
293         TocBackend.h \
294         Trans.h \
295         Undo.h \
296         update_flags.h \
297         VCBackend.h \
298         version.h \
299         VSpace.h \
300         WordLangTuple.h \
301         WordList.h
302
303 STANDALONEFILES = \
304         Layout.cpp
305
306 .PHONY: lyx_commit_hash.h
307
308 lyx_commit_hash.h:
309         $(AM_V_GEN)hash=`cd "$(top_srcdir)" && git log -1 --pretty=format:%H 2>/dev/null || echo none` ; \
310         sed s/@LYX_GIT_COMMIT_HASH@/$$hash/ "$(srcdir)"/lyx_commit_hash.h.in >$@
311 BUILT_SOURCES += lyx_commit_hash.h
312 CLEANFILES += lyx_commit_hash.h
313
314 lyxcore.cpp:
315         @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
316
317 if MONOLITHIC_CORE
318
319 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
320 CLEANFILES += lyxcore.cpp
321
322 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
323
324 else
325
326 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
327
328 endif
329
330 #########################  Qt stuff  ##############################
331
332 MOCHEADER = Compare.h
333
334 if INSTALL_WINDOWS
335
336 MOCHEADER += Server.h
337 MOCFLAG = -D_WIN32
338
339 endif
340
341 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
342
343 BUILT_SOURCES += $(MOCEDFILES)
344 CLEANFILES += $(MOCEDFILES)
345
346 moc_%.cpp: %.h
347         $(AM_V_GEN)$(QT_MOC) $(MOCFLAG) -o $@ $<
348
349 liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
350
351 ############################### Graphics ##############################
352
353 noinst_LIBRARIES += liblyxgraphics.a
354
355 liblyxgraphics_a_SOURCES = \
356         graphics/epstools.h \
357         graphics/epstools.cpp \
358         graphics/GraphicsCache.h \
359         graphics/GraphicsCache.cpp \
360         graphics/GraphicsCacheItem.h \
361         graphics/GraphicsCacheItem.cpp \
362         graphics/GraphicsConverter.h \
363         graphics/GraphicsConverter.cpp \
364         graphics/GraphicsImage.h \
365         graphics/GraphicsLoader.h \
366         graphics/GraphicsLoader.cpp \
367         graphics/GraphicsParams.cpp \
368         graphics/GraphicsParams.h \
369         graphics/GraphicsTypes.h \
370         graphics/PreviewImage.h \
371         graphics/PreviewImage.cpp \
372         graphics/PreviewLoader.h \
373         graphics/PreviewLoader.cpp
374
375
376 ############################### Mathed  ##############################
377
378 noinst_LIBRARIES += liblyxmathed.a
379
380 SOURCEFILESMATHED = \
381         mathed/CommandInset.cpp \
382         mathed/InsetMathAMSArray.cpp \
383         mathed/InsetMathArray.cpp \
384         mathed/InsetMathBig.cpp \
385         mathed/InsetMathBoldSymbol.cpp \
386         mathed/InsetMathBox.cpp \
387         mathed/InsetMathBrace.cpp \
388         mathed/InsetMath.cpp \
389         mathed/InsetMathCases.cpp \
390         mathed/InsetMathChar.cpp \
391         mathed/InsetMathColor.cpp \
392         mathed/InsetMathComment.cpp \
393         mathed/InsetMathDecoration.cpp \
394         mathed/InsetMathDecoration.h \
395         mathed/InsetMathDelim.cpp \
396         mathed/InsetMathDiff.cpp \
397         mathed/InsetMathDots.cpp \
398         mathed/InsetMathEnsureMath.cpp \
399         mathed/InsetMathEnv.cpp \
400         mathed/InsetMathExFunc.cpp \
401         mathed/InsetMathExInt.cpp \
402         mathed/InsetMathFont.cpp \
403         mathed/InsetMathFontOld.cpp \
404         mathed/InsetMathFrac.cpp \
405         mathed/InsetMathGrid.cpp \
406         mathed/InsetMathHull.cpp \
407         mathed/InsetMathKern.cpp \
408         mathed/InsetMathLefteqn.cpp \
409         mathed/InsetMathLim.cpp \
410         mathed/InsetMathCancel.cpp \
411         mathed/InsetMathCancelto.cpp \
412         mathed/InsetMathMatrix.cpp \
413         mathed/InsetMathNest.cpp \
414         mathed/InsetMathNumber.cpp \
415         mathed/InsetMathOverset.cpp \
416         mathed/InsetMathPar.cpp \
417         mathed/InsetMathPhantom.cpp \
418         mathed/InsetMathRef.cpp \
419         mathed/InsetMathRoot.cpp \
420         mathed/InsetMathScript.cpp \
421         mathed/InsetMathSideset.cpp \
422         mathed/InsetMathSize.cpp \
423         mathed/InsetMathSpace.cpp \
424         mathed/InsetMathSpecialChar.cpp \
425         mathed/InsetMathSplit.cpp \
426         mathed/InsetMathSqrt.cpp \
427         mathed/InsetMathStackrel.cpp \
428         mathed/InsetMathString.cpp \
429         mathed/InsetMathSubstack.cpp \
430         mathed/InsetMathSymbol.cpp \
431         mathed/InsetMathTabular.cpp \
432         mathed/InsetMathUnderset.cpp \
433         mathed/InsetMathUnknown.cpp \
434         mathed/InsetMathXArrow.cpp \
435         mathed/InsetMathXYMatrix.cpp \
436         mathed/InsetMathDiagram.cpp \
437         mathed/MathAtom.cpp \
438         mathed/MathAutoCorrect.cpp \
439         mathed/MathData.cpp \
440         mathed/MathExtern.cpp \
441         mathed/MathFactory.cpp \
442         mathed/MathMacro.cpp \
443         mathed/MathMacroArgument.cpp \
444         mathed/MacroTable.cpp \
445         mathed/MathMacroTemplate.cpp \
446         mathed/MathParser.cpp \
447         mathed/MathStream.cpp \
448         mathed/MathSupport.cpp \
449         mathed/TextPainter.cpp
450
451 HEADERFILESMATHED = \
452         mathed/CommandInset.h \
453         mathed/InsetMathAMSArray.h \
454         mathed/InsetMathArray.h \
455         mathed/InsetMathBig.h \
456         mathed/InsetMathBoldSymbol.h \
457         mathed/InsetMathBox.h \
458         mathed/InsetMathBrace.h \
459         mathed/InsetMathCancel.h \
460         mathed/InsetMathCancelto.h \
461         mathed/InsetMathCases.h \
462         mathed/InsetMathChar.h \
463         mathed/InsetMathColor.h \
464         mathed/InsetMathComment.h \
465         mathed/InsetMathDelim.h \
466         mathed/InsetMathDiff.h \
467         mathed/InsetMathDots.h \
468         mathed/InsetMathEnsureMath.h \
469         mathed/InsetMathEnv.h \
470         mathed/InsetMathExFunc.h \
471         mathed/InsetMathExInt.h \
472         mathed/InsetMathFont.h \
473         mathed/InsetMathFontOld.h \
474         mathed/InsetMathFrac.h \
475         mathed/InsetMathGrid.h \
476         mathed/InsetMath.h \
477         mathed/InsetMathHull.h \
478         mathed/InsetMathKern.h \
479         mathed/InsetMathLefteqn.h \
480         mathed/InsetMathLim.h \
481         mathed/InsetMathMatrix.h \
482         mathed/InsetMathNest.h \
483         mathed/InsetMathNumber.h \
484         mathed/InsetMathOverset.h \
485         mathed/InsetMathPar.h \
486         mathed/InsetMathPhantom.h \
487         mathed/InsetMathRef.h \
488         mathed/InsetMathRoot.h \
489         mathed/InsetMathScript.h \
490         mathed/InsetMathSideset.h \
491         mathed/InsetMathSize.h \
492         mathed/InsetMathSpace.h \
493         mathed/InsetMathSpecialChar.h \
494         mathed/InsetMathSplit.h \
495         mathed/InsetMathSqrt.h \
496         mathed/InsetMathStackrel.h \
497         mathed/InsetMathString.h \
498         mathed/InsetMathSubstack.h \
499         mathed/InsetMathSymbol.h \
500         mathed/InsetMathTabular.h \
501         mathed/InsetMathUnderset.h \
502         mathed/InsetMathUnknown.h \
503         mathed/InsetMathXArrow.h \
504         mathed/InsetMathXYMatrix.h \
505         mathed/InsetMathDiagram.h \
506         mathed/MathAtom.h \
507         mathed/MathAutoCorrect.h \
508         mathed/MathData.h \
509         mathed/MathCompletionList.h \
510         mathed/MathExtern.h \
511         mathed/MathFactory.h \
512         mathed/MathMacro.h \
513         mathed/MathMacroArgument.h \
514         mathed/MacroTable.h \
515         mathed/MathMacroTemplate.h \
516         mathed/MathParser.h \
517         mathed/MathParser_flags.h \
518         mathed/ReplaceData.h \
519         mathed/MathStream.h \
520         mathed/MathSupport.h \
521         mathed/TextPainter.h
522
523 lyxmathed.cpp:
524         @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
525
526 if MONOLITHIC_MATHED
527
528 BUILT_SOURCES += lyxmathed.cpp
529 CLEANFILES += lyxmathed.cpp
530
531 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
532
533 else
534
535 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
536
537 endif
538
539 ############################### Insets  ##############################
540
541 noinst_LIBRARIES += liblyxinsets.a
542
543 SOURCEFILESINSETS = \
544         insets/ExternalSupport.cpp \
545         insets/ExternalTemplate.cpp \
546         insets/ExternalTransforms.cpp \
547         insets/RenderButton.cpp \
548         insets/RenderGraphic.cpp \
549         insets/RenderPreview.cpp \
550         insets/Inset.cpp \
551         insets/InsetArgument.cpp \
552         insets/InsetBibitem.cpp \
553         insets/InsetBibtex.cpp \
554         insets/InsetBox.cpp \
555         insets/InsetBranch.cpp \
556         insets/InsetCaption.cpp \
557         insets/InsetCitation.cpp \
558         insets/InsetCollapsable.cpp \
559         insets/InsetCommand.cpp \
560         insets/InsetCommandParams.cpp \
561         insets/InsetERT.cpp \
562         insets/InsetExternal.cpp \
563         insets/InsetFlex.cpp \
564         insets/InsetFloat.cpp \
565         insets/InsetFloatList.cpp \
566         insets/InsetFoot.cpp \
567         insets/InsetFootlike.cpp \
568         insets/InsetGraphicsParams.cpp \
569         insets/InsetGraphics.cpp \
570         insets/InsetHyperlink.cpp \
571         insets/InsetInclude.cpp \
572         insets/InsetIndex.cpp \
573         insets/InsetInfo.cpp \
574         insets/InsetIPA.cpp \
575         insets/InsetIPAMacro.cpp \
576         insets/InsetLabel.cpp \
577         insets/InsetLayout.cpp \
578         insets/InsetLine.cpp \
579         insets/InsetListings.cpp \
580         insets/InsetListingsParams.cpp \
581         insets/InsetMarginal.cpp \
582         insets/InsetNewline.cpp \
583         insets/InsetNewpage.cpp \
584         insets/InsetNomencl.cpp \
585         insets/InsetNote.cpp \
586         insets/InsetPhantom.cpp \
587         insets/InsetPreview.cpp \
588         insets/InsetQuotes.cpp \
589         insets/InsetRef.cpp \
590         insets/InsetScript.cpp \
591         insets/InsetSeparator.cpp \
592         insets/InsetSpace.cpp \
593         insets/InsetSpecialChar.cpp \
594         insets/InsetTabular.cpp \
595         insets/InsetText.cpp \
596         insets/InsetTOC.cpp \
597         insets/InsetVSpace.cpp \
598         insets/InsetWrap.cpp
599
600 HEADERFILESINSETS = \
601         insets/ExternalSupport.h \
602         insets/ExternalTemplate.h \
603         insets/ExternalTransforms.h \
604         insets/RenderBase.h \
605         insets/RenderButton.h \
606         insets/RenderGraphic.h \
607         insets/RenderPreview.h \
608         insets/Inset.h \
609         insets/InsetArgument.h \
610         insets/InsetBibitem.h \
611         insets/InsetBibtex.h \
612         insets/InsetBox.h \
613         insets/InsetBranch.h \
614         insets/InsetCaption.h \
615         insets/InsetCitation.h \
616         insets/InsetCode.h \
617         insets/InsetCollapsable.h \
618         insets/InsetCommand.h \
619         insets/InsetCommandParams.h \
620         insets/InsetERT.h \
621         insets/InsetExternal.h \
622         insets/InsetFlex.h \
623         insets/InsetFloat.h \
624         insets/InsetFoot.h \
625         insets/InsetFloatList.h \
626         insets/InsetFootlike.h \
627         insets/InsetGraphicsParams.h \
628         insets/InsetGraphics.h \
629         insets/InsetHyperlink.h \
630         insets/InsetInclude.h \
631         insets/InsetIndex.h \
632         insets/InsetInfo.h \
633         insets/InsetIPA.h \
634         insets/InsetIPAMacro.h \
635         insets/InsetPreview.h \
636         insets/InsetLabel.h \
637         insets/InsetLayout.h \
638         insets/InsetLine.h \
639         insets/InsetListings.h \
640         insets/InsetListingsParams.h \
641         insets/InsetMarginal.h \
642         insets/InsetNewline.h \
643         insets/InsetNewpage.h \
644         insets/InsetNomencl.h \
645         insets/InsetNote.h \
646         insets/InsetPhantom.h \
647         insets/InsetQuotes.h \
648         insets/InsetRef.h \
649         insets/InsetScript.h \
650         insets/InsetSeparator.h \
651         insets/InsetSpace.h \
652         insets/InsetSpecialChar.h \
653         insets/InsetTabular.h \
654         insets/InsetText.h \
655         insets/InsetTOC.h \
656         insets/InsetVSpace.h \
657         insets/InsetWrap.h
658
659 #       insets/InsetList.cpp \
660 #       insets/InsetList.h \
661 #       insets/InsetSection.h \
662 #       insets/InsetSection.cpp
663
664 lyxinsets.cpp:
665         @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
666
667 if MONOLITHIC_INSETS
668
669 BUILT_SOURCES += lyxinsets.cpp
670 CLEANFILES += lyxinsets.cpp
671
672 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
673
674 else
675
676 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
677
678 endif
679
680
681 ############################## Tests ##################################
682
683 EXTRA_DIST += \
684         tests/test_ExternalTransforms \
685         tests/regfiles/ExternalTransforms \
686         tests/test_layout
687
688 TESTS = tests/test_ExternalTransforms
689
690 alltests: check alltests-recursive
691
692 alltests-recursive: check_layout
693         @srcdir=$(srcdir) $(srcdir)/tests/test_layout; \
694         if test $$? -eq 0; then \
695                 echo -e "====================\nlayout tests passed.\n===================="; \
696         else \
697                 echo -e "====================\nlayout tests failed.\n===================="; \
698         fi
699         cd tex2lyx; $(MAKE) alltests-recursive
700
701 updatetests:
702         cd tex2lyx; $(MAKE) updatetests
703
704 check_PROGRAMS = \
705         check_ExternalTransforms \
706         check_layout
707
708 if INSTALL_MACOSX
709 ADD_FRAMEWORKS = -framework QtGui -framework QtCore -framework AppKit -framework ApplicationServices
710 endif
711
712 check_layout_CPPFLAGS = $(AM_CPPFLAGS)
713 check_layout_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ $(QT_CORE_LIBS) $(LIBSHLWAPI)
714 check_layout_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
715 check_layout_SOURCES = \
716         insets/InsetLayout.cpp \
717         Color.cpp \
718         Counters.cpp \
719         Floating.cpp \
720         FloatList.cpp \
721         FontInfo.cpp \
722         Layout.cpp \
723         LayoutFile.cpp \
724         Lexer.cpp \
725         ModuleList.cpp \
726         Spacing.cpp \
727         TextClass.cpp \
728         tests/check_layout.cpp \
729         tests/boost.cpp \
730         tests/dummy_functions.cpp
731
732 check_ExternalTransforms_CPPFLAGS = $(AM_CPPFLAGS)
733 check_ExternalTransforms_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ $(QT_CORE_LIBS) $(LIBSHLWAPI)
734 check_ExternalTransforms_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
735 check_ExternalTransforms_SOURCES = \
736         graphics/GraphicsParams.cpp \
737         insets/ExternalTransforms.cpp \
738         Length.cpp \
739         lengthcommon.cpp \
740         tests/check_ExternalTransforms.cpp \
741         tests/boost.cpp \
742         tests/dummy_functions.cpp
743
744 .PHONY: alltests alltests-recursive updatetests