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