1 include $(top_srcdir)/config/common.am
3 CLEANFILES += $(BUILT_SOURCES)
6 os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h \
7 CMakeLists.txt tests/CMakeLists.txt tests/supporttest.cmake
9 noinst_LIBRARIES = liblyxsupport.a
11 BUILT_SOURCES = $(PCH_FILE)
13 ######################### Qt stuff #############################
17 ConsoleApplicationPrivate.h \
20 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
22 CLEANFILES += $(MOCEDFILES)
23 BUILT_SOURCES += $(MOCEDFILES)
28 liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES)
31 ##################################################################
33 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
34 AM_CPPFLAGS += $(QT_CPPFLAGS) $(QT_INCLUDES)
36 liblyxsupport_a_SOURCES = \
41 ConsoleApplication.cpp \
42 ConsoleApplication.h \
43 ConsoleApplicationPrivate.h \
84 numpunct_lyx_char_type.h \
101 SystemcallPrivate.h \
117 if USE_INCLUDED_MYTHES
118 liblyxsupport_a_SOURCES += \
121 mythes/license.readme
125 #liblyxsupport_a_SOURCES += \
126 # AppleSpellChecker.h \
127 # AppleSpellChecker.mm
131 liblyxsupport_a_SOURCES += \
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
145 ############################## Tests ##################################
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
160 tests/test_filetools \
161 tests/test_lstrings \
162 tests/test_trivstring
171 ADD_FRAMEWORKS = -framework QtCore -framework AppKit -framework ApplicationServices
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 \
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 \
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 \
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 \
202 makeregfiles: ${check_PROGRAMS}
203 for all in ${check_PROGRAMS} ; do \
204 ./$$all > ${srcdir}/tests/regfiles/$$all ; \