]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
3ad9d9fc5fcf76cc2ffb716a38e2406cae9beba2
[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.C.in pch.h \
8         os_cygwin.C os_unix.C os_win32.C 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.C \
23         RandomAccessList.h \
24         abort.C \
25         chdir.C \
26         convert.C \
27         convert.h \
28         copy.C \
29         copied_ptr.h \
30         cow_ptr.h \
31         debugstream.h \
32         docstream.C \
33         docstream.h \
34         docstring.C \
35         docstring.h \
36         environment.h \
37         environment.C \
38         filefilterlist.C \
39         filefilterlist.h \
40         filename.C \
41         filename.h \
42         filetools.C \
43         filetools.h \
44         forkedcall.C \
45         forkedcall.h \
46         forkedcallqueue.C \
47         forkedcallqueue.h \
48         forkedcontr.C \
49         forkedcontr.h \
50         fs_extras.C \
51         fs_extras.h \
52         getcwd.C \
53         kill.C \
54         limited_stack.h \
55         lstrings.C \
56         lstrings.h \
57         lyxalgo.h \
58         lyxlib.h \
59         lyxmanip.h \
60         lyxtime.C \
61         lyxtime.h \
62         lyxsum.C \
63         mkdir.C \
64         os.C \
65         os.h \
66         path.C \
67         path.h \
68         package.C \
69         package.h \
70         qstring_helpers.C \
71         qstring_helpers.h \
72         rename.C \
73         socktools.C \
74         socktools.h \
75         std_istream.h \
76         std_ostream.h \
77         systemcall.C \
78         systemcall.h \
79         tempname.C \
80         textutils.h \
81         translator.h \
82         types.h \
83         userinfo.C \
84         userinfo.h \
85         unicode.C \
86         unicode.h \
87         unlink.C
88
89
90 package.C: build_package
91
92 # Solaris sed does not like spaces bewteen the ;-delimited commands
93 build_package: package.C.in
94         @rm -f tmp_package ;\
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 \
101                 rm -f tmp_package ;\
102         else \
103                 rm -f package.C ;\
104                 mv tmp_package package.C ;\
105         fi