]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
c689469f3c793568118d6549a431f02e0a89eb9f
[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         debug.cpp \
33         debug.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         ForkedCalls.cpp \
48         ForkedCalls.h \
49         gettext.cpp \
50         gettext.h \
51         getcwd.cpp \
52         gzstream.cpp \
53         gzstream.h \
54         kill.cpp \
55         limited_stack.h \
56         lstrings.cpp \
57         lstrings.h \
58         lyxalgo.h \
59         lyxlib.h \
60         lyxtime.cpp \
61         lyxtime.h \
62         lyxsum.cpp \
63         Messages.cpp \
64         Messages.h \
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         minizip/crypt.h \
93         minizip/ioapi.c \
94         minizip/ioapi.h \
95         minizip/iowin32.c \
96         minizip/iowin32.h \
97         minizip/unzip.c \
98         minizip/unzip.h \
99         minizip/zip.c \
100         minizip/zip.h \
101         minizip/zipunzip.cpp
102
103 ############################## Tests ##################################
104
105 EXTRA_DIST += \
106         tests/test_convert \
107         tests/test_filetools \
108         tests/test_lstrings \
109         tests/regfiles/convert \
110         tests/regfiles/filetools \
111         tests/regfiles/lstrings
112
113
114 TESTS = \
115         test_convert \
116         test_filetools \
117         test_lstrings
118
119 check_PROGRAMS = \
120         check_convert \
121         check_filetools \
122         check_lstrings
123
124 check_convert_LDADD = ../debug.o convert.o docstring.o lstrings.o unicode.o \
125         $(BOOST_LIBS) $(QT4_CORE_LIB)
126 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
127 check_convert_SOURCES = \
128         tests/check_convert.cpp \
129         tests/boost.cpp
130
131 check_filetools_LDADD = ../debug.o libsupport.la $(BOOST_LIBS)
132 check_filetools_SOURCES = \
133         tests/check_filetools.cpp \
134         tests/boost.cpp
135
136 check_lstrings_LDADD = ../debug.o lstrings.o convert.o docstring.o unicode.o \
137         $(QT4_CORE_LIB)
138 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
139 check_lstrings_SOURCES = \
140         tests/check_lstrings.cpp \
141         tests/boost.cpp
142
143 makeregfiles: ${check_PROGRAMS}
144         for all in ${check_PROGRAMS} ; do \
145                 ./$$all > ${srcdir}/regfiles/$$all ; \
146         done