]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
CMake: fix merged build, seems GCC could not handle the namespaces correctly
[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 = SignalSlotPrivate.h 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         convert.cpp \
38         convert.h \
39         copied_ptr.h \
40         debug.cpp \
41         debug.h \
42         docstream.cpp \
43         docstream.h \
44         docstring.cpp \
45         docstring.h \
46         docstring_list.h \
47         environment.h \
48         environment.cpp \
49         ExceptionMessage.h \
50         FileName.cpp \
51         FileName.h \
52         FileNameList.h \
53         filetools.cpp \
54         filetools.h \
55         foreach.h \
56         ForkedCalls.cpp \
57         ForkedCalls.h \
58         gettext.cpp \
59         gettext.h \
60         gzstream.cpp \
61         gzstream.h \
62         kill.cpp \
63         lassert.h \
64         lassert.cpp \
65         limited_stack.h \
66         lstrings.cpp \
67         lstrings.h \
68         lyxalgo.h \
69         lyxlib.h \
70         lyxtime.cpp \
71         lyxtime.h \
72         Messages.cpp \
73         Messages.h \
74         os.cpp \
75         os.h \
76         Path.cpp \
77         Path.h \
78         Package.cpp \
79         Package.h \
80         ProgressInterface.h \
81         qstring_helpers.cpp \
82         qstring_helpers.h \
83         socktools.cpp \
84         socktools.h \
85         strfwd.h \
86         Systemcall.cpp \
87         Systemcall.h \
88         SignalSlot.cpp \
89         SignalSlot.h \
90         SignalSlotPrivate.cpp \
91         SignalSlotPrivate.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
105 if INSTALL_MACOSX
106 liblyxsupport_a_SOURCES += \
107         linkback/LinkBack.h \
108         linkback/LinkBack.m \
109         linkback/LinkBackProxy.h \
110         linkback/LinkBackProxy.m \
111         linkback/LinkBackServer.h \
112         linkback/LinkBackServer.m
113 endif
114
115 ############################## Tests ##################################
116
117 EXTRA_DIST += \
118         tests/test_convert \
119         tests/test_filetools \
120         tests/test_lstrings \
121         tests/regfiles/convert \
122         tests/regfiles/filetools \
123         tests/regfiles/lstrings
124
125
126 TESTS = \
127         tests/test_convert \
128         tests/test_filetools \
129         tests/test_lstrings
130
131 check_PROGRAMS = \
132         check_convert \
133         check_filetools \
134         check_lstrings
135
136 check_convert_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
137 check_convert_LDFLAGS = $(QT4_LDFLAGS)
138 check_convert_SOURCES = \
139         tests/check_convert.cpp \
140         tests/boost.cpp
141
142 check_filetools_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
143 check_filetools_LDFLAGS = $(QT4_CORE_LDFLAGS)
144 check_filetools_SOURCES = \
145         tests/check_filetools.cpp \
146         tests/boost.cpp
147
148 check_lstrings_LDADD = liblyxsupport.a $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) $(QT4_CORE_LIBS)
149 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
150 check_lstrings_SOURCES = \
151         tests/check_lstrings.cpp \
152         tests/boost.cpp
153
154 makeregfiles: ${check_PROGRAMS}
155         for all in ${check_PROGRAMS} ; do \
156                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
157         done