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