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