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 \
96 Package.cpp: build_package
98 # Solaris sed does not like spaces bewteen the ;-delimited commands
99 build_package: Package.cpp.in
100 @rm -f tmp_package ;\
101 sed "s,@LYX_DIR@,$(LYX_ABS_INSTALLED_DATADIR),;\
102 s,@LOCALEDIR@,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
103 s,@TOP_SRCDIR@,$(LYX_ABS_TOP_SRCDIR),;\
104 s,@PROGRAM_SUFFIX@,$(program_suffix)," \
105 $(srcdir)/Package.cpp.in > tmp_package ;\
106 if cmp -s tmp_package Package.cpp ; then \
110 mv tmp_package Package.cpp ;\
114 ############################## Tests ##################################
116 EXTRA_DIST += test_convert test_filetools test_lstrings regfiles
128 check_convert_LDADD = ../debug.o convert.o docstring.o lstrings.o unicode.o \
129 qstring_helpers.o $(BOOST_LIBS) $(QT4_CORE_LIB)
130 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
131 check_convert_SOURCES = \
132 tests/check_convert.cpp \
135 check_filetools_LDADD = ../debug.o libsupport.la $(BOOST_LIBS)
136 check_filetools_SOURCES = \
137 tests/check_filetools.cpp \
140 check_lstrings_LDADD = ../debug.o lstrings.o convert.o docstring.o unicode.o \
141 qstring_helpers.o $(QT4_CORE_LIB)
142 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
143 check_lstrings_SOURCES = \
144 tests/check_lstrings.cpp \
147 makeregfiles: ${check_PROGRAMS}
148 for all in ${check_PROGRAMS} ; do \
149 ./$$all > ${srcdir}/regfiles/$$all ; \