]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
f0564209002d7b14218294ecd89f0f4a4e3785b7
[lyx.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 SUBDIRS = . tests
4
5 CLEANFILES += $(BUILT_SOURCES)
6
7 EXTRA_DIST = Package.cpp.in pch.h \
8         os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h
9
10 noinst_LTLIBRARIES = libsupport.la
11
12 libsupport_la_LIBADD = $(LIBSHLWAPI) $(QT4_CORE_LIB)
13 libsupport_la_LDFLAGS = $(QT4_CORE_LDFLAGS)
14
15 BUILT_SOURCES = $(PCH_FILE) package.C
16
17 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
18 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES)
19
20 libsupport_la_SOURCES = \
21         FileMonitor.h \
22         FileMonitor.cpp \
23         RandomAccessList.h \
24         abort.cpp \
25         chdir.cpp \
26         convert.cpp \
27         convert.h \
28         copy.cpp \
29         copied_ptr.h \
30         cow_ptr.h \
31         debugstream.h \
32         docstream.cpp \
33         docstream.h \
34         docstring.cpp \
35         docstring.h \
36         environment.h \
37         environment.cpp \
38         ExceptionMessage.h \
39         FileFilterList.cpp \
40         FileFilterList.h \
41         FileName.cpp \
42         FileName.h \
43         filetools.cpp \
44         filetools.h \
45         Forkedcall.cpp \
46         Forkedcall.h \
47         ForkedCallQueue.cpp \
48         ForkedCallQueue.h \
49         ForkedcallsController.cpp \
50         ForkedcallsController.h \
51         fs_extras.cpp \
52         fs_extras.h \
53         getcwd.cpp \
54         gzstream.cpp \
55         gzstream.h \
56         kill.cpp \
57         limited_stack.h \
58         lstrings.cpp \
59         lstrings.h \
60         lyxalgo.h \
61         lyxlib.h \
62         lyxmanip.h \
63         lyxtime.cpp \
64         lyxtime.h \
65         lyxsum.cpp \
66         mkdir.cpp \
67         os.cpp \
68         os.h \
69         Path.cpp \
70         Path.h \
71         package.C \
72         Package.h \
73         qstring_helpers.cpp \
74         qstring_helpers.h \
75         rename.cpp \
76         socktools.cpp \
77         socktools.h \
78         std_istream.h \
79         std_ostream.h \
80         Systemcall.cpp \
81         Systemcall.h \
82         tempname.cpp \
83         textutils.cpp \
84         textutils.h \
85         Translator.h \
86         types.h \
87         userinfo.cpp \
88         userinfo.h \
89         unicode.cpp \
90         unicode.h \
91         unlink.cpp
92
93
94 package.C: build_package
95
96 # Solaris sed does not like spaces bewteen the ;-delimited commands
97 build_package: Package.cpp.in
98         @rm -f tmp_package ;\
99         sed "s,@LYX_DIR@,$(LYX_ABS_INSTALLED_DATADIR),;\
100 s,@LOCALEDIR@,$(LYX_ABS_INSTALLED_LOCALEDIR),;\
101 s,@TOP_SRCDIR@,$(LYX_ABS_TOP_SRCDIR),;\
102 s,@PROGRAM_SUFFIX@,$(program_suffix)," \
103                 $(srcdir)/Package.cpp.in > tmp_package ;\
104         if cmp -s tmp_package package.C ; then \
105                 rm -f tmp_package ;\
106         else \
107                 rm -f package.C ;\
108                 mv tmp_package package.C ;\
109         fi