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