~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to sched/Makefile.am

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
## -*- mode: makefile; tab-width: 4 -*-
2
 
## $Id: Makefile.am 16069 2008-09-26 18:20:24Z davea $
 
2
## $Id: Makefile.am 21894 2010-07-12 21:35:05Z davea $
3
3
 
4
4
include $(top_srcdir)/Makefile.incl
5
5
 
6
 
noinst_PROGRAMS = \
 
6
AM_CPPFLAGS += $(MYSQL_CFLAGS) $(PTHREAD_CFLAGS)
 
7
AM_LDFLAGS += -static
 
8
 
 
9
if ENABLE_LIBRARIES
 
10
 
 
11
libsched_sources = \
 
12
    credit.cpp \
 
13
    sched_shmem.cpp \
 
14
    sched_util.cpp \
 
15
    sched_config.cpp \
 
16
    sched_limit.cpp \
 
17
    sched_msgs.cpp \
 
18
    ../db/boinc_db.cpp \
 
19
    ../db/db_base.cpp \
 
20
    ../tools/process_result_template.cpp \
 
21
    ../tools/backend_lib.cpp
 
22
 
 
23
lib_LTLIBRARIES = libsched.la
 
24
libsched_la_SOURCES = $(libsched_sources)
 
25
libsched_la_CFLAGS = $(AM_CPPFLAGS)
 
26
libsched_la_CXXFLAGS = $(AM_CPPFLAGS)
 
27
libsched_la_LDFLAGS= -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
 
28
libsched_la_LIBADD= $(SSL_LIBS)
 
29
 
 
30
## install only headers that are meant for exporting the API !!
 
31
if INSTALL_HEADERS
 
32
pkginclude_HEADERS = \
 
33
        credit.h \
 
34
        sched_config.h \
 
35
        sched_limit.h \
 
36
        sched_msgs.h \
 
37
        sched_util.h \
 
38
        ../tools/backend_lib.h \
 
39
        validate_util.h
 
40
endif
 
41
# end of "if INSTALL_HEADERS
 
42
 
 
43
if ENABLE_FCGI
 
44
 
 
45
lib_LTLIBRARIES += libsched_fcgi.la
 
46
libsched_fcgi_la_SOURCES = $(libsched_sources)
 
47
libsched_fcgi_la_CFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS)
 
48
libsched_fcgi_la_CXXFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS)
 
49
libsched_fcgi_la_LDFLAGS= -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
 
50
libsched_fcgi_la_LIBADD=
 
51
 
 
52
endif
 
53
# end of "if ENABLE_FCGI"
 
54
 
 
55
# Some OSs may not prefix libraries with lib. 
 
56
# For example OS2
 
57
if OS_OS2
 
58
LIBSCHED_STATIC=sched.${LIBEXT}
 
59
LIBSCHED_FCGI_STATIC=sched_fcgi.${LIBEXT}
 
60
else
 
61
LIBSCHED_STATIC=libsched.${LIBEXT}
 
62
LIBSCHED_FCGI_STATIC=libsched_fcgi.${LIBEXT}
 
63
endif
 
64
 
 
65
 
 
66
if BUILD_STATIC_LIBS
 
67
all_local = $(LIBSCHED_STATIC)
 
68
if ENABLE_FCGI
 
69
all_local += $(LIBSCHED_FCGI_STATIC)
 
70
endif
 
71
endif
 
72
 
 
73
all-local: $(all_local)
 
74
 
 
75
$(LIBSCHED_STATIC): libsched.la
 
76
        rm -f $(LIBSCHED_STATIC)
 
77
        $(LN) .libs/$(LIBSCHED_STATIC) .
 
78
 
 
79
$(LIBSCHED_FCGI_STATIC): libsched_fcgi.la
 
80
        rm -f $(LIBSCHED_FCGI_STATIC)
 
81
        $(LN) .libs/$(LIBSCHED_FCGI_STATIC) .
 
82
 
 
83
 
 
84
endif
 
85
# end of "if ENABLE_LIBRARIES
 
86
 
 
87
if ENABLE_SERVER
 
88
 
 
89
cgidir = $(libexecdir)/cgi-bin
 
90
scheddir = $(libexecdir)/sched
 
91
 
 
92
bin_PROGRAMS = \
 
93
    delete_file \
 
94
    get_file \
 
95
    make_work \
 
96
    request_file_list \
 
97
    sched_driver \
 
98
    send_file \
 
99
    show_shmem \
 
100
    wu_check
 
