]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Fix build with GNU libstdc++ C++11 ABI
[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         CMakeLists.txt tests/CMakeLists.txt tests/supporttest.cmake
8
9 noinst_LIBRARIES = liblyxsupport.a
10
11 BUILT_SOURCES = $(PCH_FILE)
12
13 #########################  Qt stuff  #############################
14 #
15
16 MOCHEADER = \
17         ConsoleApplicationPrivate.h \
18         SystemcallPrivate.h
19
20 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
21
22 CLEANFILES += $(MOCEDFILES)
23 BUILT_SOURCES += $(MOCEDFILES)
24
25 moc_%.cpp: %.h
26         $(QT_MOC) -o $@ $<
27
28 liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES)
29
30 #
31 ##################################################################
32
33 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
34 AM_CPPFLAGS += $(QT_CPPFLAGS) $(QT_INCLUDES)
35
36 liblyxsupport_a_SOURCES = \
37         FileMonitor.h \
38         FileMonitor.cpp \
39         RandomAccessList.h \
40         bind.h \
41         ConsoleApplication.cpp \
42         ConsoleApplication.h \
43         ConsoleApplicationPrivate.h \
44         convert.cpp \
45         convert.h \
46         copied_ptr.h \
47         debug.cpp \
48         debug.h \
49         docstream.cpp \
50         docstream.h \
51         docstring.cpp \
52         docstring.h \
53         docstring_list.h \
54         environment.h \
55         environment.cpp \
56         ExceptionMessage.h \
57         FileName.cpp \
58         FileName.h \
59         FileNameList.h \
60         filetools.cpp \
61         filetools.h \
62         foreach.h \
63         ForkedCalls.cpp \
64         ForkedCalls.h \
65         functional.h \
66         gettext.cpp \
67         gettext.h \
68         gzstream.cpp \
69         gzstream.h \
70         kill.cpp \
71         lassert.h \
72         lassert.cpp \
73         limited_stack.h \
74         lstrings.cpp \
75         lstrings.h \
76         lyxalgo.h \
77         lyxlib.h \
78         lyxtime.cpp \
79         lyxtime.h \
80         mutex.h \
81         mutex.cpp \
82         Messages.cpp \
83         Messages.h \
84         numpunct_lyx_char_type.h \
85         os.cpp \
86         os.h \
87         PathChanger.cpp \
88         PathChanger.h \
89         Package.cpp \
90         Package.h \
91         ProgressInterface.h \
92         pmprof.h \
93         qstring_helpers.cpp \
94         qstring_helpers.h \
95         regex.h \
96         socktools.cpp \
97         socktools.h \
98         strfwd.h \
99         Systemcall.cpp \
100         Systemcall.h \
101         SystemcallPrivate.h \
102         shared_ptr.h \
103         TempFile.cpp \
104         TempFile.h \
105         textutils.h \
106         Translator.h \
107         Timeout.cpp \
108         Timeout.h \
109         trivstring.cpp \
110         trivstring.h \
111         types.h \
112         userinfo.cpp \
113         userinfo.h \
114         unicode.cpp \
115         unicode.h \
116         weighted_btree.h
117 if USE_INCLUDED_MYTHES
118 liblyxsupport_a_SOURCES += \
119         mythes/mythes.cxx \
120         mythes/mythes.hxx \
121         mythes/license.readme
122 endif
123
124 #if INSTALL_MACOSX
125 #liblyxsupport_a_SOURCES += \
126 #       AppleSpellChecker.h \
127 #       AppleSpellChecker.mm
128 #endif
129
130 if INSTALL_MACOSX
131 liblyxsupport_a_SOURCES += \
132         AppleSpeller.h \
133         AppleSpeller.m \
134         AppleScript.h \
135         AppleScript.m \
136         AppleScriptProxy.cpp \
137         linkback/LinkBack.h \
138         linkback/LinkBack.m \
139         linkback/LinkBackProxy.h \
140         linkback/LinkBackProxy.m \
141         linkback/LinkBackServer.h \
142         linkback/LinkBackServer.m
143 endif
144
145 ############################## Tests ##################################
146
147 EXTRA_DIST += \
148         tests/test_convert \
149         tests/test_filetools \
150         tests/test_lstrings \
151         tests/test_trivstring \
152         tests/regfiles/convert \
153         tests/regfiles/filetools \
154         tests/regfiles/lstrings \
155         tests/regfiles/trivstring
156
157
158 TESTS = \
159         tests/test_convert \
160         tests/test_filetools \
161         tests/test_lstrings \
162         tests/test_trivstring
163
164 check_PROGRAMS = \
165         check_convert \
166         check_filetools \
167         check_lstrings \
168         check_trivstring
169
170 if INSTALL_MACOSX
171 ADD_FRAMEWORKS = -framework QtCore -framework AppKit -framework ApplicationServices
172 endif
173
174 check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
175 check_convert_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
176 check_convert_SOURCES = \
177         tests/check_convert.cpp \
178         tests/dummy_functions.cpp \
179         tests/boost.cpp
180
181 check_filetools_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
182 check_filetools_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
183 check_filetools_SOURCES = \
184         tests/check_filetools.cpp \
185         tests/dummy_functions.cpp \
186         tests/boost.cpp
187
188 check_lstrings_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
189 check_lstrings_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
190 check_lstrings_SOURCES = \
191         tests/check_lstrings.cpp \
192         tests/dummy_functions.cpp \
193         tests/boost.cpp
194
195 check_trivstring_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
196 check_trivstring_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
197 check_trivstring_SOURCES = \
198         tests/check_trivstring.cpp \
199         tests/dummy_functions.cpp \
200         tests/boost.cpp
201
202 makeregfiles: ${check_PROGRAMS}
203         for all in ${check_PROGRAMS} ; do \
204                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
205         done