]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
* InsetListings.cpp:
[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_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         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         gettext.cpp \
60         gettext.h \
61         gzstream.cpp \
62         gzstream.h \
63         kill.cpp \
64         lassert.h \
65         lassert.cpp \
66         limited_stack.h \
67         lstrings.cpp \
68         lstrings.h \
69         lyxalgo.h \
70         lyxlib.h \
71         lyxtime.cpp \
72         lyxtime.h \
73         Messages.cpp \
74         Messages.h \
75         numpunct_lyx_char_type.h \
76         os.cpp \
77         os.h \
78         Path.cpp \
79         Path.h \
80         Package.cpp \
81         Package.h \
82         ProgressInterface.h \
83         qstring_helpers.cpp \
84         qstring_helpers.h \
85         socktools.cpp \
86         socktools.h \
87         strfwd.h \
88         Systemcall.cpp \
89         Systemcall.h \
90         SystemcallPrivate.h \
91         shared_ptr.h \
92         textutils.h \
93         Translator.h \
94         Timeout.cpp \
95         Timeout.h \
96         types.h \
97         userinfo.cpp \
98         userinfo.h \
99         unicode.cpp \
100         unicode.h \
101         weighted_btree.h \
102         mythes/mythes.cxx \
103         mythes/mythes.hxx \
104         mythes/license.readme
105
106 if INSTALL_MACOSX
107 liblyxsupport_a_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.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
138 check_convert_LDFLAGS = $(QT4_LDFLAGS)
139 check_convert_SOURCES = \
140         tests/check_convert.cpp \
141         tests/boost.cpp
142
143 check_filetools_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
144 check_filetools_LDFLAGS = $(QT4_CORE_LDFLAGS)
145 check_filetools_SOURCES = \
146         tests/check_filetools.cpp \
147         tests/boost.cpp
148
149 check_lstrings_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
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