101
 
 
102
sched_PROGRAMS = \
7
103
    census \
8
 
    cgi \
 
104
        credit_test \
9
105
    db_dump \
10
106
    db_purge \
11
 
    delete_file \
12
107
    feeder \
13
108
    file_deleter \
14
 
    file_upload_handler \
15
 
    get_file \
16
 
    make_work \
17
109
    message_handler \
18
 
        pymw_assimilator \
19
 
    request_file_list \
20
110
    sample_assimilator \
21
111
    sample_dummy_assimilator \
22
112
    sample_bitwise_validator \
23
113
    sample_trivial_validator \
24
114
    sample_work_generator \
25
115
    single_job_assimilator \
26
 
    sched_driver \
27
 
    send_file \
28
 
    show_shmem \
29
116
    transitioner \
30
117
    trickle_handler \
31
 
    update_stats \
32
 
    wu_check
33
 
 
34
 
lib_LIBRARIES = libsched.a
35
 
 
36
 
EXTRA_PROGRAMS = fcgi \
37
 
                 fcgi_file_upload_handler
 
118
    update_stats
 
119
 
 
120
cgi_PROGRAMS= \
 
121
    cgi \
 
122
    file_upload_handler
38
123
 
39
124
# scripts that 'make install' should put in bindir
40
125
bin_SCRIPTS = start stop status
41
126
 
42
 
LDADD = $(LIBSCHED) $(LIBBOINC) $(MYSQL_LIBS) $(PTHREAD_LIBS) $(RSA_LIBS)
43
 
AM_CXXFLAGS = $(MYSQL_CFLAGS)
44
 
 
45
 
libsched_a_SOURCES = \
46
 
    sched_shmem.cpp \
47
 
    sched_util.cpp \
48
 
    sched_config.cpp \
49
 
        sched_msgs.cpp \
50
 
    ../db/boinc_db.cpp \
51
 
    ../db/db_base.cpp \
52
 
        ../lib/msg_log.cpp \
53
 
    ../tools/process_result_template.cpp \
54
 
    ../tools/backend_lib.cpp
55
 
 
56
 
EXTRA_DIST = \
 
127
noinst_HEADERS = \
57
128
    assimilate_handler.h \
58
 
    fcgiapp.h \
59
129
    handle_request.h \
60
 
    main.h \
 
130
    sched_main.h \
61
131
    sched_locality.h \
 
132
    sched_score.h \
62
133
    sched_send.h \
63
134
    sched_shmem.h \
64
 
    server_types.h \
 
135
    sched_version.h \
 
136
    sched_types.h
 
137
 
 
138
EXTRA_DIST = \
65
139
    start
66
140
 
67
 
 
68
 
cgi_SOURCES = \
 
141
cgi_sources = \
 
142
        credit.cpp \
69
143
    edf_sim.cpp \
70
144
    handle_request.cpp \
71
145
    hr.cpp \
72
146
    hr_info.cpp \
73
 
    main.cpp \
 
147
    sched_main.cpp \
74
148
    sched_array.cpp \
75
149
    sched_assign.cpp \
 
150
    sched_customize.cpp \
76
151
    sched_hr.cpp \
77
152
    sched_resend.cpp \
 
153
    sched_limit.cpp \
78
154
    sched_locality.cpp \
79
155
    sched_result.cpp \
80
 
    sched_plan.cpp \
 
156
    sched_score.cpp \
81
157
    sched_send.cpp \
82
158
    sched_timezone.cpp \
83
 
    server_types.cpp \
84
 
    time_stats_log.cpp \
85
 
    ../lib/synch.cpp
 
159
    sched_version.cpp \
 
160
    sched_types.cpp \
 
161
    time_stats_log.cpp
 
162
 
 
163
cgi_SOURCES = $(cgi_sources)
 
164
cgi_LDADD = $(SERVERLIBS)
86
165
 
87
166
census_SOURCES = \
88
167
    census.cpp \
89
168
    hr.cpp \
90
169
    hr_info.cpp
91
 
 
92
 
## install only headers that are meant for exporting the API !!
93
 
pkginclude_HEADERS = \
94
 
        sched_config.h \
95
 
        sched_msgs.h \
96
 
        sched_util.h \
97
 
        ../tools/backend_lib.h \
98
 
        validate_util.h
99
 
 
 
170
census_LDADD = $(SERVERLIBS)
 
171
 
 
172
credit_test_SOURCES = \
 
173
        credit_test.cpp
 
174
credit_test_LDADD = $(SERVERLIBS)
100
175
 
