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