File: Makefile.am

package info (click to toggle)
boinc 7.14.2+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 111,132 kB
  • sloc: cpp: 163,589; php: 113,173; ansic: 49,284; pascal: 35,620; xml: 17,864; java: 13,521; python: 6,551; sh: 4,082; perl: 1,843; makefile: 1,796; objc: 1,543; sql: 959; csh: 126; lisp: 47
file content (280 lines) | stat: -rw-r--r-- 6,358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
## -*- mode: makefile; tab-width: 4 -*-
## $Id$

include $(top_srcdir)/Makefile.incl

bin_PROGRAMS =

# Stuff needed for server builds goes here.
if ENABLE_SERVER

serverbindir = $(prefix)/lib/boinc-server-maker/lib
serverbin_PROGRAMS = crypt_prog parse_test

endif
# end of "if ENABLE_SERVER"


if ENABLE_LIBRARIES

libfcgi_sources = \
    boinc_fcgi.cpp \
    coproc.cpp \
    filesys.cpp \
    hostinfo.cpp \
	keyword.cpp \
    md5.cpp \
    md5_file.cpp \
    mfile.cpp \
    miofile.cpp \
    msg_log.cpp \
    opencl_boinc.cpp \
    parse.cpp \
    sched_msgs.cpp \
    shmem.cpp \
    str_util.cpp \
    synch.cpp \
    url.cpp \
    util.cpp

generic_sources = \
    app_ipc.cpp \
    base64.cpp \
    cc_config.cpp \
    cert_sig.cpp \
    coproc.cpp \
    diagnostics.cpp \
    filesys.cpp \
    gui_rpc_client.cpp \
    gui_rpc_client_ops.cpp \
    gui_rpc_client_print.cpp \
    hostinfo.cpp \
	keyword.cpp \
    md5.cpp \
    md5_file.cpp \
    mem_usage.cpp \
    mfile.cpp \
    miofile.cpp \
    msg_log.cpp \
    network.cpp \
    notice.cpp \
    opencl_boinc.cpp \
    parse.cpp \
    prefs.cpp \
    procinfo.cpp \
    proc_control.cpp \
    project_init.cpp \
    proxy_info.cpp \
    sched_msgs.cpp \
    shmem.cpp \
    str_util.cpp \
    url.cpp \
    util.cpp

if OS_WIN32
win_sources = \
    boinc_win.cpp \
    daemonmgt_win.cpp \
    diagnostics_win.cpp \
    idlemon_win.cpp \
    procinfo_win.cpp \
    run_app_windows.cpp \
    stackwalker_win.cpp \
    win_util.cpp \
    wslinfo.cpp
win_headers= \
    boinc_win.h \
    diagnostics_win.h \
    run_app_windows.h \
    stackwalker_win.h \
    win_util.h \
    wslinfo.h
else # !OS_WIN32
if OS_DARWIN
mac_sources = \
    procinfo_mac.cpp \
    mac/mac_backtrace.cpp \
    mac/mac_spawn.cpp \
    mac/QBacktrace.c \
    mac/QCrashReport.c \
    mac/QMachOImage.c \
    mac/QMachOImageList.c \
    mac/QSymbols.c \
    mac/QTaskMemory.c
mac_headers = \
    mac/dyld_gdb.h \
    mac/mac_backtrace.h \
    mac/mac_spawn.h \
    mac/QBacktrace.h \
    mac/QCrashReport.h \
    mac/QMachOImage.h \
    mac/QMachOImageList.h \
    mac/QSymbols.h \
    mac/QTaskMemory.h
win_sources=
win_headers=
else # !(OS_WIN32 || OS_MAC)

generic_sources += \
    procinfo_unix.cpp \
    synch.cpp \
    unix_util.cpp
win_sources=
win_headers=
mac_sources=
mac_headers=

endif
endif


if INSTALL_HEADERS
pkginclude_HEADERS = \
    app_ipc.h \
    average.h \
    base64.h \
    boinc_fcgi.h \
    cal_boinc.h \
    cc_config.h \
    cert_sig.h \
    cl_boinc.h \
    common_defs.h \
    coproc.h \
    crypt.h \
    diagnostics.h \
    error_numbers.h \
    filesys.h \
    gui_rpc_client.h \
    hostinfo.h \
    md5.h \
    md5_file.h \
    mem_usage.h \
    mfile.h \
    miofile.h \
    msg_log.h \
    network.h \
    notice.h \
    opencl_boinc.h \
    parse.h \
    prefs.h \
    procinfo.h \
    proxy_info.h \
    sched_msgs.h \
    stackwalker_imports.h \
    str_util.h \
    url.h \
    util.h \
    $(mac_headers) \
    $(win_headers)
endif

# These are used internally and are not meant to be installed
noinst_HEADERS = \
    msg_queue.h \
    proc_control.h \
    procinfo.h \
    shmem.h \
    str_replace.h \
    synch.h \
    unix_util.h

