]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
Use *.* to select all files in the file selection dialog on Windows. Using shortcuts...
[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 MOCHEADER = SignalSlotPrivate.h
19
20 MOCEDFILES = $(MOCHEADER:%.h=%_moc.cpp)
21
22 CLEANFILES += $(MOCEDFILES)
23 BUILT_SOURCES += $(MOCEDFILES)
24
25 %_moc.cpp: %.h
26         $(MOC4) -o $@ $<
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         convert.cpp \
45         convert.h \
46         copied_ptr.h \
47         debug.cpp \
48         debug.h \
49         docstream.cpp \
50         docstream.h \
51         docstring.cpp \
52         docstring.h \
53         environment.h \
54         environment.cpp \
55         ExceptionMessage.h \
56         FileFilterList.cpp \
57         FileFilterList.h \
58         FileName.cpp \
59         FileName.h \
60         FileNameList.h \
61         filetools.cpp \
62         filetools.h \
63         FileZipListDir.h \
64         foreach.h \
65         ForkedCalls.cpp \
66         ForkedCalls.h \
67         gettext.cpp \
68         gettext.h \
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         os.cpp \
83         os.h \
84         Path.cpp \
85         Path.h \
86         Package.cpp \
87         Package.h \
88         qstring_helpers.h \
89         socktools.cpp \
90         socktools.h \
91         strfwd.h \
92         Systemcall.cpp \
93         Systemcall.h \
94         SignalSlot.cpp \
95         SignalSlot.h \
96         SignalSlotPrivate.cpp \
97         SignalSlotPrivate.h \
98         textutils.h \
99         Translator.h \
100         Timeout.cpp \
101         Timeout.h \
102         types.h \
103         userinfo.cpp \
104         userinfo.h \
105         unicode.cpp \
106         unicode.h \
107         weighted_btree.h \
108         minizip/crypt.h \
109         minizip/ioapi.c \
110         minizip/ioapi.h \
111         minizip/iowin32.c \
112         minizip/iowin32.h \
113         minizip/unzip.c \
114         minizip/unzip.h \
115         minizip/zip.c \
116         minizip/zip.h \
117         minizip/zipunzip.cpp
118
119 if INSTALL_MACOSX
120 liblyxsupport_la_SOURCES += \
121         linkback/LinkBack.h \
122         linkback/LinkBack.m \
123         linkback/LinkBackProxy.h \
124         linkback/LinkBackProxy.m \
125         linkback/LinkBackServer.h \
126         linkback/LinkBackServer.m
127 endif
128
129 ############################## Tests ##################################
130
131 EXTRA_DIST += \
132         tests/test_convert \
133         tests/test_filetools \
134         tests/test_lstrings \
135         tests/regfiles/convert \
136         tests/regfiles/filetools \
137         tests/regfiles/lstrings
138
139
140 TESTS = \
141         tests/test_convert \
142         tests/test_filetools \
143         tests/test_lstrings
144
145 check_PROGRAMS = \
146         check_convert \
147         check_filetools \
148         check_lstrings
149
150 check_convert_LDADD = liblyxsupport.la  \
151         $(BOOST_LIBS) $(QT4_CORE_LIB)
152 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
153 check_convert_SOURCES = \
154         tests/check_convert.cpp \
155         tests/boost.cpp
156
157 check_filetools_LDADD = liblyxsupport.la $(BOOST_LIBS)
158 check_filetools_SOURCES = \
159         tests/check_filetools.cpp \
160         tests/boost.cpp
161
162 check_lstrings_LDADD = liblyxsupport.la $(BOOST_LIBS) $(QT4_CORE_LIB)
163 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
164 check_lstrings_SOURCES = \
165         tests/check_lstrings.cpp \
166         tests/boost.cpp
167
168 makeregfiles: ${check_PROGRAMS}
169         for all in ${check_PROGRAMS} ; do \
170                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
171         done