]> git.lyx.org Git - lyx.git/blobdiff - src/support/Makefile.am
* lstring.cpp:
[lyx.git] / src / support / Makefile.am
index 0a9458471ae15a2464ae72c9431eb4b231c811c2..598c3fb99617edd5a74a649408cbf4a045c9906b 100644 (file)
-AUTOMAKE_OPTIONS = foreign
-DISTCLEANFILES= *.orig *.rej *~ *.bak core
-MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
-noinst_LTLIBRARIES = libsupport.o
-LIBS =
-ETAGS_ARGS = --lang=c++
-BOOST_INCLUDES = -I$(top_srcdir)/boost
-INCLUDES = -I${srcdir}/../ $(BOOST_INCLUDES)
+include $(top_srcdir)/config/common.am
 
-EXTRA_DIST = lyxstring.C lyxstring.h regex.c lyxregex.h \
-             os_unix.C os_win32.C os_os2.C
+SUBDIRS = . tests
 
-if USE_LYXSTRING
-LYXSTRING = lyxstring.C lyxstring.h
-endif
-if USE_REGEX
-REGEX = regex.c lyxregex.h
-endif
+CLEANFILES += $(BUILT_SOURCES)
 
-libsupport_o_SOURCES = \
-       DebugStream.C \
-       DebugStream.h \
-       FileInfo.C \
-       FileInfo.h \
-       LAssert.C \
-       LAssert.h \
-       LIstream.h \
-       LOstream.h \
-       LRegex.C \
-       LRegex.h \
-       LSubstring.C \
-       LSubstring.h \
-       os.C \
-       os.h \
-       StrPool.C \
-       StrPool.h \
-       abort.C \
-       atoi.C \
-       chdir.C \
-       copy.C \
-       date.C \
-       filetools.C \
+EXTRA_DIST = Package.cpp.in pch.h \
+       os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h
+
+noinst_LTLIBRARIES = libsupport.la
+
+libsupport_la_LIBADD = $(LIBSHLWAPI) $(QT4_CORE_LIB)
+libsupport_la_LDFLAGS = $(QT4_CORE_LDFLAGS)
+
+BUILT_SOURCES = $(PCH_FILE) package.C
+
+AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
+AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
+
+libsupport_la_SOURCES = \
+       FileMonitor.h \
+       FileMonitor.cpp \
+       RandomAccessList.h \
+       abort.cpp \
+       chdir.cpp \
+       convert.cpp \
+       convert.h \
+       copy.cpp \
+       copied_ptr.h \
+       cow_ptr.h \
+       debugstream.h \
+       docstream.cpp \
+       docstream.h \
+       docstring.cpp \
+       docstring.h \
+       environment.h \
+       environment.cpp \
+       ExceptionMessage.h \
+       FileFilterList.cpp \
+       FileFilterList.h \
+       FileName.cpp \
+       FileName.h \
+       filetools.cpp \
        filetools.h \
-       fmt.C \
-       getUserName.C \
-       getcwd.C \
-       kill.C \
-       lstrings.C \
+       Forkedcall.cpp \
+       Forkedcall.h \
+       ForkedCallQueue.cpp \
+       ForkedCallQueue.h \
+       ForkedcallsController.cpp \
+       ForkedcallsController.h \
+       fs_extras.cpp \
+       fs_extras.h \
+       getcwd.cpp \
+       kill.cpp \
+       limited_stack.h \
+       lstrings.cpp \
        lstrings.h \
-       lxtl.h \
        lyxalgo.h \
-       lyxfunctional.h \
        lyxlib.h \
        lyxmanip.h \
-       $(LYXSTRING) lyxsum.C \
-       mkdir.C \
-       path.C \
-       path.h \
-       putenv.C \
-       rename.C \
-       rmdir.C \
-       smart_ptr.h \
-       snprintf.h \
-       snprintf.c \
-       sstream.h \
-       $(REGEX) systemcall.C \
-       systemcall.h \
-       tempname.C \
+       lyxtime.cpp \
+       lyxtime.h \
+       lyxsum.cpp \
+       mkdir.cpp \
+       os.cpp \
+       os.h \
+       Path.cpp \
+       Path.h \
+       package.C \
+       Package.h \
+       qstring_helpers.cpp \
+       qstring_helpers.h \
+       rename.cpp \
+       socktools.cpp \
+       socktools.h \
+       std_istream.h \
+       std_ostream.h \
+       Systemcall.cpp \
+       Systemcall.h \
+       tempname.cpp \
+       textutils.cpp \
        textutils.h \
-       translator.h \
+       Translator.h \
        types.h \
-       unlink.C \
-       utility.h
+       userinfo.cpp \
+       userinfo.h \
+       unicode.cpp \
+       unicode.h \
+       unlink.cpp
+
+
+package.C: build_package
 
+# Solaris sed does not like spaces bewteen the ;-delimited commands
+build_package: Package.cpp.in
+       @rm -f tmp_package ;\
+       sed "s,@LYX_DIR@,$(LYX_ABS_INSTALLED_DATADIR),;\
+s,@LOCALEDIR@,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
+s,@TOP_SRCDIR@,$(LYX_ABS_TOP_SRCDIR),;\
+s,@PROGRAM_SUFFIX@,$(program_suffix)," \
+               $(srcdir)/Package.cpp.in > tmp_package ;\
+       if cmp -s tmp_package package.C ; then \
+               rm -f tmp_package ;\
+       else \
+               rm -f package.C ;\
+               mv tmp_package package.C ;\
+       fi