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-04-30 22:22:54 +00:00
|
|
|
VERSION = 1
|
|
|
|
|
|
|
|
CFLAGS = -g -Wall @DEFS@ \
|
2002-07-22 23:37:56 +00:00
|
|
|
-I @srcdir@ \
|
2002-07-07 20:39:24 +00:00
|
|
|
-I @srcdir@/../api \
|
|
|
|
-I @srcdir@/../lib \
|
|
|
|
-I @srcdir@/../RSAEuro/source \
|
|
|
|
-I /usr/local/mysql/include \
|
2002-05-17 22:33:57 +00:00
|
|
|
-DHOST=\"@host@\" \
|
2002-04-30 22:22:54 +00:00
|
|
|
-DVERSION=$(VERSION)
|
|
|
|
|
2002-07-07 20:39:24 +00:00
|
|
|
CC = @CC@ $(CFLAGS)
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
CLIBS = @LIBS@
|
|
|
|
|
|
|
|
CLIENT_PROG = boinc_$(VERSION)_@host@
|
|
|
|
PROGS = $(CLIENT_PROG) test_net_xfer test_http test_file_xfer
|
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
|
|
|
OBJS = \
|
|
|
|
app.o \
|
|
|
|
client_state.o \
|
2002-06-01 20:26:21 +00:00
|
|
|
client_types.o \
|
2002-04-30 22:22:54 +00:00
|
|
|
cs_apps.o \
|
|
|
|
cs_files.o \
|
|
|
|
cs_scheduler.o \
|
|
|
|
file_names.o \
|
|
|
|
file_xfer.o \
|
|
|
|
filesys.o \
|
|
|
|
hostinfo.o \
|
|
|
|
hostinfo_unix.o \
|
|
|
|
http.o \
|
|
|
|
log_flags.o \
|
|
|
|
net_stats.o \
|
|
|
|
net_xfer.o \
|
2002-08-07 22:52:10 +00:00
|
|
|
pers_file_xfer.o \
|
2002-04-30 22:22:54 +00:00
|
|
|
prefs.o \
|
2002-06-21 06:52:47 +00:00
|
|
|
scheduler_op.o \
|
2002-05-29 23:25:21 +00:00
|
|
|
speed_stats.o \
|
2002-04-30 22:22:54 +00:00
|
|
|
time_stats.o \
|
|
|
|
util.o \
|
2002-06-03 19:15:19 +00:00
|
|
|
../lib/parse.o \
|
2002-04-30 22:22:54 +00:00
|
|
|
../lib/md5_file.o \
|
2002-06-10 22:59:15 +00:00
|
|
|
../lib/md5.o \
|
2002-07-07 20:39:24 +00:00
|
|
|
../lib/crypt.o \
|
|
|
|
../RSAEuro/source/rsaeuro.a \
|
2002-08-05 00:29:34 +00:00
|
|
|
../api/boinc_api.o
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
TEST_NET_XFER_OBJS = \
|
|
|
|
filesys.o \
|
|
|
|
http.o \
|
|
|
|
log_flags.o \
|
2002-06-03 19:15:19 +00:00
|
|
|
../lib/parse.o \
|
2002-06-06 22:49:07 +00:00
|
|
|
net_xfer.o \
|
|
|
|
util.o
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
TEST_HTTP_OBJS = $(TEST_NET_XFER_OBJS)
|
|
|
|
|
|
|
|
TEST_FX_OBJS = \
|
|
|
|
$(TEST_HTTP_OBJS) \
|
2002-07-05 05:33:40 +00:00
|
|
|
client_types.o \
|
|
|
|
file_names.o \
|
2002-04-30 22:22:54 +00:00
|
|
|
file_xfer.o
|
|
|
|
|
2002-07-24 18:49:23 +00:00
|
|
|
TAR_TARGETS = \
|
|
|
|
client/*.C client/*.cpp client/*.h client/configure \
|
|
|
|
client/install-sh client/*.in client/*.sub client/*.guess \
|
|
|
|
lib/*.C lib/*.c lib/*.h \
|
|
|
|
api/*.C api/*.h \
|
|
|
|
RSAEuro/*/*.c RSAEuro/*/*.h RSAEuro/*/*.in RSAEuro/*/*.mak \
|
|
|
|
INSTALL_CLIENT ACKNOWLEDGEMENTS LICENSE
|
2002-07-18 21:29:50 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
.C.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
|
2002-07-22 20:45:43 +00:00
|
|
|
../RSAEuro/source/rsaeuro.a:
|
|
|
|
cd ../RSAEuro/source; ${MAKE}
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
$(CLIENT_PROG): main.o $(OBJS)
|
|
|
|
$(CC) main.o $(OBJS) $(CLIBS) -o $(CLIENT_PROG)
|
|
|
|
|
|
|
|
test_net_xfer: test_net_xfer.o $(TEST_NET_XFER_OBJS)
|
|
|
|
$(CC) test_net_xfer.o $(TEST_NET_XFER_OBJS) $(CLIBS) -o test_net_xfer
|
|
|
|
|
|
|
|
test_http: test_http.o $(TEST_HTTP_OBJS)
|
|
|
|
$(CC) test_http.o $(TEST_HTTP_OBJS) $(CLIBS) -o test_http
|
|
|
|
|
|
|
|
test_file_xfer: test_file_xfer.o $(TEST_FX_OBJS)
|
|
|
|
$(CC) test_file_xfer.o $(TEST_FX_OBJS) $(CLIBS) -o test_file_xfer
|
|
|
|
|
|
|
|
tar:
|
2002-07-19 20:35:25 +00:00
|
|
|
cd $(topsrcdir)/..; tar cf boinc_client.tar $(TAR_TARGETS); \
|
2002-07-18 21:29:50 +00:00
|
|
|
gzip boinc_client.tar;
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
clean:
|
2002-05-17 22:33:57 +00:00
|
|
|
rm -f *.o $(PROGS) core dependencies Makefile config.cache
|
2002-07-22 20:45:43 +00:00
|
|
|
cd ../RSAEuro/source; ${MAKE} clean;
|
|
|
|
cd ../lib; ${MAKE} clean;
|
|
|
|
cd ../api; ${MAKE} clean;
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-06-21 18:31:32 +00:00
|
|
|
install: all
|
2002-07-18 21:29:50 +00:00
|
|
|
-mkdir -p $(INSTALL_DIR)/client
|
|
|
|
cp test_net_xfer $(INSTALL_DIR)/client/test_net_xfer
|
|
|
|
cp test_http $(INSTALL_DIR)/client/test_http
|
|
|
|
cp test_file_xfer $(INSTALL_DIR)/client/test_file_xfer
|
|
|
|
cp $(CLIENT_PROG) $(INSTALL_DIR)/client/$(CLIENT_PROG)
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
$(RM) -r $(INSTALL_DIR)/client
|
2002-06-21 18:31:32 +00:00
|
|
|
|
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
|