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
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
AM_CPPFLAGS += $(MYSQL_CFLAGS) $(PTHREAD_CFLAGS)
|
2009-01-15 20:23:20 +00:00
|
|
|
AM_LDFLAGS += -static
|
2009-01-13 23:06:02 +00:00
|
|
|
|
|
|
|
if ENABLE_LIBRARIES
|
|
|
|
|
|
|
|
libsched_sources = \
|
2009-08-21 02:12:31 +00:00
|
|
|
credit.cpp \
|
2009-01-13 23:06:02 +00:00
|
|
|
sched_shmem.cpp \
|
|
|
|
sched_util.cpp \
|
|
|
|
sched_config.cpp \
|
2010-06-01 23:41:07 +00:00
|
|
|
sched_limit.cpp \
|
2009-01-13 23:06:02 +00:00
|
|
|
sched_msgs.cpp \
|
|
|
|
../db/boinc_db.cpp \
|
|
|
|
../db/db_base.cpp \
|
|
|
|
../tools/process_result_template.cpp \
|
2011-09-01 19:58:27 +00:00
|
|
|
../tools/process_input_template.cpp \
|
2012-02-17 19:16:49 +00:00
|
|
|
../tools/backend_lib.cpp \
|
|
|
|
../vda/sched_vda.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libsched.la
|
|
|
|
libsched_la_SOURCES = $(libsched_sources)
|
|
|
|
libsched_la_CFLAGS = $(AM_CPPFLAGS)
|
|
|
|
libsched_la_CXXFLAGS = $(AM_CPPFLAGS)
|
|
|
|
libsched_la_LDFLAGS= -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
|
2009-02-26 00:23:23 +00:00
|
|
|
libsched_la_LIBADD= $(SSL_LIBS)
|
2009-01-13 23:06:02 +00:00
|
|
|
|
|
|
|
## install only headers that are meant for exporting the API !!
|
|
|
|
if INSTALL_HEADERS
|
|
|
|
pkginclude_HEADERS = \
|
2010-03-05 22:55:16 +00:00
|
|
|
credit.h \
|
2009-01-13 23:06:02 +00:00
|
|
|
sched_config.h \
|
2010-07-12 21:35:05 +00:00
|
|
|
sched_limit.h \
|
2009-01-13 23:06:02 +00:00
|
|
|
sched_msgs.h \
|
|
|
|
sched_util.h \
|
|
|
|
../tools/backend_lib.h \
|
|
|
|
validate_util.h
|
|
|
|
endif
|
|
|
|
# end of "if INSTALL_HEADERS
|
|
|
|
|
|
|
|
if ENABLE_FCGI
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += libsched_fcgi.la
|
|
|
|
libsched_fcgi_la_SOURCES = $(libsched_sources)
|
|
|
|
libsched_fcgi_la_CFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS)
|
|
|
|
libsched_fcgi_la_CXXFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS)
|
|
|
|
libsched_fcgi_la_LDFLAGS= -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
|
|
|
|
libsched_fcgi_la_LIBADD=
|
|
|
|
|
|
|
|
endif
|
|
|
|
# end of "if ENABLE_FCGI"
|
|
|
|
|
2009-02-26 00:23:23 +00:00
|
|
|
# Some OSs may not prefix libraries with lib.
|
|
|
|
# For example OS2
|
|
|
|
if OS_OS2
|
|
|
|
LIBSCHED_STATIC=sched.${LIBEXT}
|
|
|
|
LIBSCHED_FCGI_STATIC=sched_fcgi.${LIBEXT}
|
|
|
|
else
|
|
|
|
LIBSCHED_STATIC=libsched.${LIBEXT}
|
|
|
|
LIBSCHED_FCGI_STATIC=libsched_fcgi.${LIBEXT}
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if BUILD_STATIC_LIBS
|
2009-02-26 00:23:23 +00:00
|
|
|
all_local = $(LIBSCHED_STATIC)
|
2009-01-13 23:06:02 +00:00
|
|
|
if ENABLE_FCGI
|
2009-02-26 00:23:23 +00:00
|
|
|
all_local += $(LIBSCHED_FCGI_STATIC)
|
2009-01-13 23:06:02 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
all-local: $(all_local)
|
|
|
|
|
2009-02-26 00:23:23 +00:00
|
|
|
$(LIBSCHED_STATIC): libsched.la
|
|
|
|
rm -f $(LIBSCHED_STATIC)
|
2009-12-01 17:04:28 +00:00
|
|
|
$(LN) .libs/$(LIBSCHED_STATIC) .
|
2009-01-13 23:06:02 +00:00
|
|
|
|
2009-02-26 00:23:23 +00:00
|
|
|
$(LIBSCHED_FCGI_STATIC): libsched_fcgi.la
|
|
|
|
rm -f $(LIBSCHED_FCGI_STATIC)
|
2009-12-01 17:04:28 +00:00
|
|
|
$(LN) .libs/$(LIBSCHED_FCGI_STATIC) .
|
2009-01-13 23:06:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
# end of "if ENABLE_LIBRARIES
|
|
|
|
|
|
|
|
if ENABLE_SERVER
|
|
|
|
|
2009-06-11 16:11:45 +00:00
|
|
|
cgidir = $(libexecdir)/cgi-bin
|
|
|
|
scheddir = $(libexecdir)/sched
|
|
|
|
|
|
|
|
bin_PROGRAMS = \
|
|
|
|
delete_file \
|
|
|
|
get_file \
|
|
|
|
make_work \
|
|
|
|
sched_driver \
|
2011-04-24 02:00:27 +00:00
|
|
|
put_file \
|
2009-06-11 16:11:45 +00:00
|
|
|
show_shmem \
|
|
|
|
wu_check
|
|
|
|
|
|
|
|
sched_PROGRAMS = \
|
2007-06-20 22:34:06 +00:00
|
|
|
census \
|
2009-11-04 21:23:56 +00:00
|
|
|
credit_test \
|
2007-06-20 22:34:06 +00:00
|
|
|
db_dump \
|
|
|
|
db_purge \
|
|
|
|
feeder \
|
|
|
|
file_deleter \
|
2012-02-24 03:09:56 +00:00
|
|
|
antique_file_deleter \
|
2007-06-20 22:34:06 +00:00
|
|
|
message_handler \
|
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-06-20 22:34:06 +00:00
|
|
|
transitioner \
|
2011-02-27 00:10:14 +00:00
|
|
|
trickle_credit \
|
|
|
|
trickle_echo \
|
2009-06-11 16:11:45 +00:00
|
|
|
update_stats
|
|
|
|
|
|
|
|
cgi_PROGRAMS= \
|
|
|
|
cgi \
|
|
|
|
file_upload_handler
|
2003-06-06 19:00:42 +00:00
|
|
|
|
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
|
|
|
|
2009-06-11 16:11:45 +00:00
|
|
|
noinst_HEADERS = \
|
2007-06-20 22:34:06 +00:00
|
|
|
assimilate_handler.h \
|
|
|
|
handle_request.h \
|
2012-03-14 19:53:16 +00:00
|
|
|
plan_class_spec.h \
|
2009-08-10 04:49:02 +00:00
|
|
|
sched_main.h \
|
2007-06-20 22:34:06 +00:00
|
|
|
sched_locality.h \
|
2009-03-19 16:35:35 +00:00
|
|
|
sched_score.h \
|
2007-06-20 22:34:06 +00:00
|
|
|
sched_send.h \
|
|
|
|
sched_shmem.h \
|
2009-03-19 16:35:35 +00:00
|
|
|
sched_version.h \
|
2009-08-10 04:56:46 +00:00
|
|
|
sched_types.h
|
2009-06-11 16:11:45 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2008-03-15 03:26:14 +00:00
|
|
|
start
|
2004-09-29 02:49:50 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
cgi_sources = \
|
2010-03-29 22:28:20 +00:00
|
|
|
credit.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
edf_sim.cpp \
|
|
|
|
handle_request.cpp \
|
|
|
|
hr.cpp \
|
|
|
|
hr_info.cpp \
|
2012-03-14 19:53:16 +00:00
|
|
|
plan_class_spec.cpp \
|
2009-08-10 04:49:02 +00:00
|
|
|
sched_main.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
sched_array.cpp \
|
|
|
|
sched_assign.cpp \
|
2009-07-29 18:55:50 +00:00
|
|
|
sched_customize.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
sched_hr.cpp \
|
|
|
|
sched_resend.cpp \
|
2010-05-24 23:14:48 +00:00
|
|
|
sched_limit.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
sched_locality.cpp \
|
|
|
|
sched_result.cpp \
|
2009-03-19 16:35:35 +00:00
|
|
|
sched_score.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
sched_send.cpp \
|
|
|
|
sched_timezone.cpp \
|
2009-03-19 16:35:35 +00:00
|
|
|
sched_version.cpp \
|
2009-08-10 04:56:46 +00:00
|
|
|
sched_types.cpp \
|
2009-01-13 23:06:02 +00:00
|
|
|
time_stats_log.cpp
|
|
|
|
|
|
|
|
cgi_SOURCES = $(cgi_sources)
|
|
|
|
cgi_LDADD = $(SERVERLIBS)
|
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
|
2009-01-13 23:06:02 +00:00
|
|
|
census_LDADD = $(SERVERLIBS)
|
2005-09-29 11:56:28 +00:00
|
|
|
|
2009-11-04 21:23:56 +00:00
|
|
|
credit_test_SOURCES = \
|
|
|
|
credit_test.cpp
|
|
|
|
credit_test_LDADD = $(SERVERLIBS)
|
|
|
|
|
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
|
2009-01-13 23:06:02 +00:00
|
|
|
feeder_LDADD = $(SERVERLIBS)
|
2004-04-04 01:59:47 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
wu_check_SOURCES = wu_check.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
wu_check_LDADD = $(SERVERLIBS)
|
2003-09-27 23:20:40 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
show_shmem_SOURCES = show_shmem.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
show_shmem_LDADD = $(SERVERLIBS)
|
2003-06-14 20:25:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
file_deleter_SOURCES = file_deleter.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
file_deleter_LDADD = $(SERVERLIBS)
|
2003-06-14 20:25:38 +00:00
|
|
|
|
2012-02-24 03:09:56 +00:00
|
|
|
antique_file_deleter_SOURCES = antique_file_deleter.cpp
|
|
|
|
antique_file_deleter_LDADD = $(SERVERLIBS)
|
|
|
|
|
2009-08-13 03:35:26 +00:00
|
|
|
VALIDATOR_SOURCES = \
|
|
|
|
credit.cpp \
|
|
|
|
validator.cpp \
|
|
|
|
validate_util.cpp \
|
|
|
|
validate_util2.cpp
|
|
|
|
|
|
|
|
sample_bitwise_validator_SOURCES = $(VALIDATOR_SOURCES) \
|
|
|
|
sample_bitwise_validator.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
sample_bitwise_validator_LDADD = $(SERVERLIBS)
|
2004-07-13 12:55:22 +00:00
|
|
|
|
2009-08-13 03:35:26 +00:00
|
|
|
sample_trivial_validator_SOURCES = $(VALIDATOR_SOURCES) \
|
|
|
|
sample_trivial_validator.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
sample_trivial_validator_LDADD = $(SERVERLIBS)
|
2004-07-13 12:55:22 +00:00
|
|
|
|
2009-08-13 03:35:26 +00:00
|
|
|
ASSIMILATOR_SOURCES = \
|
|
|
|
assimilator.cpp \
|
|
|
|
validate_util.cpp
|
|
|
|
|
|
|
|
sample_dummy_assimilator_SOURCES = $(ASSIMILATOR_SOURCES) \
|
|
|
|
sample_dummy_assimilator.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
sample_dummy_assimilator_LDADD = $(SERVERLIBS)
|
2003-06-14 20:25:38 +00:00
|
|
|
|
2009-08-13 03:35:26 +00:00
|
|
|
sample_assimilator_SOURCES = $(ASSIMILATOR_SOURCES) \
|
|
|
|
sample_assimilator.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
sample_assimilator_LDADD = $(SERVERLIBS)
|
2007-04-18 20:49:58 +00:00
|
|
|
|
2009-08-13 03:35:26 +00:00
|
|
|
single_job_assimilator_SOURCES = $(ASSIMILATOR_SOURCES) \
|
|
|
|
single_job_assimilator.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
single_job_assimilator_LDADD = $(SERVERLIBS)
|
2008-03-04 23:50:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
sample_work_generator_SOURCES = sample_work_generator.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
sample_work_generator_LDADD = $(SERVERLIBS)
|
2004-11-26 21:29:57 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
db_dump_SOURCES = db_dump.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
db_dump_LDADD = $(SERVERLIBS)
|
2003-06-14 20:25:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
db_purge_SOURCES = db_purge.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
db_purge_LDADD = $(SERVERLIBS)
|
2004-09-12 00:49:38 +00:00
|
|
|
|
2011-02-27 00:10:14 +00:00
|
|
|
trickle_credit_SOURCES = trickle_credit.cpp trickle_handler.cpp
|
|
|
|
trickle_credit_LDADD = $(SERVERLIBS)
|
|
|
|
|
|
|
|
trickle_echo_SOURCES = trickle_echo.cpp trickle_handler.cpp
|
|
|
|
trickle_echo_LDADD = $(SERVERLIBS)
|
2008-02-05 23:30:28 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
update_stats_SOURCES = update_stats.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
update_stats_LDADD = $(SERVERLIBS)
|
2003-06-14 20:25:38 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
file_upload_handler_SOURCES = file_upload_handler.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
file_upload_handler_LDADD = $(SERVERLIBS)
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
make_work_SOURCES = make_work.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
make_work_LDADD = $(SERVERLIBS)
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
transitioner_SOURCES = transitioner.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
transitioner_LDADD = $(SERVERLIBS)
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
message_handler_SOURCES = message_handler.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
message_handler_LDADD = $(SERVERLIBS)
|
2004-07-10 00:11:20 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
get_file_SOURCES = get_file.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
get_file_LDADD = $(SERVERLIBS)
|
2004-08-05 22:02:33 +00:00
|
|
|
|
2011-04-24 02:00:27 +00:00
|
|
|
put_file_SOURCES = put_file.cpp
|
|
|
|
put_file_LDADD = $(SERVERLIBS)
|
2004-08-05 22:02:33 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
delete_file_SOURCES = delete_file.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
delete_file_LDADD = $(SERVERLIBS)
|
2004-08-05 22:02:33 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
sched_driver_SOURCES = sched_driver.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
sched_driver_LDADD = $(SERVERLIBS)
|
2007-07-03 21:55:50 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if ENABLE_FCGI
|
|
|
|
|
2009-06-11 16:11:45 +00:00
|
|
|
cgi_PROGRAMS += fcgi \
|
|
|
|
fcgi_file_upload_handler
|
2009-01-13 23:06:02 +00:00
|
|
|
|
|
|
|
fcgi_SOURCES = $(cgi_sources)
|
|
|
|
fcgi_CPPFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS)
|
|
|
|
fcgi_LDADD = $(SERVERLIBS_FCGI)
|
2004-04-30 19:33:05 +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 \
|
2009-01-13 23:06:02 +00:00
|
|
|
sched_msgs.cpp
|
|
|
|
fcgi_file_upload_handler_CPPFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS)
|
|
|
|
fcgi_file_upload_handler_LDADD = $(SERVERLIBS_FCGI)
|
|
|
|
|
|
|
|
endif
|
|
|
|
# end of "if ENABLE_FCGI"
|
|
|
|
endif
|
|
|
|
# end of "if ENABLE_SERVER"
|
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
|