]> git.lyx.org Git - features.git/blob - src/support/Makefile.am
Fix tarball creation
[features.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_CORE_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         CryptographicEncryption.h \
42         CryptographicEncryption.cpp \
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         Messages.cpp \
76         Messages.h \
77         numpunct_lyx_char_type.h \
78         os.cpp \
79         os.h \
80         Path.cpp \
81         Path.h \
82         Package.cpp \
83         Package.h \
84         ProgressInterface.h \
85         qstring_helpers.cpp \
86         qstring_helpers.h \
87         regex.h \
88         socktools.cpp \
89         socktools.h \
90         strfwd.h \
91         Systemcall.cpp \
92         Systemcall.h \
93         SystemcallPrivate.h \
94         shared_ptr.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         mythes/mythes.cxx \
106         mythes/mythes.hxx \
107         mythes/license.readme
108
109 #if INSTALL_MACOSX
110 #liblyxsupport_a_SOURCES += \
111 #       AppleSpellChecker.h \
112 #       AppleSpellChecker.mm
113 #endif
114
115 if INSTALL_MACOSX
116 liblyxsupport_a_SOURCES += \
117         AppleSpeller.h \
118         AppleSpeller.m \
119         linkback/LinkBack.h \
120         linkback/LinkBack.m \
121         linkback/LinkBackProxy.h \
122         linkback/LinkBackProxy.m \
123         linkback/LinkBackServer.h \
124         linkback/LinkBackServer.m
125 endif
126
127 ############################## Tests ##################################
128
129 EXTRA_DIST += \
130         tests/test_convert \
131         tests/test_filetools \
132         tests/test_lstrings \
133         tests/regfiles/convert \
134         tests/regfiles/filetools \
135         tests/regfiles/lstrings
136
137
138 TESTS = \
139         tests/test_convert \
140         tests/test_filetools \
141         tests/test_lstrings
142
143 check_PROGRAMS = \
144         check_convert \
145         check_filetools \
146         check_lstrings
147
148 check_convert_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
149 check_convert_LDFLAGS = $(QT4_LDFLAGS)
150 check_convert_SOURCES = \
151         tests/check_convert.cpp \
152         tests/boost.cpp
153
154 check_filetools_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
155 check_filetools_LDFLAGS = $(QT4_CORE_LDFLAGS)
156 check_filetools_SOURCES = \
157         tests/check_filetools.cpp \
158         tests/boost.cpp
159
160 check_lstrings_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
161 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
162 check_lstrings_SOURCES = \
163         tests/check_lstrings.cpp \
164         tests/boost.cpp
165
166 makeregfiles: ${check_PROGRAMS}
167         for all in ${check_PROGRAMS} ; do \
168                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
169         done