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