1 include $(top_srcdir)/config/common.am
3 CLEANFILES += $(BUILT_SOURCES)
5 EXTRA_DIST = Package.cpp.in pch.h \
6 os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h
8 pkglib_LTLIBRARIES = liblyxsupport.la
10 liblyxsupport_la_LIBADD = $(LIBSHLWAPI) $(QT4_CORE_LIB) $(BOOST_SIGNALS)
11 liblyxsupport_la_LDFLAGS = $(QT4_CORE_LDFLAGS)
13 BUILT_SOURCES = $(PCH_FILE) Package.cpp
15 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
16 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
18 liblyxsupport_la_SOURCES = \
47 ForkedcallsController.cpp \
48 ForkedcallsController.h \
94 Package.cpp: build_package
96 # Solaris sed does not like spaces bewteen the ;-delimited commands
97 build_package: Package.cpp.in
99 sed "s,@LYX_DIR@,$(LYX_ABS_INSTALLED_DATADIR),;\
100 s,@LOCALEDIR@,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
101 s,@TOP_SRCDIR@,$(LYX_ABS_TOP_SRCDIR),;\
102 s,@PROGRAM_SUFFIX@,$(program_suffix)," \
103 $(srcdir)/Package.cpp.in > tmp_package ;\
104 if cmp -s tmp_package Package.cpp ; then \
108 mv tmp_package Package.cpp ;\
112 ############################## Tests ##################################
114 EXTRA_DIST += tests/test_convert tests/test_filetools \
115 tests/test_lstrings tests/regfiles
127 check_convert_LDADD = ../debug.o convert.o docstring.o lstrings.o unicode.o \
128 qstring_helpers.o $(BOOST_LIBS) $(QT4_CORE_LIB)
129 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
130 check_convert_SOURCES = \
131 tests/check_convert.cpp \
134 check_filetools_LDADD = ../debug.o libsupport.la $(BOOST_LIBS)
135 check_filetools_SOURCES = \
136 tests/check_filetools.cpp \
139 check_lstrings_LDADD = ../debug.o lstrings.o convert.o docstring.o unicode.o \
140 qstring_helpers.o $(QT4_CORE_LIB)
141 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
142 check_lstrings_SOURCES = \
143 tests/check_lstrings.cpp \
146 makeregfiles: ${check_PROGRAMS}
147 for all in ${check_PROGRAMS} ; do \
148 ./$$all > ${srcdir}/regfiles/$$all ; \