]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
1b5f7086e0b643314236f31d9e0381bc851a9fef
[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         Messages.cpp \
76         Messages.h \
77         os.cpp \
78         os.h \
79         Path.cpp \
80         Path.h \
81         Package.cpp \
82         Package.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         SignalSlot.cpp \
91         SignalSlot.h \
92         SignalSlotPrivate.cpp \
93         SignalSlotPrivate.h \
94         textutils.h \
95         Translator.h \
96         Timeout.cpp \
97         Timeout.h \
98         types.h \
99         userinfo.cpp \
100         userinfo.h \
101         unicode.cpp \
102         unicode.h \
103         weighted_btree.h
104
105 if INSTALL_MACOSX
106 liblyxsupport_la_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.la  \
137         $(BOOST_LIBS) $(QT4_CORE_LIB)
138 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
139 check_convert_SOURCES = \
140         tests/check_convert.cpp \
141         tests/boost.cpp
142
143 check_filetools_LDADD = liblyxsupport.la $(BOOST_LIBS)
144 check_filetools_SOURCES = \
145         tests/check_filetools.cpp \
146         tests/boost.cpp
147
148 check_lstrings_LDADD = liblyxsupport.la $(BOOST_LIBS) $(QT4_CORE_LIB)
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