lib_LTLIBRARIES = libboinc.la
libboinc_la_SOURCES = $(generic_sources) $(mac_sources) $(win_sources)
libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_la_AR = gcc-ar
libboinc_la_RANLIB = gcc-ranlib
libboinc_a_AR = gcc-ar
libboinc_a_RANLIB = gcc-ranlib
libboinc_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
libboinc_la_LIBADD =

if ENABLE_BOINCCRYPT
lib_LTLIBRARIES += libboinc_crypt.la
libboinc_crypt_la_SOURCES = crypt.cpp
libboinc_crypt_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CFLAGS)
libboinc_crypt_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CXXFLAGS)
libboinc_crypt_la_AR = gcc-ar
libboinc_crypt_la_RANLIB = gcc-ranlib
libboinc_crypt_a_AR = gcc-ar
libboinc_crypt_a_RANLIB = gcc-ranlib
libboinc_crypt_la_LDFLAGS = -version-number $(LIBBOINC_VERSION) $(SSL_LIBS) $(RSA_LIBS)
libboinc_crypt_la_LIBADD = $(LIBBOINC)
endif

if ENABLE_FCGI
lib_LTLIBRARIES += libboinc_fcgi.la
libboinc_fcgi_la_SOURCES = $(libfcgi_sources) $(mac_sources) $(win_sources)
libboinc_fcgi_la_CFLAGS = -D_USING_FCGI_ $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_fcgi_la_CXXFLAGS = -D_USING_FCGI_ $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_fcgi_la_AR = gcc-ar
libboinc_fcgi_la_RANLIB = gcc-ranlib
libboinc_fcgi_a_AR = gcc-ar
libboinc_fcgi_a_RANLIB = gcc-ranlib
libboinc_fcgi_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
libboinc_fcgi_la_LIBADD =
endif
# end of "if ENABLE_FCGI"

# Some OSs may not prefix libraries with lib.
# For example OS2
if OS_OS2
LIBBOINC_STATIC=boinc.${LIBEXT}
LIBBOINC_CRYPT_STATIC=boinc_crypt.${LIBEXT}
LIBBOINC_FCGI_STATIC=boinc_fcgi.${LIBEXT}
else
LIBBOINC_STATIC=libboinc.${LIBEXT}
LIBBOINC_CRYPT_STATIC=libboinc_crypt.${LIBEXT}
LIBBOINC_FCGI_STATIC=libboinc_fcgi.${LIBEXT}
endif


if BUILD_STATIC_LIBS
all_local = $(LIBBOINC_STATIC)
if ENABLE_BOINCCRYPT
all_local += $(LIBBOINC_CRYPT_STATIC)
endif
if ENABLE_FCGI
all_local += $(LIBBOINC_FCGI_STATIC)
endif
endif

all-local: $(all_local)

$(LIBBOINC_STATIC): libboinc.la
	rm -f $(LIBBOINC_STATIC)
	$(LN) .libs/$(LIBBOINC_STATIC) .

$(LIBBOINC_CRYPT_STATIC): libboinc_crypt.la
	rm -f $(LIBBOINC_CRYPT_STATIC)
	$(LN) .libs/$(LIBBOINC_CRYPT_STATIC) .

$(LIBBOINC_FCGI_STATIC): libboinc_fcgi.la
	rm -f $(LIBBOINC_FCGI_STATIC)
	$(LN) .libs/$(LIBBOINC_FCGI_STATIC) .

clean: clean-am
	rm -f $(LIBBOINC_STATIC) $(LIBBOINC_CRYPT_STATIC) $(LIBBOINC_FCGI_STATIC)

endif
# end of "if ENABLE_LIBRARIES"

EXTRA_PROGRAMS = md5_test shmem_test msg_test

EXTRA_DIST = *.h *.cpp

md5_test_SOURCES = md5_test.cpp
md5_test_CXXFLAGS = $(PTHREAD_CFLAGS)
md5_test_LDADD = $(LIBBOINC)
shmem_test_SOURCES = shmem_test.cpp
shmem_test_CXXFLAGS = $(PTHREAD_CFLAGS)
shmem_test_LDADD = $(LIBBOINC)
msg_test_SOURCES = msg_test.cpp
msg_test_CXXFLAGS = $(PTHREAD_CFLAGS)
msg_test_LDADD = $(LIBBOINC)
crypt_prog_SOURCES = crypt_prog.cpp
crypt_prog_CXXFLAGS = $(PTHREAD_CFLAGS) $(SSL_CXXFLAGS)
crypt_prog_LDADD = $(LIBBOINC_CRYPT) $(LIBBOINC) $(SSL_LIBS)
parse_test_SOURCES = parse_test.cpp
parse_test_CXXFLAGS = $(PTHREAD_CFLAGS)
parse_test_LDADD = $(LIBBOINC)