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.C
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 \
92 package.C: build_package
94 # Solaris sed does not like spaces bewteen the ;-delimited commands
95 build_package: Package.cpp.in
97 sed "s,@LYX_DIR@,$(LYX_ABS_INSTALLED_DATADIR),;\
98 s,@LOCALEDIR@,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
99 s,@TOP_SRCDIR@,$(LYX_ABS_TOP_SRCDIR),;\
100 s,@PROGRAM_SUFFIX@,$(program_suffix)," \
101 $(srcdir)/Package.cpp.in > tmp_package ;\
102 if cmp -s tmp_package package.C ; then \
106 mv tmp_package package.C ;\
110 ############################## Tests ##################################
112 EXTRA_DIST += test_convert test_filetools test_lstrings regfiles
124 check_convert_LDADD = ../debug.o convert.o docstring.o lstrings.o unicode.o \
125 qstring_helpers.o $(BOOST_LIBS) $(QT4_CORE_LIB)
126 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
127 check_convert_SOURCES = \
128 tests/check_convert.cpp \
131 check_filetools_LDADD = ../debug.o libsupport.la $(BOOST_LIBS)
132 check_filetools_SOURCES = \
133 tests/check_filetools.cpp \
136 check_lstrings_LDADD = ../debug.o lstrings.o convert.o docstring.o unicode.o \
137 qstring_helpers.o $(QT4_CORE_LIB)
138 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
139 check_lstrings_SOURCES = \
140 tests/check_lstrings.cpp \
143 makeregfiles: ${check_PROGRAMS}
144 for all in ${check_PROGRAMS} ; do \
145 ./$$all > ${srcdir}/regfiles/$$all ; \