2002-03-13 18:24:44 +00:00
|
|
|
include $(top_srcdir)/config/common.am
|
|
|
|
|
2005-01-27 21:05:44 +00:00
|
|
|
SUBDIRS = . tests
|
|
|
|
|
2005-02-25 09:01:06 +00:00
|
|
|
CLEANFILES += $(BUILT_SOURCES)
|
2003-07-27 19:26:36 +00:00
|
|
|
|
2005-01-10 19:17:43 +00:00
|
|
|
EXTRA_DIST = package.C.in os_unix.C os_win32.C os_os2.C
|
1999-10-19 20:59:27 +00:00
|
|
|
|
2005-02-25 09:01:06 +00:00
|
|
|
noinst_LTLIBRARIES = libsupport.la
|
|
|
|
|
2003-07-28 23:05:58 +00:00
|
|
|
if USE_COMPRESSION
|
2003-08-02 21:29:24 +00:00
|
|
|
COMPRESSION = gzstream.C gzstream.h
|
2003-07-28 23:05:58 +00:00
|
|
|
endif
|
|
|
|
|
2005-01-10 19:17:43 +00:00
|
|
|
BUILT_SOURCES = package.C
|
2003-07-27 19:26:36 +00:00
|
|
|
|
2005-05-20 16:56:28 +00:00
|
|
|
AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
|
2004-08-15 21:45:30 +00:00
|
|
|
|
2002-02-20 22:57:44 +00:00
|
|
|
libsupport_la_SOURCES = \
|
2002-07-18 14:01:42 +00:00
|
|
|
FileMonitor.h \
|
|
|
|
FileMonitor.C \
|
2000-01-17 21:01:30 +00:00
|
|
|
abort.C \
|
|
|
|
chdir.C \
|
2005-01-06 16:39:35 +00:00
|
|
|
convert.C \
|
|
|
|
convert.h \
|
2000-09-05 13:16:19 +00:00
|
|
|
copy.C \
|
2003-09-10 23:06:18 +00:00
|
|
|
copied_ptr.h \
|
|
|
|
cow_ptr.h \
|
2003-10-07 13:32:17 +00:00
|
|
|
debugstream.h \
|
2005-02-15 13:45:41 +00:00
|
|
|
environment.h \
|
|
|
|
environment.C \
|
2004-11-25 11:08:32 +00:00
|
|
|
filefilterlist.C \
|
|
|
|
filefilterlist.h \
|
2003-07-22 20:42:40 +00:00
|
|
|
filename.C \
|
|
|
|
filename.h \
|
1999-10-02 16:21:10 +00:00
|
|
|
filetools.C \
|
|
|
|
filetools.h \
|
2002-02-27 09:59:52 +00:00
|
|
|
forkedcall.C \
|
|
|
|
forkedcall.h \
|
2003-02-25 18:56:09 +00:00
|
|
|
forkedcallqueue.C \
|
|
|
|
forkedcallqueue.h \
|
2002-02-27 09:59:52 +00:00
|
|
|
forkedcontr.C \
|
|
|
|
forkedcontr.h \
|
2005-01-31 10:42:26 +00:00
|
|
|
fs_extras.C \
|
|
|
|
fs_extras.h \
|
2000-01-17 21:01:30 +00:00
|
|
|
getcwd.C \
|
2003-07-28 23:05:58 +00:00
|
|
|
$(COMPRESSION) kill.C \
|
2002-05-26 19:46:25 +00:00
|
|
|
limited_stack.h \
|
1999-10-02 16:21:10 +00:00
|
|
|
lstrings.C \
|
|
|
|
lstrings.h \
|
2000-03-09 03:36:48 +00:00
|
|
|
lyxalgo.h \
|
1999-10-02 16:21:10 +00:00
|
|
|
lyxlib.h \
|
2000-03-06 16:05:12 +00:00
|
|
|
lyxmanip.h \
|
2003-02-08 19:18:01 +00:00
|
|
|
lyxtime.C \
|
|
|
|
lyxtime.h \
|
2003-09-15 11:00:00 +00:00
|
|
|
lyxsum.C \
|
2000-01-20 01:41:55 +00:00
|
|
|
mkdir.C \
|
2003-09-05 17:23:11 +00:00
|
|
|
os.C \
|
|
|
|
os.h \
|
2002-02-26 10:50:48 +00:00
|
|
|
os2_defines.h \
|
|
|
|
os2_errortable.h \
|
2000-04-04 00:19:15 +00:00
|
|
|
path.C \
|
1999-10-13 17:32:46 +00:00
|
|
|
path.h \
|
2005-01-10 19:17:43 +00:00
|
|
|
package.C \
|
|
|
|
package.h \
|
2000-09-05 13:16:19 +00:00
|
|
|
rename.C \
|
2003-10-13 12:25:11 +00:00
|
|
|
socktools.C \
|
|
|
|
socktools.h \
|
2003-09-05 17:23:11 +00:00
|
|
|
std_istream.h \
|
|
|
|
std_ostream.h \
|
2002-05-25 00:19:56 +00:00
|
|
|
systemcall.C \
|
2002-02-18 19:13:48 +00:00
|
|
|
systemcall.h \
|
2000-11-08 09:39:46 +00:00
|
|
|
tempname.C \
|
2000-07-27 10:26:38 +00:00
|
|
|
textutils.h \
|
2001-11-28 13:15:41 +00:00
|
|
|
translator.h \
|
|
|
|
types.h \
|
2003-05-13 14:36:24 +00:00
|
|
|
userinfo.C \
|
|
|
|
userinfo.h \
|
2002-08-20 20:43:10 +00:00
|
|
|
unlink.C
|
2003-07-27 19:26:36 +00:00
|
|
|
|
|
|
|
|
2005-01-10 19:17:43 +00:00
|
|
|
package.C: build_package
|
2003-07-27 19:26:36 +00:00
|
|
|
|
2005-03-23 21:10:43 +00:00
|
|
|
# Solaris sed does not like spaces bewteen the ;-delimited commands
|
2005-01-10 19:17:43 +00:00
|
|
|
build_package: package.C.in
|
|
|
|
@rm -f tmp_package ;\
|
2003-07-27 19:26:36 +00:00
|
|
|
ABS_SRCDIR=`cd $(top_srcdir) && pwd` ;\
|
2003-07-27 20:17:31 +00:00
|
|
|
ABS_BUILDDIR=`cd ../.. && pwd` ;\
|
2005-03-23 21:10:43 +00:00
|
|
|
sed "s,%LYX_DIR%,$(pkgdatadir),;\
|
|
|
|
s,%LOCALEDIR%,$(datadir)/locale,;\
|
|
|
|
s,%TOP_SRCDIR%,$${ABS_SRCDIR}," \
|
2005-01-10 19:17:43 +00:00
|
|
|
$(srcdir)/package.C.in > tmp_package ;\
|
|
|
|
if cmp -s tmp_package package.C ; then \
|
|
|
|
rm -f tmp_package ;\
|
2003-07-27 19:26:36 +00:00
|
|
|
else \
|
2005-01-10 19:17:43 +00:00
|
|
|
rm -f package.C ;\
|
|
|
|
mv tmp_package package.C ;\
|
2003-07-27 19:26:36 +00:00
|
|
|
fi
|