2004-06-18 09:05:15 +00:00
|
|
|
## -*- mode: make; tab-width: 4 -*-
|
2003-06-06 19:00:42 +00:00
|
|
|
## $Id$
|
|
|
|
|
|
|
|
include $(top_srcdir)/Makefile.incl
|
|
|
|
|
2003-06-12 07:07:07 +00:00
|
|
|
# by default, "-static -static-libgcc" on linux.
|
2004-03-14 15:29:22 +00:00
|
|
|
#STATIC_FLAGS=@STATIC_FLAGS@
|
2003-06-12 07:07:07 +00:00
|
|
|
|
2003-06-06 19:00:42 +00:00
|
|
|
bin_PROGRAMS = boinc_client
|
|
|
|
|
2003-10-19 19:03:49 +00:00
|
|
|
EXTRA_PROGRAMS = cpu_benchmark
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2004-06-18 09:05:15 +00:00
|
|
|
boinc_client_SOURCES = \
|
|
|
|
app.C \
|
|
|
|
check_state.C \
|
|
|
|
client_msgs.C \
|
|
|
|
client_state.C \
|
|
|
|
client_types.C \
|
|
|
|
cs_account.C \
|
|
|
|
cs_apps.C \
|
|
|
|
cs_benchmark.C \
|
|
|
|
cs_cmdline.C \
|
|
|
|
cs_files.C \
|
|
|
|
cs_prefs.C \
|
|
|
|
cs_scheduler.C \
|
|
|
|
cs_statefile.C \
|
|
|
|
cs_trickle.C \
|
|
|
|
dhrystone.C \
|
|
|
|
file_names.C \
|
|
|
|
file_xfer.C \
|
|
|
|
gui_rpc_server.C \
|
|
|
|
hostinfo_network.C \
|
|
|
|
hostinfo_unix.C \
|
|
|
|
http.C \
|
|
|
|
log_flags.C \
|
|
|
|
main.C \
|
|
|
|
net_stats.C \
|
|
|
|
net_xfer.C \
|
|
|
|
pers_file_xfer.C \
|
|
|
|
prefs.C \
|
|
|
|
proxy.C \
|
|
|
|
scheduler_op.C \
|
|
|
|
ss_logic.C \
|
|
|
|
time_stats.C \
|
|
|
|
whetstone.C \
|
|
|
|
../lib/app_ipc.C \
|
|
|
|
../lib/base64.C \
|
|
|
|
../lib/crypt.C \
|
|
|
|
../lib/diagnostics.C \
|
|
|
|
../lib/exception.C \
|
|
|
|
../lib/filesys.C \
|
|
|
|
../lib/hostinfo.C \
|
|
|
|
../lib/language.C \
|
|
|
|
../lib/md5_file.C \
|
|
|
|
../lib/md5.c \
|
|
|
|
../lib/mfile.C \
|
|
|
|
../lib/miofile.C \
|
|
|
|
../lib/msg_log.C \
|
|
|
|
../lib/parse.C \
|
|
|
|
../lib/shmem.C \
|
2004-03-21 00:10:15 +00:00
|
|
|
../lib/util.C
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2003-06-08 00:49:48 +00:00
|
|
|
boinc_client_DEPENDENCIES = $(LIBRSA)
|
2004-06-17 05:08:31 +00:00
|
|
|
boinc_client_CPPFLAGS = -I $(srcdir)/win $(AM_CPPFLAGS) -O3
|
2004-03-24 23:33:46 +00:00
|
|
|
boinc_client_LDADD = $(RSA_LIBS)
|
2004-03-14 15:29:22 +00:00
|
|
|
#boinc_client_LDFLAGS = $(STATIC_FLAGS)
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2004-05-25 19:43:10 +00:00
|
|
|
# the following don't do anything
|
2004-06-17 05:08:31 +00:00
|
|
|
cpu_benchmark_SOURCES = whetstone.C dhrystone.C
|
|
|
|
cpu_benchmark_CFLAGS = -O3 $(AM_CFLAGS)
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2003-06-12 07:07:10 +00:00
|
|
|
all-local: client-bin-gz
|
|
|
|
client-bin: @CLIENT_BIN_FILENAME@.gz
|
|
|
|
client-bin-gz: @CLIENT_BIN_FILENAME@.gz
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2003-06-12 07:07:11 +00:00
|
|
|
win/win_config.h: $(top_srcdir)/config.h
|
|
|
|
grep '#define.*VERSION' $^ > $@
|
|
|
|
|
2004-04-28 18:16:40 +00:00
|
|
|
version: win/win_config.h
|
2003-07-30 21:38:59 +00:00
|
|
|
|
2003-06-06 19:00:42 +00:00
|
|
|
# make a hard link to the client name.
|
|
|
|
@CLIENT_BIN_FILENAME@: boinc_client
|
2003-06-14 22:04:20 +00:00
|
|
|
rm -f $@
|
2004-03-17 09:55:51 +00:00
|
|
|
ln $? $@
|
2003-06-12 07:07:10 +00:00
|
|
|
|
|
|
|
@CLIENT_BIN_FILENAME@.gz: @CLIENT_BIN_FILENAME@
|
2004-03-17 09:55:51 +00:00
|
|
|
gzip -c $? > $@
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2003-06-06 20:55:08 +00:00
|
|
|
## these source files need to be specified because no rule on unix uses them.
|
2004-06-18 09:05:15 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
*.h \
|
|
|
|
mac/*.h mac/*.cpp \
|
|
|
|
win/*.h win/*.cpp win/*.rc \
|
|
|
|
win/*.def win/res/*.* \
|
2004-05-05 21:19:45 +00:00
|
|
|
translation/*/*
|
2003-06-06 19:00:42 +00:00
|
|
|
|
|
|
|
clean-local:
|
2003-06-12 07:07:12 +00:00
|
|
|
rm -f @CLIENT_BIN_FILENAME@ @CLIENT_BIN_FILENAME@.gz
|
2003-07-30 21:38:59 +00:00
|
|
|
|
|
|
|
.PHONY: version
|