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 = \
90 package.C: build_package
92 # Solaris sed does not like spaces bewteen the ;-delimited commands
93 build_package: package.C.in
95 sed "s,@LYX_DIR@,$(LYX_ABS_INSTALLED_DATADIR),;\
96 s,@LOCALEDIR@,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
97 s,@TOP_SRCDIR@,$(LYX_ABS_TOP_SRCDIR),;\
98 s,@PROGRAM_SUFFIX@,$(program_suffix)," \
99 $(srcdir)/package.C.in > tmp_package ;\
100 if cmp -s tmp_package package.C ; then \
104 mv tmp_package package.C ;\