2008-06-08 22:18:52 +00:00
|
|
|
## -*- mode: makefile; tab-width: 4 -*-
|
2003-06-06 19:00:42 +00:00
|
|
|
## $Id$
|
|
|
|
|
|
|
|
include $(top_srcdir)/Makefile.incl
|
|
|
|
|
2007-06-20 22:34:06 +00:00
|
|
|
noinst_PROGRAMS = \
|
|
|
|
census \
|
|
|
|
cgi \
|
|
|
|
db_dump \
|
|
|
|
db_purge \
|
|
|
|
delete_file \
|
|
|
|
feeder \
|
|
|
|
file_deleter \
|
|
|
|
file_upload_handler \
|
|
|
|
get_file \
|
|
|
|
make_work \
|
|
|
|
message_handler \
|
2008-07-28 22:56:39 +00:00
|
|
|
pymw_assimilator \
|
2007-06-20 22:34:06 +00:00
|
|
|
request_file_list \
|
2007-04-18 20:49:58 +00:00
|
|
|
sample_assimilator \
|
2007-06-20 22:34:06 +00:00
|
|
|
sample_dummy_assimilator \
|
|
|
|
sample_bitwise_validator \
|
|
|
|
sample_trivial_validator \
|
2007-04-18 20:49:58 +00:00
|
|
|
sample_work_generator \
|
2008-03-04 23:50:38 +00:00
|
|
|
single_job_assimilator \
|
2007-07-03 21:55:50 +00:00
|
|
|
sched_driver \
|
2007-06-20 22:34:06 +00:00
|
|
|
send_file \
|
|
|
|
show_shmem \
|
|
|
|
transitioner \
|
2008-02-05 23:30:28 +00:00
|
|
|
trickle_handler \
|
2007-06-20 22:34:06 +00:00
|
|
|
update_stats \
|
2004-03-17 01:26:44 +00:00
|
|
|
wu_check
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2004-10-18 01:54:28 +00:00
|
|
|
lib_LIBRARIES = libsched.a
|
2003-06-14 20:25:37 +00:00
|
|
|
|
2005-12-14 22:48:05 +00:00
|
|
|
EXTRA_PROGRAMS = fcgi \
|
|
|
|
fcgi_file_upload_handler
|
2003-06-14 20:25:36 +00:00
|
|
|
|
|
|
|
# scripts that 'make install' should put in bindir
|
2004-06-16 19:59:07 +00:00
|
|
|
bin_SCRIPTS = start stop status
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2008-03-15 03:26:14 +00:00
|
|
|
LDADD = $(LIBSCHED) $(LIBBOINC) $(MYSQL_LIBS) $(PTHREAD_LIBS) $(RSA_LIBS)
|
|
|
|
AM_CXXFLAGS = $(MYSQL_CFLAGS)
|
2003-06-14 20:25:37 +00:00
|
|
|
|
2007-06-20 22:34:06 +00:00
|
|
|
libsched_a_SOURCES = \
|
2008-09-26 18:20:24 +00:00
|
|
|
sched_shmem.cpp \
|
|
|
|
sched_util.cpp \
|
|
|
|
sched_config.cpp \
|
|
|
|
sched_msgs.cpp \
|
|
|
|
../db/boinc_db.cpp \
|
|
|
|
../db/db_base.cpp \
|
|
|
|
../lib/msg_log.cpp \
|
|
|
|
../tools/process_result_template.cpp \
|
|
|
|
../tools/backend_lib.cpp
|
2005-01-08 07:44:22 +00:00
|
|
|
|
2007-06-20 22:34:06 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
assimilate_handler.h \
|
|
|
|
fcgiapp.h \
|
|
|
|
handle_request.h \
|
|
|
|
main.h \
|
|
|
|
sched_locality.h \
|
|
|
|
sched_send.h \
|
|
|
|
sched_shmem.h \
|
|
|
|
server_types.h \
|
2008-03-15 03:26:14 +00:00
|
|
|
start
|
2004-09-29 02:49:50 +00:00
|
|
|
|
2003-06-14 20:25:37 +00:00
|
|
|
|
2005-02-10 20:31:11 +00:00
|
|
|
cgi_SOURCES = \
|
2008-09-26 18:20:24 +00:00
|
|
|
edf_sim.cpp \
|
|
|
|
handle_request.cpp \
|
|
|
|
hr.cpp \
|
|
|
|
hr_info.cpp \
|
|
|
|
main.cpp \
|
|
|
|
sched_array.cpp \
|
|
|
|
sched_assign.cpp \
|
|
|
|
sched_hr.cpp \
|
|
|
|
sched_resend.cpp \
|
|
|
|
sched_locality.cpp \
|
|
|
|
sched_result.cpp \
|
|
|
|
sched_plan.cpp \
|
|
|
|
sched_send.cpp \
|
|
|
|
sched_timezone.cpp \
|
|
|
|
server_types.cpp \
|
|
|
|
time_stats_log.cpp \
|
|
|
|
../lib/synch.cpp
|
2004-04-04 01:59:47 +00:00
|
|
|
|
2007-06-20 22:34:06 +00:00
|
|
|
census_SOURCES = \
|
2008-09-26 18:20:24 +00:00
|
|
|
census.cpp \
|
|
|
|
hr.cpp \
|
|
|
|
hr_info.cpp
|
2005-09-29 11:56:28 +00:00
|
|
|
|
|
|
|
## install only headers that are meant for exporting the API !!
|
2008-05-28 01:38:39 +00:00
|
|
|
pkginclude_HEADERS = \
|
2007-06-20 22:34:06 +00:00
|
|
|
sched_config.h \
|
|
|
|
sched_msgs.h \
|
|
|
|
sched_util.h \
|
|
|
|
../tools/backend_lib.h \
|
2007-01-14 22:43:10 +00:00
|
|
|
validate_util.h
|
2005-09-29 11:56:28 +00:00
|
|
|
|
|
|
|
|
2004-04-04 01:59:47 +00:00
|
|
|
feeder_SOURCES = \
|
2008-09-26 18:20:24 +00:00
|
|
|
feeder.cpp \
|
|
|
|
hr.cpp \
|
|
|
|
hr_info.cpp \
|
|
|
|
../lib/synch.cpp
|
2004-04-04 01:59:47 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
wu_check_SOURCES = wu_check.cpp
|
2003-09-27 23:20:40 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
show_shmem_SOURCES = show_shmem.cpp
|
2003-06-14 20:25:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
file_deleter_SOURCES = file_deleter.cpp
|
2003-06-14 20:25:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
sample_bitwise_validator_SOURCES = validator.cpp sample_bitwise_validator.cpp validate_util.cpp validate_util.h validate_util2.cpp
|
2004-07-13 12:55:22 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
sample_trivial_validator_SOURCES = validator.cpp sample_trivial_validator.cpp validate_util.cpp validate_util.h validate_util2.cpp
|
2004-07-13 12:55:22 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
sample_dummy_assimilator_SOURCES = assimilator.cpp sample_dummy_assimilator.cpp validate_util.cpp validate_util.h
|
2003-06-14 20:25:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
sample_assimilator_SOURCES = assimilator.cpp sample_assimilator.cpp validate_util.cpp validate_util.h
|
2007-04-18 20:49:58 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
pymw_assimilator_SOURCES = assimilator.cpp pymw_assimilator.cpp validate_util.cpp validate_util.h
|
2008-07-28 22:56:39 +00:00
|
|
|
pymw_assimilator_DEPENDENCIES = $(LIB_SCHED)
|
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
single_job_assimilator_SOURCES = assimilator.cpp single_job_assimilator.cpp validate_util.cpp validate_util.h
|
2008-03-04 23:50:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
sample_work_generator_SOURCES = sample_work_generator.cpp
|
2004-11-26 21:29:57 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
db_dump_SOURCES = db_dump.cpp
|
2003-06-14 20:25:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
db_purge_SOURCES = db_purge.cpp
|
2004-09-12 00:49:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
trickle_handler_SOURCES = trickle_handler.cpp
|
2008-02-05 23:30:28 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
update_stats_SOURCES = update_stats.cpp
|
2003-06-14 20:25:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
file_upload_handler_SOURCES = file_upload_handler.cpp
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
make_work_SOURCES = make_work.cpp
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
transitioner_SOURCES = transitioner.cpp
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
message_handler_SOURCES = message_handler.cpp
|
2004-07-10 00:11:20 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
request_file_list_SOURCES = request_file_list.cpp
|
2004-08-05 22:02:33 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
get_file_SOURCES = get_file.cpp
|
2004-08-05 22:02:33 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
send_file_SOURCES = send_file.cpp
|
2004-08-05 22:02:33 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
delete_file_SOURCES = delete_file.cpp
|
2004-08-05 22:02:33 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
sched_driver_SOURCES = sched_driver.cpp
|
2007-07-03 21:55:50 +00:00
|
|
|
|
2008-04-17 15:43:51 +00:00
|
|
|
# N.B.: the FCGI scheduler can't use lib/libboinc.a;
|
|
|
|
# it needs to have specially compiled versions of everything
|
|
|
|
# because its stdio is different
|
2007-06-20 22:34:06 +00:00
|
|
|
fcgi_SOURCES = \
|
2008-09-26 18:20:24 +00:00
|
|
|
handle_request.cpp \
|
|
|
|
hr.cpp \
|
|
|
|
hr_info.cpp \
|
|
|
|
main.cpp \
|
|
|
|
sched_array.cpp \
|
|
|
|
sched_assign.cpp \
|
|
|
|
sched_config.cpp \
|
|
|
|
sched_hr.cpp \
|
|
|
|
sched_locality.cpp \
|
|
|
|
sched_msgs.cpp \
|
|
|
|
sched_resend.cpp \
|
|
|
|
sched_result.cpp \
|
|
|
|
sched_plan.cpp \
|
|
|
|
sched_send.cpp \
|
|
|
|
sched_shmem.cpp \
|
|
|
|
sched_timezone.cpp \
|
|
|
|
sched_util.cpp \
|
|
|
|
server_types.cpp \
|
|
|
|
time_stats_log.cpp \
|
|
|
|
edf_sim.cpp \
|
|
|
|
../db/boinc_db.cpp \
|
|
|
|
../db/db_base.cpp \
|
|
|
|
../lib/base64.cpp \
|
|
|
|
../lib/boinc_fcgi.cpp \
|
|
|
|
../lib/coproc.cpp \
|
|
|
|
../lib/crypt.cpp \
|
|
|
|
../lib/filesys.cpp \
|
2007-06-20 22:34:06 +00:00
|
|
|
../lib/md5.c \
|
2008-09-26 18:20:24 +00:00
|
|
|
../lib/md5_file.cpp \
|
|
|
|
../lib/miofile.cpp \
|
|
|
|
../lib/msg_log.cpp \
|
|
|
|
../lib/parse.cpp \
|
|
|
|
../lib/shmem.cpp \
|
|
|
|
../lib/synch.cpp \
|
|
|
|
../lib/str_util.cpp \
|
|
|
|
../lib/util.cpp \
|
|
|
|
../tools/process_result_template.cpp \
|
|
|
|
../tools/backend_lib.cpp
|
2004-04-30 19:33:05 +00:00
|
|
|
|
2008-09-09 19:10:42 +00:00
|
|
|
fcgi_CPPFLAGS = -D_USING_FCGI_ -include boinc_fcgi.h $(AM_CPPFLAGS)
|
2008-04-17 15:43:51 +00:00
|
|
|
fcgi_LDADD = -lfcgi $(MYSQL_LIBS)
|
2003-06-14 20:25:41 +00:00
|
|
|
|
2007-06-20 22:34:06 +00:00
|
|
|
fcgi_file_upload_handler_SOURCES = \
|
2008-09-26 18:20:24 +00:00
|
|
|
file_upload_handler.cpp \
|
|
|
|
sched_config.cpp \
|
|
|
|
sched_msgs.cpp \
|
|
|
|
../lib/boinc_fcgi.cpp \
|
|
|
|
../lib/miofile.cpp \
|
|
|
|
../lib/msg_log.cpp \
|
|
|
|
../lib/parse.cpp \
|
|
|
|
../lib/crypt.cpp
|
2008-02-05 20:16:57 +00:00
|
|
|
|
2008-09-09 19:10:42 +00:00
|
|
|
fcgi_file_upload_handler_CPPFLAGS = -D_USING_FCGI_ -include boinc_fcgi.h $(AM_CPPFLAGS)
|
2008-03-15 03:26:14 +00:00
|
|
|
fcgi_file_upload_handler_LDADD = $(LDADD) -lfcgi
|
2005-12-14 22:48:05 +00:00
|
|
|
|
2003-10-15 07:52:57 +00:00
|
|
|
.PHONY: PHONY-start
|
2003-08-04 22:04:41 +00:00
|
|
|
|
2003-10-15 07:52:57 +00:00
|
|
|
PHONY-start:
|
2005-12-01 00:25:21 +00:00
|
|
|
@test -f start || @LN_S@ $(srcdir)/start start && test -f start
|
2003-10-15 07:52:57 +00:00
|
|
|
|
|
|
|
status stop: PHONY-start
|
2005-12-01 00:25:21 +00:00
|
|
|
@test -f $@ || @LN_S@ start $@ && test -f $@
|
2007-10-11 13:24:22 +00:00
|
|
|
|
|
|
|
CLEANFILES = status stop
|