1 include $(top_srcdir)/config/common.am
5 CLEANFILES += $(BUILT_SOURCES)
7 EXTRA_DIST = package.C.in pch.h \
8 os_cygwin.C os_unix.C os_win32.C os_win32.h
10 noinst_LTLIBRARIES = libsupport.la
12 libsupport_la_LIBADD = $(LIBSHLWAPI) $(QT4_CORE_LIB)
13 libsupport_la_LDFLAGS = $(QT4_CORE_LDFLAGS)
15 BUILT_SOURCES = $(PCH_FILE) package.C
17 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
18 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
20 libsupport_la_SOURCES = \
91 package.C: build_package
93 # Solaris sed does not like spaces bewteen the ;-delimited commands
94 build_package: package.C.in
96 sed "s,@LYX_DIR@,$(LYX_ABS_INSTALLED_DATADIR),;\
97 s,@LOCALEDIR@,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
98 s,@TOP_SRCDIR@,$(LYX_ABS_TOP_SRCDIR),;\
99 s,@PROGRAM_SUFFIX@,$(program_suffix)," \
100 $(srcdir)/package.C.in > tmp_package ;\
101 if cmp -s tmp_package package.C ; then \
105 mv tmp_package package.C ;\