]> git.lyx.org Git - features.git/blob - src/support/Makefile.am
Transfer getcwd() implementation to FileName.
[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 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         copied_ptr.h \
48         debug.cpp \
49         debug.h \
50         docstream.cpp \
51         docstream.h \
52         docstring.cpp \
53         docstring.h \
54         environment.h \
55         environment.cpp \
56         ExceptionMessage.h \
57         FileFilterList.cpp \
58         FileFilterList.h \
59         FileName.cpp \
60         FileName.h \
61         filetools.cpp \
62         filetools.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.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 ############################## Tests ##################################
116
117 EXTRA_DIST += \
118         tests/test_convert \
119         tests/test_filetools \
120         tests/test_lstrings \
121         tests/regfiles/convert \
122         tests/regfiles/filetools \
123         tests/regfiles/lstrings
124
125
126 TESTS = \
127         test_convert \
128         test_filetools \
129         test_lstrings
130
131 check_PROGRAMS = \
132         check_convert \
133         check_filetools \
134         check_lstrings
135
136 check_convert_LDADD = ../debug.o convert.o docstring.o lstrings.o unicode.o \
137         $(BOOST_LIBS) $(QT4_CORE_LIB)
138 check_convert_LDFLAGS = $(QT4_CORE_LDFLAGS)
139 check_convert_SOURCES = \
140         tests/check_convert.cpp \
141         tests/boost.cpp
142
143 check_filetools_LDADD = ../debug.o libsupport.la $(BOOST_LIBS)
144 check_filetools_SOURCES = \
145         tests/check_filetools.cpp \
146         tests/boost.cpp
147
148 check_lstrings_LDADD = ../debug.o lstrings.o convert.o docstring.o unicode.o \
149         $(QT4_CORE_LIB)
150 check_lstrings_LDFLAGS = $(QT4_CORE_LDFLAGS)
151 check_lstrings_SOURCES = \
152         tests/check_lstrings.cpp \
153         tests/boost.cpp
154
155 makeregfiles: ${check_PROGRAMS}
156         for all in ${check_PROGRAMS} ; do \
157                 ./$$all > ${srcdir}/regfiles/$$all ; \
158         done