]> git.lyx.org Git - lyx.git/blob - src/Makefile.am
Reset stream properties after changing them
[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         texstream.cpp \
185         Text.cpp \
186         Text2.cpp \
187         Text3.cpp \
188         TextClass.cpp \
189         TextMetrics.cpp \
190         TocBackend.cpp \
191         Trans.cpp \
192         Undo.cpp \
193         VCBackend.cpp \
194         version.cpp \
195         VSpace.cpp \
196         WordList.cpp
197
198 HEADERFILESCORE = \
199         Author.h \
200         Bidi.h \
201         BranchList.h \
202         buffer_funcs.h \
203         Buffer.h \
204         BufferEncodings.h \
205         BufferList.h \
206         BufferParams.h \
207         BufferView.h \
208         Bullet.h \
209         Citation.h \
210         Changes.h \
211         Chktex.h \
212         CmdDef.h \
213         ColorCode.h \
214         Color.h \
215         ColorSet.h \
216         CompletionList.h \
217         ConverterCache.h \
218         Converter.h \
219         CoordCache.h \
220         Counters.h \
221         Cursor.h \
222         CursorSlice.h \
223         CutAndPaste.h \
224         DepTable.h \
225         DispatchResult.h \
226         DocIterator.h \
227         DocumentClassPtr.h \
228         Encoding.h \
229         ErrorList.h \
230         Exporter.h \
231         factory.h \
232         Floating.h \
233         FloatList.h \
234         Font.h \
235         FontEnums.h \
236         FontInfo.h \
237         FontList.h \
238         Format.h \
239         FuncCode.h \
240         FuncRequest.h \
241         FuncStatus.h \
242         Graph.h \
243         HSpace.h \
244         IndicesList.h \
245         InsetIterator.h \
246         InsetList.h \
247         Intl.h \
248         KeyMap.h \
249         KeySequence.h \
250         Language.h \
251         LaTeXFeatures.h \
252         LaTeXPackages.h \
253         LaTeX.h \
254         Layout.h \
255         LayoutEnums.h \
256         LayoutFile.h \
257         LayoutModuleList.h \
258         Length.h \
259         Lexer.h \
260         LyXAction.h \
261         lyxfind.h \
262         LyX.h \
263         LyXRC.h \
264         LyXVC.h \
265         MetricsInfo.h \
266         ModuleList.h \
267         Mover.h \
268         output_docbook.h \
269         output.h \
270         OutputEnums.h \
271         output_latex.h \
272         output_xhtml.h \
273         OutputParams.h \
274         output_plaintext.h \
275         paper.h \
276         Paragraph.h \
277         ParagraphList.h \
278         ParagraphMetrics.h \
279         ParagraphParameters.h \
280         ParIterator.h \
281         PDFOptions.h \
282         Row.h \
283         RowPainter.h \
284         Server.h \
285         ServerSocket.h \
286         Session.h \
287         sgml.h \
288         Spacing.h \
289         SpellChecker.h \
290         TexRow.h \
291         texstream.h \
292         Text.h \
293         TextClass.h \
294         TextMetrics.h \
295         TocBackend.h \
296         Trans.h \
297         Undo.h \
298         update_flags.h \
299         VCBackend.h \
300         version.h \
301         VSpace.h \
302         WordLangTuple.h \
303         WordList.h
304
305 STANDALONEFILES = \
306         Layout.cpp
307
308 .PHONY: lyx_commit_hash.h
309
310 lyx_commit_hash.h:
311         $(AM_V_GEN)hash=`cd "$(top_srcdir)" && git log -1 --pretty=format:%H 2>/dev/null || echo none` ; \
312         sed s/@LYX_GIT_COMMIT_HASH@/$$hash/ "$(srcdir)"/lyx_commit_hash.h.in >$@
313 BUILT_SOURCES += lyx_commit_hash.h
314 CLEANFILES += lyx_commit_hash.h
315
316 lyxcore.cpp:
317         @echo -e '$(SOURCEFILESCORE:%=\n#include "%")\n' > $@
318
319 if MONOLITHIC_CORE
320
321 BUILT_SOURCES += lyxcore.cpp $(STANDALONEFILES)
322 CLEANFILES += lyxcore.cpp
323
324 liblyxcore_a_SOURCES = lyxcore.cpp $(STANDALONEFILES) $(HEADERFILESCORE)
325
326 else
327
328 liblyxcore_a_SOURCES = $(SOURCEFILESCORE) $(STANDALONEFILES) $(HEADERFILESCORE)
329
330 endif
331
332 #########################  Qt stuff  ##############################
333
334 MOCHEADER = Compare.h
335
336 if INSTALL_WINDOWS
337
338 MOCHEADER += Server.h
339 MOCFLAG = -D_WIN32
340
341 endif
342
343 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
344
345 BUILT_SOURCES += $(MOCEDFILES)
346 CLEANFILES += $(MOCEDFILES)
347
348 moc_%.cpp: %.h
349         $(AM_V_GEN)$(QT_MOC) $(MOCFLAG) -o $@ $<
350
351 liblyxcore_a_DEPENDENCIES = $(MOCEDFILES)
352
353 ############################### Graphics ##############################
354
355 noinst_LIBRARIES += liblyxgraphics.a
356
357 liblyxgraphics_a_SOURCES = \
358         graphics/epstools.h \
359         graphics/epstools.cpp \
360         graphics/GraphicsCache.h \
361         graphics/GraphicsCache.cpp \
362         graphics/GraphicsCacheItem.h \
363         graphics/GraphicsCacheItem.cpp \
364         graphics/GraphicsConverter.h \
365         graphics/GraphicsConverter.cpp \
366         graphics/GraphicsImage.h \
367         graphics/GraphicsLoader.h \
368         graphics/GraphicsLoader.cpp \
369         graphics/GraphicsParams.cpp \
370         graphics/GraphicsParams.h \
371         graphics/GraphicsTypes.h \
372         graphics/PreviewImage.h \
373         graphics/PreviewImage.cpp \
374         graphics/PreviewLoader.h \
375         graphics/PreviewLoader.cpp
376
377
378 ############################### Mathed  ##############################
379
380 noinst_LIBRARIES += liblyxmathed.a
381
382 SOURCEFILESMATHED = \
383         mathed/CommandInset.cpp \
384         mathed/InsetMathAMSArray.cpp \
385         mathed/InsetMathArray.cpp \
386         mathed/InsetMathBig.cpp \
387         mathed/InsetMathBoldSymbol.cpp \
388         mathed/InsetMathBox.cpp \
389         mathed/InsetMathBrace.cpp \
390         mathed/InsetMath.cpp \
391         mathed/InsetMathCases.cpp \
392         mathed/InsetMathChar.cpp \
393         mathed/InsetMathColor.cpp \
394         mathed/InsetMathComment.cpp \
395         mathed/InsetMathDecoration.cpp \
396         mathed/InsetMathDecoration.h \
397         mathed/InsetMathDelim.cpp \
398         mathed/InsetMathDiff.cpp \
399         mathed/InsetMathDots.cpp \
400         mathed/InsetMathEnsureMath.cpp \
401         mathed/InsetMathEnv.cpp \
402         mathed/InsetMathExFunc.cpp \
403         mathed/InsetMathExInt.cpp \
404         mathed/InsetMathFont.cpp \
405         mathed/InsetMathFontOld.cpp \
406         mathed/InsetMathFrac.cpp \
407         mathed/InsetMathGrid.cpp \
408         mathed/InsetMathHull.cpp \
409         mathed/InsetMathKern.cpp \
410         mathed/InsetMathLefteqn.cpp \
411         mathed/InsetMathLim.cpp \
412         mathed/InsetMathCancel.cpp \
413         mathed/InsetMathCancelto.cpp \
414         mathed/InsetMathMatrix.cpp \
415         mathed/InsetMathNest.cpp \
416         mathed/InsetMathNumber.cpp \
417         mathed/InsetMathOverset.cpp \
418         mathed/InsetMathPar.cpp \
419         mathed/InsetMathPhantom.cpp \
420         mathed/InsetMathRef.cpp \
421         mathed/InsetMathRoot.cpp \
422         mathed/InsetMathScript.cpp \
423         mathed/InsetMathSideset.cpp \
424         mathed/InsetMathSize.cpp \
425         mathed/InsetMathSpace.cpp \
426         mathed/InsetMathSpecialChar.cpp \
427         mathed/InsetMathSplit.cpp \
428         mathed/InsetMathSqrt.cpp \
429         mathed/InsetMathStackrel.cpp \
430         mathed/InsetMathString.cpp \
431         mathed/InsetMathSubstack.cpp \
432         mathed/InsetMathSymbol.cpp \
433         mathed/InsetMathTabular.cpp \
434         mathed/InsetMathUnderset.cpp \
435         mathed/InsetMathUnknown.cpp \
436         mathed/InsetMathXArrow.cpp \
437         mathed/InsetMathXYMatrix.cpp \
438         mathed/InsetMathDiagram.cpp \
439         mathed/MathAtom.cpp \
440         mathed/MathAutoCorrect.cpp \
441         mathed/MathData.cpp \
442         mathed/MathExtern.cpp \
443         mathed/MathFactory.cpp \
444         mathed/MathMacro.cpp \
445         mathed/MathMacroArgument.cpp \
446         mathed/MacroTable.cpp \
447         mathed/MathMacroTemplate.cpp \
448         mathed/MathParser.cpp \
449         mathed/MathStream.cpp \
450         mathed/MathSupport.cpp \
451         mathed/TextPainter.cpp
452
453 HEADERFILESMATHED = \
454         mathed/CommandInset.h \
455         mathed/InsetMathAMSArray.h \
456         mathed/InsetMathArray.h \
457         mathed/InsetMathBig.h \
458         mathed/InsetMathBoldSymbol.h \
459         mathed/InsetMathBox.h \
460         mathed/InsetMathBrace.h \
461         mathed/InsetMathCancel.h \
462         mathed/InsetMathCancelto.h \
463         mathed/InsetMathCases.h \
464         mathed/InsetMathChar.h \
465         mathed/InsetMathColor.h \
466         mathed/InsetMathComment.h \
467         mathed/InsetMathDelim.h \
468         mathed/InsetMathDiff.h \
469         mathed/InsetMathDots.h \
470         mathed/InsetMathEnsureMath.h \
471         mathed/InsetMathEnv.h \
472         mathed/InsetMathExFunc.h \
473         mathed/InsetMathExInt.h \
474         mathed/InsetMathFont.h \
475         mathed/InsetMathFontOld.h \
476         mathed/InsetMathFrac.h \
477         mathed/InsetMathGrid.h \
478         mathed/InsetMath.h \
479         mathed/InsetMathHull.h \
480         mathed/InsetMathKern.h \
481         mathed/InsetMathLefteqn.h \
482         mathed/InsetMathLim.h \
483         mathed/InsetMathMatrix.h \
484         mathed/InsetMathNest.h \
485         mathed/InsetMathNumber.h \
486         mathed/InsetMathOverset.h \
487         mathed/InsetMathPar.h \
488         mathed/InsetMathPhantom.h \
489         mathed/InsetMathRef.h \
490         mathed/InsetMathRoot.h \
491         mathed/InsetMathScript.h \
492         mathed/InsetMathSideset.h \
493         mathed/InsetMathSize.h \
494         mathed/InsetMathSpace.h \
495         mathed/InsetMathSpecialChar.h \
496         mathed/InsetMathSplit.h \
497         mathed/InsetMathSqrt.h \
498         mathed/InsetMathStackrel.h \
499         mathed/InsetMathString.h \
500         mathed/InsetMathSubstack.h \
501         mathed/InsetMathSymbol.h \
502         mathed/InsetMathTabular.h \
503         mathed/InsetMathUnderset.h \
504         mathed/InsetMathUnknown.h \
505         mathed/InsetMathXArrow.h \
506         mathed/InsetMathXYMatrix.h \
507         mathed/InsetMathDiagram.h \
508         mathed/MathAtom.h \
509         mathed/MathAutoCorrect.h \
510         mathed/MathData.h \
511         mathed/MathCompletionList.h \
512         mathed/MathExtern.h \
513         mathed/MathFactory.h \
514         mathed/MathMacro.h \
515         mathed/MathMacroArgument.h \
516         mathed/MacroTable.h \
517         mathed/MathMacroTemplate.h \
518         mathed/MathParser.h \
519         mathed/MathParser_flags.h \
520         mathed/ReplaceData.h \
521         mathed/MathStream.h \
522         mathed/MathSupport.h \
523         mathed/TextPainter.h
524
525 lyxmathed.cpp:
526         @echo -e '$(SOURCEFILESMATHED:%=\n#include "%")\n' > $@
527
528 if MONOLITHIC_MATHED
529
530 BUILT_SOURCES += lyxmathed.cpp
531 CLEANFILES += lyxmathed.cpp
532
533 liblyxmathed_a_SOURCES = lyxmathed.cpp $(HEADERFILESMATHED)
534
535 else
536
537 liblyxmathed_a_SOURCES = $(SOURCEFILESMATHED) $(HEADERFILESMATHED)
538
539 endif
540
541 ############################### Insets  ##############################
542
543 noinst_LIBRARIES += liblyxinsets.a
544
545 SOURCEFILESINSETS = \
546         insets/ExternalSupport.cpp \
547         insets/ExternalTemplate.cpp \
548         insets/ExternalTransforms.cpp \
549         insets/RenderButton.cpp \
550         insets/RenderGraphic.cpp \
551         insets/RenderPreview.cpp \
552         insets/Inset.cpp \
553         insets/InsetArgument.cpp \
554         insets/InsetBibitem.cpp \
555         insets/InsetBibtex.cpp \
556         insets/InsetBox.cpp \
557         insets/InsetBranch.cpp \
558         insets/InsetCaption.cpp \
559         insets/InsetCitation.cpp \
560         insets/InsetCollapsable.cpp \
561         insets/InsetCommand.cpp \
562         insets/InsetCommandParams.cpp \
563         insets/InsetERT.cpp \
564         insets/InsetExternal.cpp \
565         insets/InsetFlex.cpp \
566         insets/InsetFloat.cpp \
567         insets/InsetFloatList.cpp \
568         insets/InsetFoot.cpp \
569         insets/InsetFootlike.cpp \
570         insets/InsetGraphicsParams.cpp \
571         insets/InsetGraphics.cpp \
572         insets/InsetHyperlink.cpp \
573         insets/InsetInclude.cpp \
574         insets/InsetIndex.cpp \
575         insets/InsetInfo.cpp \
576         insets/InsetIPA.cpp \
577         insets/InsetIPAMacro.cpp \
578         insets/InsetLabel.cpp \
579         insets/InsetLayout.cpp \
580         insets/InsetLine.cpp \
581         insets/InsetListings.cpp \
582         insets/InsetListingsParams.cpp \
583         insets/InsetMarginal.cpp \
584         insets/InsetNewline.cpp \
585         insets/InsetNewpage.cpp \
586         insets/InsetNomencl.cpp \
587         insets/InsetNote.cpp \
588         insets/InsetPhantom.cpp \
589         insets/InsetPreview.cpp \
590         insets/InsetQuotes.cpp \
591         insets/InsetRef.cpp \
592         insets/InsetScript.cpp \
593         insets/InsetSeparator.cpp \
594         insets/InsetSpace.cpp \
595         insets/InsetSpecialChar.cpp \
596         insets/InsetTabular.cpp \
597         insets/InsetText.cpp \
598         insets/InsetTOC.cpp \
599         insets/InsetVSpace.cpp \
600         insets/InsetWrap.cpp
601
602 HEADERFILESINSETS = \
603         insets/ExternalSupport.h \
604         insets/ExternalTemplate.h \
605         insets/ExternalTransforms.h \
606         insets/RenderBase.h \
607         insets/RenderButton.h \
608         insets/RenderGraphic.h \
609         insets/RenderPreview.h \
610         insets/Inset.h \
611         insets/InsetArgument.h \
612         insets/InsetBibitem.h \
613         insets/InsetBibtex.h \
614         insets/InsetBox.h \
615         insets/InsetBranch.h \
616         insets/InsetCaption.h \
617         insets/InsetCitation.h \
618         insets/InsetCode.h \
619         insets/InsetCollapsable.h \
620         insets/InsetCommand.h \
621         insets/InsetCommandParams.h \
622         insets/InsetERT.h \
623         insets/InsetExternal.h \
624         insets/InsetFlex.h \
625         insets/InsetFloat.h \
626         insets/InsetFoot.h \
627         insets/InsetFloatList.h \
628         insets/InsetFootlike.h \
629         insets/InsetGraphicsParams.h \
630         insets/InsetGraphics.h \
631         insets/InsetHyperlink.h \
632         insets/InsetInclude.h \
633         insets/InsetIndex.h \
634         insets/InsetInfo.h \
635         insets/InsetIPA.h \
636         insets/InsetIPAMacro.h \
637         insets/InsetPreview.h \
638         insets/InsetLabel.h \
639         insets/InsetLayout.h \
640         insets/InsetLine.h \
641         insets/InsetListings.h \
642         insets/InsetListingsParams.h \
643         insets/InsetMarginal.h \
644         insets/InsetNewline.h \
645         insets/InsetNewpage.h \
646         insets/InsetNomencl.h \
647         insets/InsetNote.h \
648         insets/InsetPhantom.h \
649         insets/InsetQuotes.h \
650         insets/InsetRef.h \
651         insets/InsetScript.h \
652         insets/InsetSeparator.h \
653         insets/InsetSpace.h \
654         insets/InsetSpecialChar.h \
655         insets/InsetTabular.h \
656         insets/InsetText.h \
657         insets/InsetTOC.h \
658         insets/InsetVSpace.h \
659         insets/InsetWrap.h
660
661 #       insets/InsetList.cpp \
662 #       insets/InsetList.h \
663 #       insets/InsetSection.h \
664 #       insets/InsetSection.cpp
665
666 lyxinsets.cpp:
667         @echo -e '$(SOURCEFILESINSETS:%=\n#include "%")\n' > $@
668
669 if MONOLITHIC_INSETS
670
671 BUILT_SOURCES += lyxinsets.cpp
672 CLEANFILES += lyxinsets.cpp
673
674 liblyxinsets_a_SOURCES = lyxinsets.cpp $(HEADERFILESINSETS)
675
676 else
677
678 liblyxinsets_a_SOURCES = $(SOURCEFILESINSETS) $(HEADERFILESINSETS)
679
680 endif
681
682
683 ############################## Tests ##################################
684
685 EXTRA_DIST += \
686         tests/test_ExternalTransforms \
687         tests/regfiles/ExternalTransforms \
688         tests/test_layout
689
690 TESTS = tests/test_ExternalTransforms
691
692 alltests: check alltests-recursive
693
694 alltests-recursive: check_layout
695         @srcdir=$(srcdir) $(srcdir)/tests/test_layout; \
696         if test $$? -eq 0; then \
697                 echo -e "====================\nlayout tests passed.\n===================="; \
698         else \
699                 echo -e "====================\nlayout tests failed.\n===================="; \
700         fi
701         cd tex2lyx; $(MAKE) alltests-recursive
702
703 updatetests:
704         cd tex2lyx; $(MAKE) updatetests
705
706 check_PROGRAMS = \
707         check_ExternalTransforms \
708         check_layout
709
710 if INSTALL_MACOSX
711 ADD_FRAMEWORKS = -framework QtGui -framework QtCore -framework AppKit -framework ApplicationServices
712 endif
713
714 check_layout_CPPFLAGS = $(AM_CPPFLAGS)
715 check_layout_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ $(QT_CORE_LIBS) $(LIBSHLWAPI)
716 check_layout_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
717 check_layout_SOURCES = \
718         insets/InsetLayout.cpp \
719         Color.cpp \
720         Counters.cpp \
721         Floating.cpp \
722         FloatList.cpp \
723         FontInfo.cpp \
724         Layout.cpp \
725         LayoutFile.cpp \
726         Lexer.cpp \
727         ModuleList.cpp \
728         Spacing.cpp \
729         TextClass.cpp \
730         tests/check_layout.cpp \
731         tests/boost.cpp \
732         tests/dummy_functions.cpp
733
734 check_ExternalTransforms_CPPFLAGS = $(AM_CPPFLAGS)
735 check_ExternalTransforms_LDADD = support/liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) @LIBS@ $(QT_CORE_LIBS) $(LIBSHLWAPI)
736 check_ExternalTransforms_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
737 check_ExternalTransforms_SOURCES = \
738         graphics/GraphicsParams.cpp \
739         insets/ExternalTransforms.cpp \
740         Length.cpp \
741         lengthcommon.cpp \
742         tests/check_ExternalTransforms.cpp \
743         tests/boost.cpp \
744         tests/dummy_functions.cpp
745
746 .PHONY: alltests alltests-recursive updatetests