]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
883e4faf6b9be341509523ccebc2e0a199439c24
[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         docstream.cpp \
34         docstream.h \
35         docstring.cpp \
36         docstring.h \
37         environment.h \
38         environment.cpp \
39         ExceptionMessage.h \
40         FileFilterList.cpp \
41         FileFilterList.h \
42         FileName.cpp \
43         FileName.h \
44         filetools.cpp \
45         filetools.h \
46         Forkedcall.cpp \
47         Forkedcall.h \
48         ForkedCallQueue.cpp \
49         ForkedCallQueue.h \
50         ForkedcallsController.cpp \
51         ForkedcallsController.h \
52         getcwd.cpp \
53         gzstream.cpp \
54         gzstream.h \
55         kill.cpp \
56         limited_stack.h \
57         lstrings.cpp \
58         lstrings.h \
59         lyxalgo.h \
60         lyxlib.h \
61         lyxtime.cpp \
62         lyxtime.h \
63         lyxsum.cpp \
64         mkdir.cpp \
65         os.cpp \
66         os.h \
67         Path.cpp \
68         Path.h \
69         Package.cpp \
70         Package.h \
71         qstring_helpers.h \
72         rename.cpp \
73         socktools.cpp \
74         socktools.h \
75         strfwd.h \
76         Systemcall.cpp \
77         Systemcall.h \
78         SignalSlot.cpp \
79         SignalSlot.h \
80         SignalSlotPrivate.h \
81         tempname.cpp \
82         textutils.h \
83         Translator.h \
84         Timeout.cpp \
85         Timeout.h \
86         types.h \
87         userinfo.cpp \
88         userinfo.h \
89         unicode.cpp \
90         unicode.h \
91         minizip/crypt.h \
92         minizip/ioapi.c \
93         minizip/ioapi.h \
94         minizip/iowin32.c \
95         minizip/iowin32.h \
96         minizip/unzip.c \
97         minizip/unzip.h \
98         minizip/zip.c \
99         minizip/zip.h \
100         minizip/zipunzip.cpp
101
102 ############################## Tests ##################################
103
104 EXTRA_DIST += \
105         tests/test_convert \
106         tests/test_filetools \
107         tests/test_lstrings \
108         tests/regfiles/convert \
109         tests/regfiles/filetools \
110         tests/regfiles/lstrings
111
112
113 TESTS = \
114         test_convert \
115         test_filetools \
116         test_lstrings
117
118 check_PROGRAMS = \
119         check_convert \
120         check_filetools \
121         check_lstrings
122
123 check_convert_LDADD = ../debug.o convert.o docstring.o lstrings.o unicode.o \
124         $(BOOST_LIBS) $(QT4_CORE_LIB)
125 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
126 check_convert_SOURCES = \
127         tests/check_convert.cpp \
128         tests/boost.cpp
129
130 check_filetools_LDADD = ../debug.o libsupport.la $(BOOST_LIBS)
131 check_filetools_SOURCES = \
132         tests/check_filetools.cpp \
133         tests/boost.cpp
134
135 check_lstrings_LDADD = ../debug.o lstrings.o convert.o docstring.o unicode.o \
136         $(QT4_CORE_LIB)
137 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
138 check_lstrings_SOURCES = \
139         tests/check_lstrings.cpp \
140         tests/boost.cpp
141
142 makeregfiles: ${check_PROGRAMS}
143         for all in ${check_PROGRAMS} ; do \
144                 ./$$all > ${srcdir}/regfiles/$$all ; \
145         done