101
176
feeder_SOURCES = \
102
177
    feeder.cpp \
103
178
    hr.cpp \
104
179
    hr_info.cpp \
105
180
    ../lib/synch.cpp
 
181
feeder_LDADD = $(SERVERLIBS)
106
182
 
107
183
wu_check_SOURCES = wu_check.cpp
 
184
wu_check_LDADD = $(SERVERLIBS)
108
185
 
109
186
show_shmem_SOURCES = show_shmem.cpp
 
187
show_shmem_LDADD = $(SERVERLIBS)
110
188
 
111
189
file_deleter_SOURCES = file_deleter.cpp
112
 
 
113
 
sample_bitwise_validator_SOURCES = validator.cpp sample_bitwise_validator.cpp validate_util.cpp validate_util.h validate_util2.cpp
114
 
 
115
 
sample_trivial_validator_SOURCES = validator.cpp sample_trivial_validator.cpp validate_util.cpp validate_util.h validate_util2.cpp
116
 
 
117
 
sample_dummy_assimilator_SOURCES = assimilator.cpp sample_dummy_assimilator.cpp validate_util.cpp validate_util.h
118
 
 
119
 
sample_assimilator_SOURCES = assimilator.cpp sample_assimilator.cpp validate_util.cpp validate_util.h
120
 
 
121
 
pymw_assimilator_SOURCES = assimilator.cpp pymw_assimilator.cpp validate_util.cpp validate_util.h 
122
 
pymw_assimilator_DEPENDENCIES = $(LIB_SCHED) 
123
 
 
124
 
single_job_assimilator_SOURCES = assimilator.cpp single_job_assimilator.cpp validate_util.cpp validate_util.h
 
190
file_deleter_LDADD = $(SERVERLIBS)
 
191
 
 
192
VALIDATOR_SOURCES = \
 
193
        credit.cpp \
 
194
        validator.cpp \
 
195
        validate_util.cpp \
 
196
        validate_util2.cpp
 
197
 
 
198
sample_bitwise_validator_SOURCES = $(VALIDATOR_SOURCES) \
 
199
        sample_bitwise_validator.cpp 
 
200
sample_bitwise_validator_LDADD = $(SERVERLIBS)
 
201
 
 
202
sample_trivial_validator_SOURCES = $(VALIDATOR_SOURCES) \
 
203
        sample_trivial_validator.cpp
 
204
sample_trivial_validator_LDADD = $(SERVERLIBS)
 
205
 
 
206
ASSIMILATOR_SOURCES = \
 
207
        assimilator.cpp \
 
208
        validate_util.cpp
 
209
 
 
210
sample_dummy_assimilator_SOURCES = $(ASSIMILATOR_SOURCES) \
 
211
        sample_dummy_assimilator.cpp
 
212
sample_dummy_assimilator_LDADD = $(SERVERLIBS)
 
213
 
 
214
sample_assimilator_SOURCES = $(ASSIMILATOR_SOURCES) \
 
215
        sample_assimilator.cpp
 
216
sample_assimilator_LDADD = $(SERVERLIBS)
 
217
 
 
218
single_job_assimilator_SOURCES = $(ASSIMILATOR_SOURCES) \
 
219
        single_job_assimilator.cpp
 
220
single_job_assimilator_LDADD = $(SERVERLIBS)
125
221
 
126
222
sample_work_generator_SOURCES = sample_work_generator.cpp
 
223
sample_work_generator_LDADD = $(SERVERLIBS)
127
224
 
128
225
db_dump_SOURCES = db_dump.cpp
 
226
db_dump_LDADD = $(SERVERLIBS)
129
227
 
130
228
db_purge_SOURCES = db_purge.cpp
 
229
db_purge_LDADD = $(SERVERLIBS)
131
230
 
132
231
trickle_handler_SOURCES = trickle_handler.cpp
 
232
trickle_handler_LDADD = $(SERVERLIBS)
133
233
 
134
234
update_stats_SOURCES = update_stats.cpp
 
235
update_stats_LDADD = $(SERVERLIBS)
135
236
 
136
237
file_upload_handler_SOURCES = file_upload_handler.cpp
 
238
file_upload_handler_LDADD = $(SERVERLIBS)
137
239
 
138
240
make_work_SOURCES = make_work.cpp
 
241
make_work_LDADD = $(SERVERLIBS)
139
242
 
140
243
transitioner_SOURCES = transitioner.cpp
 
