]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
A first batch of potential bugs spotted by llvm/clang
[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_LIBRARIES = liblyxsupport.a
9
10 BUILT_SOURCES = $(PCH_FILE)
11
12 #########################  Qt stuff  #############################
13 #
14
15 MOCHEADER = SystemcallPrivate.h
16
17 MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
18
19 CLEANFILES += $(MOCEDFILES)
20 BUILT_SOURCES += $(MOCEDFILES)
21
22 moc_%.cpp: %.h
23         $(MOC4) -o $@ $<
24
25 liblyxsupport_a_DEPENDENCIES = $(MOCEDFILES)
26
27 #
28 ##################################################################
29
30 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
31 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_INCLUDES)
32
33 liblyxsupport_a_SOURCES = \
34         FileMonitor.h \
35         FileMonitor.cpp \
36         RandomAccessList.h \
37         bind.h \
38         convert.cpp \
39         convert.h \
40         copied_ptr.h \
41         debug.cpp \
42         debug.h \
43         docstream.cpp \
44         docstream.h \
45         docstring.cpp \
46         docstring.h \
47         docstring_list.h \
48         environment.h \
49         environment.cpp \
50         ExceptionMessage.h \
51         FileName.cpp \
52         FileName.h \
53         FileNameList.h \
54         filetools.cpp \
55         filetools.h \
56         foreach.h \
57         ForkedCalls.cpp \
58         ForkedCalls.h \
59         functional.h \
60         gettext.cpp \
61         gettext.h \
62         gzstream.cpp \
63         gzstream.h \
64         kill.cpp \
65         lassert.h \
66         lassert.cpp \
67         limited_stack.h \
68         lstrings.cpp \
69         lstrings.h \
70         lyxalgo.h \
71         lyxlib.h \
72         lyxtime.cpp \
73         lyxtime.h \
74         mutex.h \
75         mutex.cpp \
76         Messages.cpp \
77         Messages.h \
78         numpunct_lyx_char_type.h \
79         os.cpp \
80         os.h \
81         PathChanger.cpp \
82         PathChanger.h \
83         Package.cpp \
84         Package.h \
85         ProgressInterface.h \
86         pmprof.h \
87         qstring_helpers.cpp \
88         qstring_helpers.h \
89         regex.h \
90         socktools.cpp \
91         socktools.h \
92         strfwd.h \
93         Systemcall.cpp \
94         Systemcall.h \
95         SystemcallPrivate.h \
96         shared_ptr.h \
97         TempFile.cpp \
98         TempFile.h \
99         textutils.h \
100         Translator.h \
101         Timeout.cpp \
102         Timeout.h \
103         types.h \
104         userinfo.cpp \
105         userinfo.h \
106         unicode.cpp \
107         unicode.h \
108         weighted_btree.h
109 if USE_INCLUDED_MYTHES
110 liblyxsupport_a_SOURCES += \
111         mythes/mythes.cxx \
112         mythes/mythes.hxx \
113         mythes/license.readme
114 endif
115
116 #if INSTALL_MACOSX
117 #liblyxsupport_a_SOURCES += \
118 #       AppleSpellChecker.h \
119 #       AppleSpellChecker.mm
120 #endif
121
122 if INSTALL_MACOSX
123 liblyxsupport_a_SOURCES += \
124         AppleSpeller.h \
125         AppleSpeller.m \
126         AppleScript.h \
127         AppleScript.m \
128         AppleScriptProxy.cpp \
129         linkback/LinkBack.h \
130         linkback/LinkBack.m \
131         linkback/LinkBackProxy.h \
132         linkback/LinkBackProxy.m \
133         linkback/LinkBackServer.h \
134         linkback/LinkBackServer.m
135 endif
136
137 ############################## Tests ##################################
138
139 EXTRA_DIST += \
140         tests/test_convert \
141         tests/test_filetools \
142         tests/test_lstrings \
143         tests/regfiles/convert \
144         tests/regfiles/filetools \
145         tests/regfiles/lstrings
146
147
148 TESTS = \
149         tests/test_convert \
150         tests/test_filetools \
151         tests/test_lstrings
152
153 check_PROGRAMS = \
154         check_convert \
155         check_filetools \
156         check_lstrings
157
158 check_convert_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS) $(LIBSHLWAPI)
159 check_convert_LDFLAGS = $(QT4_LDFLAGS)
160 check_convert_SOURCES = \
161         tests/check_convert.cpp \
162         tests/dummy_functions.cpp \
163         tests/boost.cpp
164
165 check_filetools_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS) $(LIBSHLWAPI)
166 check_filetools_LDFLAGS = $(QT4_CORE_LDFLAGS)
167 check_filetools_SOURCES = \
168         tests/check_filetools.cpp \
169         tests/dummy_functions.cpp \
170         tests/boost.cpp
171
172 check_lstrings_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS) $(LIBSHLWAPI)
173 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
174 check_lstrings_SOURCES = \
175         tests/check_lstrings.cpp \
176         tests/dummy_functions.cpp \
177         tests/boost.cpp
178
179 makeregfiles: ${check_PROGRAMS}
180         for all in ${check_PROGRAMS} ; do \
181                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
182         done