2002-05-25 07:30:55 +00:00
|
|
|
DEPTH = ..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
VERSION = 1
|
|
|
|
|
|
|
|
CFLAGS = -g -Wall @DEFS@ \
|
2002-05-17 22:33:57 +00:00
|
|
|
-DHOST=\"@host@\" \
|
2002-04-30 22:22:54 +00:00
|
|
|
-DVERSION=$(VERSION)
|
|
|
|
|
2002-05-25 16:12:31 +00:00
|
|
|
CC = @CC@ $(CFLAGS) -I @srcdir@/../lib -I /usr/local/mysql/include
|
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 = \
|
|
|
|
accounts.o \
|
|
|
|
app.o \
|
|
|
|
client_state.o \
|
|
|
|
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 \
|
|
|
|
parse.o \
|
|
|
|
prefs.o \
|
|
|
|
scheduler_reply.o \
|
|
|
|
time_stats.o \
|
|
|
|
types.o \
|
|
|
|
util.o \
|
|
|
|
../lib/md5_file.o \
|
|
|
|
../lib/md5.o
|
|
|
|
|
|
|
|
TEST_NET_XFER_OBJS = \
|
|
|
|
filesys.o \
|
|
|
|
http.o \
|
|
|
|
log_flags.o \
|
|
|
|
parse.o \
|
|
|
|
net_xfer.o
|
|
|
|
|
|
|
|
TEST_HTTP_OBJS = $(TEST_NET_XFER_OBJS)
|
|
|
|
|
|
|
|
TEST_FX_OBJS = \
|
|
|
|
$(TEST_HTTP_OBJS) \
|
|
|
|
util.o \
|
|
|
|
file_xfer.o
|
|
|
|
|
|
|
|
.C.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
|
|
|
|
$(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:
|
|
|
|
tar cf boinc_client.tar *.C *.h Makefile.in
|
|
|
|
|
|
|
|
clean:
|
2002-05-17 22:33:57 +00:00
|
|
|
rm -f *.o $(PROGS) core dependencies Makefile config.cache
|
2002-04-30 22:22:54 +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
|