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 = \
44 ConsoleApplication.cpp \
45 ConsoleApplication.h \
46 ConsoleApplicationPrivate.h \
92 numpunct_lyx_char_type.h \
101 qstring_helpers.cpp \
110 SystemcallPrivate.h \
128 liblyxsupport_a_SOURCES += \
133 AppleScriptProxy.cpp \
136 linkback/LinkBack.h \
137 linkback/LinkBack.m \
138 linkback/LinkBackProxy.h \
139 linkback/LinkBackProxy.m \
140 linkback/LinkBackServer.h \
141 linkback/LinkBackServer.m
144 ############################## Tests ##################################
148 tests/test_filetools \
149 tests/test_lstrings \
150 tests/test_trivstring \
151 tests/regfiles/convert \
152 tests/regfiles/filetools \
153 tests/regfiles/lstrings \
154 tests/regfiles/trivstring
159 tests/test_filetools \
160 tests/test_lstrings \
161 tests/test_trivstring
171 -framework QtCore -framework AppKit -framework ApplicationServices \
172 -Wl,-rpath,@loader_path/../Frameworks \
173 -Wl,-rpath,@executable_path/../Frameworks \
174 -Wl,-headerpad_max_install_names
177 check_convert_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
178 check_convert_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
179 check_convert_SOURCES = \
180 tests/check_convert.cpp \
181 tests/dummy_functions.cpp \
184 check_filetools_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
185 check_filetools_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
186 check_filetools_SOURCES = \
187 tests/check_filetools.cpp \
188 tests/dummy_functions.cpp \
191 check_lstrings_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
192 check_lstrings_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
193 check_lstrings_SOURCES = \
194 tests/check_lstrings.cpp \
195 tests/dummy_functions.cpp \
198 check_trivstring_LDADD = liblyxsupport.a $(LIBICONV) $(BOOST_LIBS) $(QT_CORE_LIBS) $(LIBSHLWAPI) @LIBS@
199 check_trivstring_LDFLAGS = $(QT_CORE_LDFLAGS) $(ADD_FRAMEWORKS)
200 check_trivstring_SOURCES = \
201 tests/check_trivstring.cpp \
202 tests/dummy_functions.cpp \
205 makeregfiles: ${check_PROGRAMS}
206 for all in ${check_PROGRAMS} ; do \
207 ./$$all > ${srcdir}/tests/regfiles/$$all ; \