]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Fix layout bug. Pasting text into a cell tried to set Standard layout, because
[lyx.git] / src / support / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 CLEANFILES += $(BUILT_SOURCES)
4
5 EXTRA_DIST = pch.h \
6         os_cygwin.cpp os_unix.cpp os_win32.cpp os_win32.h
7
8 noinst_LTLIBRARIES = liblyxsupport.la
9
10 liblyxsupport_la_LIBADD = $(LIBSHLWAPI) $(QT4_CORE_LIB) $(BOOST_SIGNALS)
11 liblyxsupport_la_LDFLAGS = $(QT4_CORE_LDFLAGS)
12
13 BUILT_SOURCES = $(PCH_FILE)
14
15 #########################  Qt stuff  #############################
16 #
17
18 MOCHEADER = SignalSlotPrivate.h
19
20 MOCEDFILES = $(MOCHEADER:%.h=%_moc.cpp)
21
22 CLEANFILES += $(MOCEDFILES)
23 BUILT_SOURCES += $(MOCEDFILES)
24
25 %_moc.cpp: %.h
26         $(MOC4) -o $@ $<
27
28 liblyxsupport_la_DEPENDENCIES = $(MOCEDFILES)
29
30 #
31 ##################################################################
32
33 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
34 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES) 
35
36 liblyxsupport_la_SOURCES = \
37         FileMonitor.h \
38         FileMonitor.cpp \
39         RandomAccessList.h \
40         convert.cpp \
41         convert.h \
42         copied_ptr.h \
43         debug.cpp \
44         debug.h \
45         docstream.cpp \
46         docstream.h \
47         docstring.cpp \
48         docstring.h \
49         docstring_list.h \
50         environment.h \
51         environment.cpp \
52         ExceptionMessage.h \
53         FileName.cpp \
54         FileName.h \
55         FileNameList.h \
56         filetools.cpp \
57         filetools.h \
58         foreach.h \
59         ForkedCalls.cpp \
60         ForkedCalls.h \
61         gettext.cpp \
62         gettext.h \
63         gzstream.cpp \
64         gzstream.h \
65         kill.cpp \
66         lassert.h \
67         lassert.cpp \
68         limited_stack.h \
69         lstrings.cpp \
70         lstrings.h \
71         lyxalgo.h \
72         lyxlib.h \
73         lyxtime.cpp \
74         lyxtime.h \
75         lyxsum.cpp \
76         Messages.cpp \
77         Messages.h \
78         os.cpp \
79         os.h \
80         Path.cpp \
81         Path.h \
82         Package.cpp \
83         Package.h \
84         qstring_helpers.cpp \
85         qstring_helpers.h \
86         socktools.cpp \
87         socktools.h \
88         strfwd.h \
89         Systemcall.cpp \
90         Systemcall.h \
91         SignalSlot.cpp \
92         SignalSlot.h \
93         SignalSlotPrivate.cpp \
94         SignalSlotPrivate.h \
95         textutils.h \
96         Translator.h \
97         Timeout.cpp \
98         Timeout.h \
99         types.h \
100         userinfo.cpp \
101         userinfo.h \
102         unicode.cpp \
103         unicode.h \
104         weighted_btree.h
105
106 if INSTALL_MACOSX
107 liblyxsupport_la_SOURCES += \
108         linkback/LinkBack.h \
109         linkback/LinkBack.m \
110         linkback/LinkBackProxy.h \
111         linkback/LinkBackProxy.m \
112         linkback/LinkBackServer.h \
113         linkback/LinkBackServer.m
114 endif
115
116 ############################## Tests ##################################
117
118 EXTRA_DIST += \
119         tests/test_convert \
120         tests/test_filetools \
121         tests/test_lstrings \
122         tests/regfiles/convert \
123         tests/regfiles/filetools \
124         tests/regfiles/lstrings
125
126
127 TESTS = \
128         tests/test_convert \
129         tests/test_filetools \
130         tests/test_lstrings
131
132 check_PROGRAMS = \
133         check_convert \
134         check_filetools \
135         check_lstrings
136
137 check_convert_LDADD = liblyxsupport.la  \
138         $(BOOST_LIBS) $(QT4_CORE_LIB)
139 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
140 check_convert_SOURCES = \
141         tests/check_convert.cpp \
142         tests/boost.cpp
143
144 check_filetools_LDADD = liblyxsupport.la $(BOOST_LIBS)
145 check_filetools_SOURCES = \
146         tests/check_filetools.cpp \
147         tests/boost.cpp
148
149 check_lstrings_LDADD = liblyxsupport.la $(BOOST_LIBS) $(QT4_CORE_LIB)
150 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
151 check_lstrings_SOURCES = \
152         tests/check_lstrings.cpp \
153         tests/boost.cpp
154
155 makeregfiles: ${check_PROGRAMS}
156         for all in ${check_PROGRAMS} ; do \
157                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
158         done