]> git.lyx.org Git - lyx.git/blob - src/support/Makefile.am
move assert function to a separate file
[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         assert.h \
45         assert.cpp \
46         convert.cpp \
47         convert.h \
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         FileNameList.h \
63         filetools.cpp \
64         filetools.h \
65         FileZipListDir.h \
66         foreach.h \
67         ForkedCalls.cpp \
68         ForkedCalls.h \
69         gettext.cpp \
70         gettext.h \
71         gzstream.cpp \
72         gzstream.h \
73         kill.cpp \
74         limited_stack.h \
75         lstrings.cpp \
76         lstrings.h \
77         lyxalgo.h \
78         lyxlib.h \
79         lyxtime.cpp \
80         lyxtime.h \
81         lyxsum.cpp \
82         Messages.cpp \
83         Messages.h \
84         os.cpp \
85         os.h \
86         Path.cpp \
87         Path.h \
88         Package.cpp \
89         Package.h \
90         qstring_helpers.h \
91         socktools.cpp \
92         socktools.h \
93         strfwd.h \
94         Systemcall.cpp \
95         Systemcall.h \
96         SignalSlot.cpp \
97         SignalSlot.h \
98         SignalSlotPrivate.cpp \
99         SignalSlotPrivate.h \
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         weighted_btree.h \
110         minizip/crypt.h \
111         minizip/ioapi.c \
112         minizip/ioapi.h \
113         minizip/iowin32.c \
114         minizip/iowin32.h \
115         minizip/unzip.c \
116         minizip/unzip.h \
117         minizip/zip.c \
118         minizip/zip.h \
119         minizip/zipunzip.cpp
120
121 if INSTALL_MACOSX
122 liblyxsupport_la_SOURCES += \
123         linkback/LinkBack.h \
124         linkback/LinkBack.m \
125         linkback/LinkBackProxy.h \
126         linkback/LinkBackProxy.m \
127         linkback/LinkBackServer.h \
128         linkback/LinkBackServer.m
129 endif
130
131 ############################## Tests ##################################
132
133 EXTRA_DIST += \
134         tests/test_convert \
135         tests/test_filetools \
136         tests/test_lstrings \
137         tests/regfiles/convert \
138         tests/regfiles/filetools \
139         tests/regfiles/lstrings
140
141
142 TESTS = \
143         tests/test_convert \
144         tests/test_filetools \
145         tests/test_lstrings
146
147 check_PROGRAMS = \
148         check_convert \
149         check_filetools \
150         check_lstrings
151
152 check_convert_LDADD = liblyxsupport.la  \
153         $(BOOST_LIBS) $(QT4_CORE_LIB)
154 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
155 check_convert_SOURCES = \
156         tests/check_convert.cpp \
157         tests/boost.cpp
158
159 check_filetools_LDADD = liblyxsupport.la $(BOOST_LIBS)
160 check_filetools_SOURCES = \
161         tests/check_filetools.cpp \
162         tests/boost.cpp
163
164 check_lstrings_LDADD = liblyxsupport.la $(BOOST_LIBS) $(QT4_CORE_LIB)
165 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
166 check_lstrings_SOURCES = \
167         tests/check_lstrings.cpp \
168         tests/boost.cpp
169
170 makeregfiles: ${check_PROGRAMS}
171         for all in ${check_PROGRAMS} ; do \
172                 ./$$all > ${srcdir}/tests/regfiles/$$all ; \
173         done