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 \
83 numpunct_lyx_char_type.h \
102 SystemcallPrivate.h \
120 #liblyxsupport_a_SOURCES += \
121 # AppleSpellChecker.h \
122 # AppleSpellChecker.mm
126 liblyxsupport_a_SOURCES += \
131 AppleScriptProxy.cpp \
132 linkback/LinkBack.h \
133 linkback/LinkBack.m \
134 linkback/LinkBackProxy.h \
135 linkback/LinkBackProxy.m \
136 linkback/LinkBackServer.h \
137 linkback/LinkBackServer.m
140 ############################## Tests ##################################
144 tests/test_filetools \
145 tests/test_lstrings \
146 tests/test_trivstring \
147 tests/regfiles/convert \
148 tests/regfiles/filetools \
149 tests/regfiles/lstrings \
150 tests/regfiles/trivstring
155 tests/test_filetools \
156 tests/test_lstrings \
157 tests/test_trivstring
167 -framework QtCore -framework AppKit -framework ApplicationServices \
168 -Wl,-rpath,@loader_path/../Frameworks \
169 -Wl,-rpath,@executable_path/../Frameworks \
170 -Wl,-headerpad_max_install_names
173 check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
174 check_convert_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
175 check_convert_SOURCES = \
176 tests/check_convert.cpp \
177 tests/dummy_functions.cpp \
180 check_filetools_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
181 check_filetools_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
182 check_filetools_SOURCES = \
183 tests/check_filetools.cpp \
184 tests/dummy_functions.cpp \
187 check_lstrings_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
188 check_lstrings_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
189 check_lstrings_SOURCES = \
190 tests/check_lstrings.cpp \
191 tests/dummy_functions.cpp \
194 check_trivstring_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
195 check_trivstring_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
196 check_trivstring_SOURCES = \
197 tests/check_trivstring.cpp \
198 tests/dummy_functions.cpp \
201 makeregfiles: ${check_PROGRAMS}
202 for all in ${check_PROGRAMS} ; do \
203 ./$$all > ${srcdir}/tests/regfiles/$$all ; \