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