]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
introduce a header to forward declare std::string.
[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 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
16 AM_CPPFLAGS += $(QT4_CPPFLAGS) $(QT4_CORE_INCLUDES) -I$(srcdir)/minizip
17
18 # force the use of C++ compiler for minizip/*.c files, because
19 # gcc can not go through the included boost files.
20 liblyxsupport_la_CFLAGS = -x c++
21
22 liblyxsupport_la_SOURCES = \
23         FileMonitor.h \
24         FileMonitor.cpp \
25         RandomAccessList.h \
26         abort.cpp \
27         chdir.cpp \
28         convert.cpp \
29         convert.h \
30         copy.cpp \
31         copied_ptr.h \
32         cow_ptr.h \
33         debugstream.h \
34         docstream.cpp \
35         docstream.h \
36         docstring.cpp \
37         docstring.h \
38         environment.h \
39         environment.cpp \
40         ExceptionMessage.h \
41         FileFilterList.cpp \
42         FileFilterList.h \
43         FileName.cpp \
44         FileName.h \
45         filetools.cpp \
46         filetools.h \
47         Forkedcall.cpp \
48         Forkedcall.h \
49         ForkedCallQueue.cpp \
50         ForkedCallQueue.h \
51         ForkedcallsController.cpp \
52         ForkedcallsController.h \
53         fs_extras.cpp \
54         fs_extras.h \
55         getcwd.cpp \
56         gzstream.cpp \
57         gzstream.h \
58         kill.cpp \
59         limited_stack.h \
60         lstrings.cpp \
61         lstrings.h \
62         lyxalgo.h \
63         lyxlib.h \
64         lyxmanip.h \
65         lyxtime.cpp \
66         lyxtime.h \
67         lyxsum.cpp \
68         mkdir.cpp \
69         os.cpp \
70         os.h \
71         Path.cpp \
72         Path.h \
73         Package.cpp \
74         Package.h \
75         qstring_helpers.cpp \
76         qstring_helpers.h \
77         rename.cpp \
78         socktools.cpp \
79         socktools.h \
80         strfwd.h \
81         std_istream.h \
82         std_ostream.h \
83         Systemcall.cpp \
84         Systemcall.h \
85         tempname.cpp \
86         textutils.cpp \
87         textutils.h \
88         Translator.h \
89         Timeout.cpp \
90         Timeout.h \
91         types.h \
92         userinfo.cpp \
93         userinfo.h \
94         unicode.cpp \
95         unicode.h \
96         unlink.cpp \
97         minizip/crypt.h \
98         minizip/ioapi.c \
99         minizip/ioapi.h \
100         minizip/iowin32.c \
101         minizip/iowin32.h \
102         minizip/unzip.c \
103         minizip/unzip.h \
104         minizip/zip.c \
105         minizip/zip.h \
106         minizip/zipunzip.cpp
107
108 ############################## Tests ##################################
109
110 EXTRA_DIST += \
111         tests/test_convert \
112         tests/test_filetools \
113         tests/test_lstrings \
114         tests/regfiles/convert \
115         tests/regfiles/filetools \
116         tests/regfiles/lstrings
117
118
119 TESTS = \
120         test_convert \
121         test_filetools \
122         test_lstrings
123
124 check_PROGRAMS = \
125         check_convert \
126         check_filetools \
127         check_lstrings
128
129 check_convert_LDADD = ../debug.o convert.o docstring.o lstrings.o unicode.o \
130         qstring_helpers.o $(BOOST_LIBS) $(QT4_CORE_LIB)
131 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
132 check_convert_SOURCES = \
133         tests/check_convert.cpp \
134         tests/boost.cpp
135
136 check_filetools_LDADD = ../debug.o libsupport.la $(BOOST_LIBS)
137 check_filetools_SOURCES = \
138         tests/check_filetools.cpp \
139         tests/boost.cpp
140
141 check_lstrings_LDADD = ../debug.o lstrings.o convert.o docstring.o unicode.o \
142         qstring_helpers.o $(QT4_CORE_LIB)
143 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
144 check_lstrings_SOURCES = \
145         tests/check_lstrings.cpp \
146         tests/boost.cpp
147
148 makeregfiles: ${check_PROGRAMS}
149         for all in ${check_PROGRAMS} ; do \
150                 ./$$all > ${srcdir}/regfiles/$$all ; \
151         done