2002-05-25 07:30:55 +00:00
|
|
|
DEPTH = ..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2002-07-18 21:29:50 +00:00
|
|
|
INSTALL_DIR = /usr/local/boinc
|
|
|
|
|
2002-07-05 05:33:40 +00:00
|
|
|
CFLAGS = -g -Wall @DEFS@ \
|
|
|
|
-I@top_srcdir@/db \
|
|
|
|
-I@top_srcdir@/lib \
|
|
|
|
-I@top_srcdir@/tools \
|
2002-07-11 01:09:53 +00:00
|
|
|
-I/usr/local/mysql/include \
|
2002-07-11 20:41:24 +00:00
|
|
|
-I@top_srcdir@/RSAEuro/source \
|
2002-12-02 04:29:40 +00:00
|
|
|
-DMAJOR_VERSION=$(BOINC_MAJOR_VERSION) \
|
|
|
|
-DMINOR_VERSION=$(BOINC_MINOR_VERSION)
|
2002-07-05 05:33:40 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
CC = g++ $(CFLAGS)
|
|
|
|
|
2002-06-07 22:59:24 +00:00
|
|
|
CLIBS = @LIBS@
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-12-17 19:00:43 +00:00
|
|
|
PROGS = cgi feeder show_shmem file_upload_handler validate_test make_work result_retry file_deleter assimilator
|
2002-05-24 04:29:10 +00:00
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
CGI_OBJS = \
|
|
|
|
handle_request.o \
|
|
|
|
main.o \
|
2002-05-24 04:29:10 +00:00
|
|
|
sched_shmem.o \
|
2002-04-30 22:22:54 +00:00
|
|
|
server_types.o \
|
2002-10-03 18:33:46 +00:00
|
|
|
config.o \
|
2002-04-30 22:22:54 +00:00
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
2002-05-24 04:29:10 +00:00
|
|
|
../lib/shmem.o \
|
2002-07-05 05:33:40 +00:00
|
|
|
../lib/parse.o
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-05-24 04:29:10 +00:00
|
|
|
FEEDER_OBJS = \
|
|
|
|
feeder.o \
|
|
|
|
sched_shmem.o \
|
2002-10-03 18:33:46 +00:00
|
|
|
config.o \
|
2002-05-24 04:29:10 +00:00
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
2002-10-03 18:33:46 +00:00
|
|
|
../lib/parse.o \
|
2002-05-24 04:29:10 +00:00
|
|
|
../lib/shmem.o
|
|
|
|
|
2002-06-01 20:26:21 +00:00
|
|
|
SHOW_SHMEM_OBJS = \
|
|
|
|
show_shmem.o \
|
|
|
|
sched_shmem.o \
|
2002-10-04 20:35:56 +00:00
|
|
|
config.o \
|
2002-06-01 20:26:21 +00:00
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
2002-10-04 20:35:56 +00:00
|
|
|
../lib/parse.o \
|
2002-06-01 20:26:21 +00:00
|
|
|
../lib/shmem.o
|
|
|
|
|
2002-07-05 05:33:40 +00:00
|
|
|
FILE_UPLOAD_OBJS = \
|
|
|
|
file_upload_handler.o \
|
2002-10-03 18:33:46 +00:00
|
|
|
config.o \
|
2002-07-05 05:33:40 +00:00
|
|
|
../lib/crypt.o \
|
|
|
|
../lib/parse.o \
|
|
|
|
../lib/md5.o \
|
|
|
|
../lib/md5_file.o \
|
|
|
|
../RSAEuro/source/rsaeuro.a
|
|
|
|
|
2002-09-02 17:25:55 +00:00
|
|
|
VALIDATE_OBJS = \
|
|
|
|
validate.o \
|
2002-09-25 19:40:19 +00:00
|
|
|
validate_test.o \
|
2002-10-03 18:33:46 +00:00
|
|
|
config.o \
|
2002-09-25 19:40:19 +00:00
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
|
|
|
../lib/parse.o
|
2002-09-02 17:25:55 +00:00
|
|
|
|
2002-12-17 19:00:43 +00:00
|
|
|
FILE_DELETER_OBJS = \
|
|
|
|
file_deleter.o \
|
|
|
|
config.o \
|
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
|
|
|
../lib/parse.o
|
|
|
|
|
|
|
|
ASSIMILATOR_OBJS = \
|
|
|
|
assimilator.o \
|
2003-01-23 08:07:48 +00:00
|
|
|
assimilate_handler.o \
|
2002-12-17 19:00:43 +00:00
|
|
|
config.o \
|
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
|
|
|
../lib/parse.o
|
|
|
|
|
2002-10-09 04:56:41 +00:00
|
|
|
MAKE_WORK_OBJS = \
|
|
|
|
make_work.o \
|
|
|
|
config.o \
|
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o \
|
2002-10-14 23:10:12 +00:00
|
|
|
../tools/backend_lib.o \
|
|
|
|
../tools/process_result_template.o \
|
|
|
|
../lib/parse.o \
|
|
|
|
../lib/md5_file.o \
|
|
|
|
../lib/md5.o \
|
|
|
|
../lib/crypt.o \
|
|
|
|
../RSAEuro/source/rsaeuro.a
|
2002-10-09 04:56:41 +00:00
|
|
|
|
2002-11-05 18:36:09 +00:00
|
|
|
RESULT_RETRY_OBJS = \
|
|
|
|
result_retry.o \
|
2002-11-07 19:31:34 +00:00
|
|
|
config.o \
|
2002-11-05 18:36:09 +00:00
|
|
|
../db/db_mysql.o \
|
2002-11-07 19:31:34 +00:00
|
|
|
../db/mysql_util.o \
|
|
|
|
../lib/parse.o \
|
|
|
|
../lib/md5_file.o \
|
|
|
|
../lib/md5.o \
|
|
|
|
../lib/crypt.o \
|
|
|
|
../tools/backend_lib.o \
|
|
|
|
../tools/process_result_template.o \
|
|
|
|
../RSAEuro/source/rsaeuro.a
|
2002-11-05 18:36:09 +00:00
|
|
|
|
2002-06-21 18:31:32 +00:00
|
|
|
FCGI_OBJS = \
|
|
|
|
handle_request.fcgi.o \
|
|
|
|
main.fcgi.o \
|
|
|
|
sched_shmem.fcgi.o \
|
|
|
|
server_types.fcgi.o \
|
|
|
|
../db/db_mysql.fcgi.o \
|
|
|
|
../db/mysql_util.fcgi.o \
|
|
|
|
../lib/shmem.fcgi.o \
|
|
|
|
../lib/parse.fcgi.o \
|
2002-07-05 19:20:00 +00:00
|
|
|
../lib/crypt.fcgi.o \
|
|
|
|
../lib/md5.o \
|
|
|
|
../lib/md5_file.o \
|
|
|
|
../RSAEuro/source/rsaeuro.a \
|
2002-06-21 18:31:32 +00:00
|
|
|
../tools/process_result_template.fcgi.o
|
|
|
|
FCGI_LIBS = -lfcgi -lfcgi++
|
|
|
|
FCGI_FLAGS = -include /usr/local/include/fcgi_stdio.h -D_USING_FCGI_
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
MYSQL_DIR = /usr/local/mysql/lib
|
|
|
|
MYSQL_LIBS = \
|
2002-05-30 08:33:30 +00:00
|
|
|
-L$(MYSQL_DIR) -L/sw/lib/mysql -L/usr/local/lib/mysql \
|
2002-05-25 15:30:00 +00:00
|
|
|
-lmysqlclient -L/usr/local/lib -lz \
|
2002-06-07 21:42:19 +00:00
|
|
|
-lm $(NETLIBS)
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-06-21 18:31:32 +00:00
|
|
|
%.fcgi.o: %.C
|
|
|
|
$(CC) $(FCGI_FLAGS) -c $*.C -o $*.fcgi.o
|
|
|
|
|
2002-07-05 19:20:00 +00:00
|
|
|
%.fcgi.o: %.c
|
|
|
|
$(CC) $(FCGI_FLAGS) -c $*.c -o $*.fcgi.o
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
.C.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
2002-06-21 18:31:32 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
.c.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
|
|
|
|
cgi: $(CGI_OBJS)
|
|
|
|
$(CC) $(CGI_OBJS) $(MYSQL_LIBS) $(CLIBS) -o cgi
|
|
|
|
|
2002-05-24 04:29:10 +00:00
|
|
|
feeder: $(FEEDER_OBJS)
|
|
|
|
$(CC) $(FEEDER_OBJS) $(MYSQL_LIBS) $(CLIBS) -o feeder
|
|
|
|
|
2002-06-01 20:26:21 +00:00
|
|
|
show_shmem: $(SHOW_SHMEM_OBJS)
|
|
|
|
$(CC) $(SHOW_SHMEM_OBJS) $(MYSQL_LIBS) $(CLIBS) -o show_shmem
|
|
|
|
|
2002-07-05 05:33:40 +00:00
|
|
|
file_upload_handler: $(FILE_UPLOAD_OBJS)
|
|
|
|
$(CC) $(FILE_UPLOAD_OBJS) $(CLIBS) -o file_upload_handler
|
|
|
|
|
2002-09-25 19:40:19 +00:00
|
|
|
validate_test: $(VALIDATE_OBJS)
|
|
|
|
$(CC) $(VALIDATE_OBJS) $(MYSQL_LIBS) $(CLIBS) -o validate_test
|
2002-09-02 17:25:55 +00:00
|
|
|
|
2002-10-09 04:56:41 +00:00
|
|
|
make_work: $(MAKE_WORK_OBJS)
|
|
|
|
$(CC) $(MAKE_WORK_OBJS) $(MYSQL_LIBS) $(CLIBS) -o make_work
|
|
|
|
|
2002-11-07 19:31:34 +00:00
|
|
|
result_retry: $(RESULT_RETRY_OBJS)
|
|
|
|
$(CC) $(RESULT_RETRY_OBJS) $(MYSQL_LIBS) $(CLIBS) -o result_retry
|
|
|
|
|
2002-12-17 19:00:43 +00:00
|
|
|
file_deleter: $(FILE_DELETER_OBJS)
|
|
|
|
$(CC) $(FILE_DELETER_OBJS) $(MYSQL_LIBS) $(CLIBS) -o file_deleter
|
|
|
|
|
|
|
|
assimilator: $(ASSIMILATOR_OBJS)
|
|
|
|
$(CC) $(ASSIMILATOR_OBJS) $(MYSQL_LIBS) $(CLIBS) -o assimilator
|
|
|
|
|
2002-06-21 18:31:32 +00:00
|
|
|
fcgi: $(FCGI_OBJS)
|
|
|
|
$(CC) $(FCGI_OBJS) $(MYSQL_LIBS) $(CLIBS) $(FCGI_LIBS) \
|
|
|
|
-o fcgi
|
|
|
|
|
2002-05-25 07:30:55 +00:00
|
|
|
dependencies: @srcdir@/*.C
|
2002-05-25 07:34:27 +00:00
|
|
|
$(CC) -M @srcdir@/*.C > dependencies
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
include dependencies
|
|
|
|
|
|
|
|
clean:
|
2002-05-24 04:29:10 +00:00
|
|
|
rm -f $(PROGS) *.o core dependencies config.cache
|
2002-06-21 18:31:32 +00:00
|
|
|
|
|
|
|
install: $(PROGS)
|
2002-07-18 21:29:50 +00:00
|
|
|
-mkdir -p $(INSTALL_DIR)/cgi
|
|
|
|
-mkdir -p $(INSTALL_DIR)/sched
|
|
|
|
cp fcgi $(INSTALL_DIR)/cgi/fcgi
|
|
|
|
cp cgi $(INSTALL_DIR)/cgi/cgi
|
|
|
|
cp feeder $(INSTALL_DIR)/sched/feeder
|
|
|
|
cp show_shmem $(INSTALL_DIR)/sched/show_shmem
|
|
|
|
cp file_upload_handler $(INSTALL_DIR)/cgi/file_upload_handler
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
$(RM) -r $(INSTALL_DIR)/cgi;
|
|
|
|
$(RM) -r $(INSTALL_DIR)/sched;
|