]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
we assume (more or less) conforming compilers nowadays.
[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         lyxtime.cpp \
65         lyxtime.h \
66         lyxsum.cpp \
67         mkdir.cpp \
68         os.cpp \
69         os.h \
70         Path.cpp \
71         Path.h \
72         Package.cpp \
73         Package.h \
74         qstring_helpers.cpp \
75         qstring_helpers.h \
76         rename.cpp \
77         socktools.cpp \
78         socktools.h \
79         strfwd.h \
80         Systemcall.cpp \
81         Systemcall.h \
82         tempname.cpp \
83         textutils.cpp \
84         textutils.h \
85         Translator.h \
86         Timeout.cpp \
87         Timeout.h \
88         types.h \
89         userinfo.cpp \
90         userinfo.h \
91         unicode.cpp \
92         unicode.h \
93         unlink.cpp \
94         minizip/crypt.h \
95         minizip/ioapi.c \
96         minizip/ioapi.h \
97         minizip/iowin32.c \
98         minizip/iowin32.h \
99         minizip/unzip.c \
100         minizip/unzip.h \
101         minizip/zip.c \
102         minizip/zip.h \
103         minizip/zipunzip.cpp
104
105 ############################## Tests ##################################
106
107 EXTRA_DIST += \
108         tests/test_convert \
109         tests/test_filetools \
110         tests/test_lstrings \
111         tests/regfiles/convert \
112         tests/regfiles/filetools \
113         tests/regfiles/lstrings
114
115
116 TESTS = \
117         test_convert \
118         test_filetools \
119         test_lstrings
120
121 check_PROGRAMS = \
122         check_convert \
123         check_filetools \
124         check_lstrings
125
126 check_convert_LDADD = ../debug.o convert.o docstring.o lstrings.o unicode.o \
127         qstring_helpers.o $(BOOST_LIBS) $(QT4_CORE_LIB)
128 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
129 check_convert_SOURCES = \
130         tests/check_convert.cpp \
131         tests/boost.cpp
132
133 check_filetools_LDADD = ../debug.o libsupport.la $(BOOST_LIBS)
134 check_filetools_SOURCES = \
135         tests/check_filetools.cpp \
136         tests/boost.cpp
137
138 check_lstrings_LDADD = ../debug.o lstrings.o convert.o docstring.o unicode.o \
139         qstring_helpers.o $(QT4_CORE_LIB)
140 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
141 check_lstrings_SOURCES = \
142         tests/check_lstrings.cpp \
143         tests/boost.cpp
144
145 makeregfiles: ${check_PROGRAMS}
146         for all in ${check_PROGRAMS} ; do \
147                 ./$$all > ${srcdir}/regfiles/$$all ; \
148         done