1 include $(top_srcdir)/config/common.am
3 EXTRA_DIST = os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h \
4 CMakeLists.txt tests/CMakeLists.txt tests/supporttest.cmake
6 noinst_LIBRARIES = liblyxsupport.a
9 ######################### Qt stuff #############################
13 ConsoleApplicationPrivate.h \
17 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
19 CLEANFILES = $(MOCEDFILES)
20 BUILT_SOURCES = $(MOCEDFILES)
23 $(AM_V_GEN)$(QT_MOC) -o $@ $<
25 liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES)
28 ##################################################################
30 AM_CPPFLAGS += -I$(srcdir)/.. \
31 $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES) \
32 $(QT_CPPFLAGS) $(QT_INCLUDES)
34 liblyxsupport_a_SOURCES = \
41 ConsoleApplication.cpp \
42 ConsoleApplication.h \
43 ConsoleApplicationPrivate.h \
84 numpunct_lyx_char_type.h \
103 SystemcallPrivate.h \
121 #liblyxsupport_a_SOURCES += \
122 # AppleSpellChecker.h \
123 # AppleSpellChecker.mm
127 liblyxsupport_a_SOURCES += \
132 AppleScriptProxy.cpp \
133 linkback/LinkBack.h \
134 linkback/LinkBack.m \
135 linkback/LinkBackProxy.h \
136 linkback/LinkBackProxy.m \
137 linkback/LinkBackServer.h \
138 linkback/LinkBackServer.m
141 ############################## Tests ##################################
145 tests/test_filetools \
146 tests/test_lstrings \
147 tests/test_trivstring \
148 tests/regfiles/convert \
149 tests/regfiles/filetools \
150 tests/regfiles/lstrings \
151 tests/regfiles/trivstring
156 tests/test_filetools \
157 tests/test_lstrings \
158 tests/test_trivstring
168 -framework QtCore -framework AppKit -framework ApplicationServices \
169 -Wl,-rpath,@loader_path/../Frameworks \
170 -Wl,-rpath,@executable_path/../Frameworks \
171 -Wl,-headerpad_max_install_names
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 ; \