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 $(NOD_INCLUDES) $(QT_CPPFLAGS) $(QT_INCLUDES)
34 liblyxsupport_a_SOURCES = \
44 ConsoleApplication.cpp \
45 ConsoleApplication.h \
46 ConsoleApplicationPrivate.h \
95 numpunct_lyx_char_type.h \
102 ProgressInterface.h \
104 qstring_helpers.cpp \
112 SystemcallPrivate.h \
130 liblyxsupport_a_SOURCES += \
135 AppleScriptProxy.cpp \
138 linkback/LinkBack.h \
139 linkback/LinkBack.m \
140 linkback/LinkBackProxy.h \
141 linkback/LinkBackProxy.m \
142 linkback/LinkBackServer.h \
143 linkback/LinkBackServer.m
146 ############################## Tests ##################################
150 tests/test_filetools \
151 tests/test_lstrings \
152 tests/test_trivstring \
153 tests/regfiles/convert \
154 tests/regfiles/filetools \
155 tests/regfiles/lstrings \
156 tests/regfiles/trivstring
161 tests/test_filetools \
162 tests/test_lstrings \
163 tests/test_trivstring
173 -framework QtCore -framework AppKit -framework ApplicationServices \
174 -Wl,-rpath,@loader_path/../Frameworks \
175 -Wl,-rpath,@executable_path/../Frameworks \
176 -Wl,-headerpad_max_install_names
179 check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(ZLIB_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
180 check_convert_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
181 check_convert_SOURCES = \
182 tests/check_convert.cpp \
183 tests/dummy_functions.cpp \
186 check_filetools_LDADD = liblyxsupport.a $(LIBICONV) $(ZLIB_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
187 check_filetools_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
188 check_filetools_SOURCES = \
189 tests/check_filetools.cpp \
190 tests/dummy_functions.cpp \
193 check_lstrings_LDADD = liblyxsupport.a $(LIBICONV) $(ZLIB_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
194 check_lstrings_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
195 check_lstrings_SOURCES = \
196 tests/check_lstrings.cpp \
197 tests/dummy_functions.cpp \
200 check_trivstring_LDADD = liblyxsupport.a $(LIBICONV) $(ZLIB_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
201 check_trivstring_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
202 check_trivstring_SOURCES = \
203 tests/check_trivstring.cpp \
204 tests/dummy_functions.cpp \
207 makeregfiles: ${check_PROGRAMS}
208 for all in ${check_PROGRAMS} ; do \
209 ./$$all > ${srcdir}/tests/regfiles/$$all ; \