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