]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Fix make check target
[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_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         functional.h \
60         gettext.cpp \
61         gettext.h \
62         gzstream.cpp \
63         gzstream.h \
64         kill.cpp \
65         lassert.h \
66         lassert.cpp \
67         limited_stack.h \
68         lstrings.cpp \
69         lstrings.h \
70         lyxalgo.h \
71         lyxlib.h \
72         lyxtime.cpp \
73         lyxtime.h \
74         mutex.h \
75         mutex.cpp \
76         Messages.cpp \
77         Messages.h \
78         numpunct_lyx_char_type.h \
79         os.cpp \
80         os.h \
81         Path.cpp \
82         Path.h \
83         Package.cpp \
84         Package.h \
85         ProgressInterface.h \
86         qstring_helpers.cpp \
87         qstring_helpers.h \
88         regex.h \
89         socktools.cpp \
90         socktools.h \
91         strfwd.h \
92         Systemcall.cpp \
93         Systemcall.h \
94         SystemcallPrivate.h \
95         shared_ptr.h \
96         textutils.h \
97         Translator.h \
98         Timeout.cpp \
99         Timeout.h \
100         types.h \
101         userinfo.cpp \
102         userinfo.h \
103         unicode.cpp \
104         unicode.h \
105         weighted_btree.h
106 if USE_INCLUDED_MYTHES
107 liblyxsupport_a_SOURCES += \
108         mythes/mythes.cxx \
109         mythes/mythes.hxx \
110         mythes/license.readme
111 endif
112
113 #if INSTALL_MACOSX
114 #liblyxsupport_a_SOURCES += \
115 #       AppleSpellChecker.h \
116 #       AppleSpellChecker.mm
117 #endif
118
119 if INSTALL_MACOSX
120 liblyxsupport_a_SOURCES += \
121         AppleSpeller.h \
122         AppleSpeller.m \
123         AppleScript.h \
124         AppleScript.m \
125         AppleScriptProxy.cpp \
126         linkback/LinkBack.h \
127         linkback/LinkBack.m \
128         linkback/LinkBackProxy.h \
129         linkback/LinkBackProxy.m \
130         linkback/LinkBackServer.h \
131         linkback/LinkBackServer.m
132 endif
133
134 ############################## Tests ##################################
135
136 EXTRA_DIST += \
137         tests/test_convert \
138         tests/test_filetools \
139         tests/test_lstrings \
140         tests/regfiles/convert \
141         tests/regfiles/filetools \
142         tests/regfiles/lstrings
143
144
145 TESTS = \
146         tests/test_convert \
147         tests/test_filetools \
148         tests/test_lstrings
149
150 check_PROGRAMS = \
151         check_convert \
152         check_filetools \
153         check_lstrings
154
155 check_convert_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS) $(LIBSHLWAPI)
156 check_convert_LDFLAGS = $(QT4_LDFLAGS)
157 check_convert_SOURCES = \
158         tests/check_convert.cpp \
159         tests/dummy_functions.cpp \
160         tests/boost.cpp
161
162 check_filetools_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS) $(LIBSHLWAPI)
163 check_filetools_LDFLAGS = $(QT4_CORE_LDFLAGS)
164 check_filetools_SOURCES = \
165         tests/check_filetools.cpp \
166         tests/dummy_functions.cpp \
167         tests/boost.cpp
168
169 check_lstrings_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS) $(LIBSHLWAPI)
170 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
171 check_lstrings_SOURCES = \
172         tests/check_lstrings.cpp \
173         tests/dummy_functions.cpp \
174         tests/boost.cpp
175
176 makeregfiles: ${check_PROGRAMS}
177         for all in ${check_PROGRAMS} ; do \
178                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
179         done