]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Partially revert r34995, which broke math output. Not sure why yet....
[lyx.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 CLEANFILES += $(BUILT_SOURCES)
4
5 EXTRA_DIST = pch.h \
6         os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h
7
8 noinst_LIBRARIES = liblyxsupport.a
9
10 BUILT_SOURCES = $(PCH_FILE)
11
12 #########################  Qt stuff  #############################
13 #
14
15 MOCHEADER = SystemcallPrivate.h
16
17 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
18
19 CLEANFILES += $(MOCEDFILES)
20 BUILT_SOURCES += $(MOCEDFILES)
21
22 moc_%.cpp: %.h
23         $(MOC4) -o $@ $<
24
25 liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES)
26
27 #
28 ##################################################################
29
30 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
31 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES) 
32
33 liblyxsupport_a_SOURCES = \
34         FileMonitor.h \
35         FileMonitor.cpp \
36         RandomAccessList.h \
37         bind.h \
38         convert.cpp \
39         convert.h \
40         copied_ptr.h \
41         debug.cpp \
42         debug.h \
43         docstream.cpp \
44         docstream.h \
45         docstring.cpp \
46         docstring.h \
47         docstring_list.h \
48         environment.h \
49         environment.cpp \
50         ExceptionMessage.h \
51         FileName.cpp \
52         FileName.h \
53         FileNameList.h \
54         filetools.cpp \
55         filetools.h \
56         foreach.h \
57         ForkedCalls.cpp \
58         ForkedCalls.h \
59         gettext.cpp \
60         gettext.h \
61         gzstream.cpp \
62         gzstream.h \
63         kill.cpp \
64         lassert.h \
65         lassert.cpp \
66         limited_stack.h \
67         lstrings.cpp \
68         lstrings.h \
69         lyxalgo.h \
70         lyxlib.h \
71         lyxtime.cpp \
72         lyxtime.h \
73         Messages.cpp \
74         Messages.h \
75         numpunct_lyx_char_type.h \
76         os.cpp \
77         os.h \
78         Path.cpp \
79         Path.h \
80         Package.cpp \
81         Package.h \
82         ProgressInterface.h \
83         qstring_helpers.cpp \
84         qstring_helpers.h \
85         regex.h \
86         socktools.cpp \
87         socktools.h \
88         strfwd.h \
89         Systemcall.cpp \
90         Systemcall.h \
91         SystemcallPrivate.h \
92         shared_ptr.h \
93         textutils.h \
94         Translator.h \
95         Timeout.cpp \
96         Timeout.h \
97         types.h \
98         userinfo.cpp \
99         userinfo.h \
100         unicode.cpp \
101         unicode.h \
102         weighted_btree.h \
103         mythes/mythes.cxx \
104         mythes/mythes.hxx \
105         mythes/license.readme
106
107 #if INSTALL_MACOSX
108 #liblyxsupport_a_SOURCES += \
109 #       AppleSpellChecker.h \
110 #       AppleSpellChecker.mm
111 #endif
112
113 if INSTALL_MACOSX
114 liblyxsupport_a_SOURCES += \
115         AppleSpeller.h \
116         AppleSpeller.m \
117         linkback/LinkBack.h \
118         linkback/LinkBack.m \
119         linkback/LinkBackProxy.h \
120         linkback/LinkBackProxy.m \
121         linkback/LinkBackServer.h \
122         linkback/LinkBackServer.m
123 endif
124
125 ############################## Tests ##################################
126
127 EXTRA_DIST += \
128         tests/test_convert \
129         tests/test_filetools \
130         tests/test_lstrings \
131         tests/regfiles/convert \
132         tests/regfiles/filetools \
133         tests/regfiles/lstrings
134
135
136 TESTS = \
137         tests/test_convert \
138         tests/test_filetools \
139         tests/test_lstrings
140
141 check_PROGRAMS = \
142         check_convert \
143         check_filetools \
144         check_lstrings
145
146 check_convert_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
147 check_convert_LDFLAGS = $(QT4_LDFLAGS)
148 check_convert_SOURCES = \
149         tests/check_convert.cpp \
150         tests/boost.cpp
151
152 check_filetools_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
153 check_filetools_LDFLAGS = $(QT4_CORE_LDFLAGS)
154 check_filetools_SOURCES = \
155         tests/check_filetools.cpp \
156         tests/boost.cpp
157
158 check_lstrings_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
159 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
160 check_lstrings_SOURCES = \
161         tests/check_lstrings.cpp \
162         tests/boost.cpp
163
164 makeregfiles: ${check_PROGRAMS}
165         for all in ${check_PROGRAMS} ; do \
166                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
167         done