244
transitioner_LDADD = $(SERVERLIBS)
141
245
 
142
246
message_handler_SOURCES = message_handler.cpp
 
247
message_handler_LDADD = $(SERVERLIBS)
143
248
 
144
249
request_file_list_SOURCES = request_file_list.cpp
 
250
request_file_list_LDADD = $(SERVERLIBS)
145
251
 
146
252
get_file_SOURCES = get_file.cpp
 
253
get_file_LDADD = $(SERVERLIBS)
147
254
 
148
255
send_file_SOURCES = send_file.cpp
 
256
send_file_LDADD = $(SERVERLIBS)
149
257
 
150
258
delete_file_SOURCES = delete_file.cpp
 
259
delete_file_LDADD = $(SERVERLIBS)
151
260
 
152
261
sched_driver_SOURCES = sched_driver.cpp
153
 
 
154
 
# N.B.: the FCGI scheduler can't use lib/libboinc.a;
155
 
# it needs to have specially compiled versions of everything
156
 
# because its stdio is different
157
 
fcgi_SOURCES = \
158
 
    handle_request.cpp \
159
 
    hr.cpp \
160
 
    hr_info.cpp \
161
 
    main.cpp \
162
 
    sched_array.cpp \
163
 
    sched_assign.cpp \
164
 
    sched_config.cpp \
165
 
    sched_hr.cpp \
166
 
    sched_locality.cpp \
167
 
    sched_msgs.cpp \
168
 
    sched_resend.cpp \
169
 
    sched_result.cpp \
170
 
    sched_plan.cpp \
171
 
    sched_send.cpp \
172
 
    sched_shmem.cpp \
173
 
    sched_timezone.cpp \
174
 
    sched_util.cpp \
175
 
    server_types.cpp \
176
 
        time_stats_log.cpp \
177
 
    edf_sim.cpp \
178
 
    ../db/boinc_db.cpp \
179
 
    ../db/db_base.cpp \
180
 
    ../lib/base64.cpp \
181
 
    ../lib/boinc_fcgi.cpp \
182
 
    ../lib/coproc.cpp \
183
 
    ../lib/crypt.cpp \
184
 
    ../lib/filesys.cpp \
185
 
    ../lib/md5.c \
186
 
    ../lib/md5_file.cpp \
187
 
    ../lib/miofile.cpp \
188
 
    ../lib/msg_log.cpp \
189
 
    ../lib/parse.cpp \
190
 
    ../lib/shmem.cpp \
191
 
    ../lib/synch.cpp \
192
 
    ../lib/str_util.cpp \
193
 
    ../lib/util.cpp \
194
 
    ../tools/process_result_template.cpp \
195
 
    ../tools/backend_lib.cpp
196
 
 
197
 
fcgi_CPPFLAGS = -D_USING_FCGI_ -include boinc_fcgi.h $(AM_CPPFLAGS)
198
 
fcgi_LDADD = -lfcgi $(MYSQL_LIBS)
 
262
sched_driver_LDADD = $(SERVERLIBS)
 
263
 
 
264
if ENABLE_FCGI
 
265
 
 
266
cgi_PROGRAMS += fcgi \
 
267
                fcgi_file_upload_handler
 
268
 
 
269
fcgi_SOURCES = $(cgi_sources)
 
270
fcgi_CPPFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS)
 
271
fcgi_LDADD = $(SERVERLIBS_FCGI)
199
272
 
200
273
fcgi_file_upload_handler_SOURCES = \
201
274
    file_upload_handler.cpp \
202
275
    sched_config.cpp \
203
 
    sched_msgs.cpp \
204
 
    ../lib/boinc_fcgi.cpp \
205
 
    ../lib/miofile.cpp \
206
 
    ../lib/msg_log.cpp \
207
 
    ../lib/parse.cpp \
208
 
    ../lib/crypt.cpp
 
276
    sched_msgs.cpp 
 
277
fcgi_file_upload_handler_CPPFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS)
 
278
fcgi_file_upload_handler_LDADD = $(SERVERLIBS_FCGI)
209
279
 
210
 
fcgi_file_upload_handler_CPPFLAGS = -D_USING_FCGI_ -include boinc_fcgi.h $(AM_CPPFLAGS)
211
 
fcgi_file_upload_handler_LDADD = $(LDADD) -lfcgi
 
280
endif
 
281
# end of "if ENABLE_FCGI"
 
282
endif 
 
283
# end of "if ENABLE_SERVER"
212
284
 
213
285
.PHONY: PHONY-start
214
286