]> git.lyx.org Git - lyx.git/blobdiff - src/support/Makefile.am
Transfer tempName() implementation to FileName.
[lyx.git] / src / support / Makefile.am
index 2e6fc5aa0bc376ba5b700f3ca4c5c44706e5eea4..e2b8a3737586f94616e3163894fb8fb2be8b8113 100644 (file)
@@ -2,31 +2,51 @@ include $(top_srcdir)/config/common.am
 
 CLEANFILES += $(BUILT_SOURCES)
 
-EXTRA_DIST = Package.cpp.in pch.h \
+EXTRA_DIST = pch.h \
        os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h
 
-pkglib_LTLIBRARIES = liblyxsupport.la
+noinst_LTLIBRARIES = liblyxsupport.la
 
 liblyxsupport_la_LIBADD = $(LIBSHLWAPI) $(QT4_CORE_LIB) $(BOOST_SIGNALS)
 liblyxsupport_la_LDFLAGS = $(QT4_CORE_LDFLAGS)
 
-BUILT_SOURCES = $(PCH_FILE) Package.cpp
+BUILT_SOURCES = $(PCH_FILE)
+
+#########################  Qt stuff  #############################
+#
+
+CLEANFILES += $(MOCEDFILES)
+BUILT_SOURCES += $(MOCEDFILES)
+
+MOCEDFILES = $(MOCHEADER:%.h=%_moc.cpp)
+
+%_moc.cpp: %.h
+       $(MOC4) -o $@ $<
+
+MOCHEADER =
+
+liblyxsupport_la_DEPENDENCIES = $(MOCEDFILES)
+
+#
+##################################################################
 
 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
-AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
+AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES) -I$(srcdir)/minizip
+
+# force the use of C++ compiler for minizip/*.c files, because
+# gcc can not go through the included boost files.
+liblyxsupport_la_CFLAGS = -x c++
 
 liblyxsupport_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 \
+       debug.cpp \
+       debug.h \
        docstream.cpp \
        docstream.h \
        docstring.cpp \
@@ -40,14 +60,10 @@ liblyxsupport_la_SOURCES = \
        FileName.h \
        filetools.cpp \
        filetools.h \
-       Forkedcall.cpp \
-       Forkedcall.h \
-       ForkedCallQueue.cpp \
-       ForkedCallQueue.h \
-       ForkedcallsController.cpp \
-       ForkedcallsController.h \
-       fs_extras.cpp \
-       fs_extras.h \
+       ForkedCalls.cpp \
+       ForkedCalls.h \
+       gettext.cpp \
+       gettext.h \
        getcwd.cpp \
        gzstream.cpp \
        gzstream.h \
@@ -57,28 +73,26 @@ liblyxsupport_la_SOURCES = \
        lstrings.h \
        lyxalgo.h \
        lyxlib.h \
-       lyxmanip.h \
        lyxtime.cpp \
        lyxtime.h \
        lyxsum.cpp \
-       mkdir.cpp \
+       Messages.cpp \
+       Messages.h \
        os.cpp \
        os.h \
        Path.cpp \
        Path.h \
        Package.cpp \
        Package.h \
-       qstring_helpers.cpp \
        qstring_helpers.h \
-       rename.cpp \
        socktools.cpp \
        socktools.h \
-       std_istream.h \
-       std_ostream.h \
+       strfwd.h \
        Systemcall.cpp \
        Systemcall.h \
-       tempname.cpp \
-       textutils.cpp \
+       SignalSlot.cpp \
+       SignalSlot.h \
+       SignalSlotPrivate.h \
        textutils.h \
        Translator.h \
        Timeout.cpp \
@@ -88,30 +102,27 @@ liblyxsupport_la_SOURCES = \
        userinfo.h \
        unicode.cpp \
        unicode.h \
-       unlink.cpp
-
-
-Package.cpp: 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.cpp ; then \
-               rm -f tmp_package ;\
-       else \
-               rm -f Package.cpp ;\
-               mv tmp_package Package.cpp ;\
-       fi
-
+       minizip/crypt.h \
+       minizip/ioapi.c \
+       minizip/ioapi.h \
+       minizip/iowin32.c \
+       minizip/iowin32.h \
+       minizip/unzip.c \
+       minizip/unzip.h \
+       minizip/zip.c \
+       minizip/zip.h \
+       minizip/zipunzip.cpp
 
 ############################## Tests ##################################
 
-EXTRA_DIST += test_convert test_filetools test_lstrings regfiles
+EXTRA_DIST += \
+       tests/test_convert \
+       tests/test_filetools \
+       tests/test_lstrings \
+       tests/regfiles/convert \
+       tests/regfiles/filetools \
+       tests/regfiles/lstrings
+
 
 TESTS = \
        test_convert \
@@ -124,7 +135,7 @@ check_PROGRAMS = \
        check_lstrings
 
 check_convert_LDADD = ../debug.o convert.o docstring.o lstrings.o unicode.o \
-       qstring_helpers.o $(BOOST_LIBS) $(QT4_CORE_LIB)
+       $(BOOST_LIBS) $(QT4_CORE_LIB)
 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
 check_convert_SOURCES = \
        tests/check_convert.cpp \
@@ -136,7 +147,7 @@ check_filetools_SOURCES = \
        tests/boost.cpp
 
 check_lstrings_LDADD = ../debug.o lstrings.o convert.o docstring.o unicode.o \
-       qstring_helpers.o $(QT4_CORE_LIB)
+       $(QT4_CORE_LIB)
 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
 check_lstrings_SOURCES = \
        tests/check_lstrings.cpp \