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
|
|
|
if ENABLE_CLIENT_RELEASE
|
|
|
|
AM_LDFLAGS += -static-libtool-libs
|
2009-01-16 00:24:44 +00:00
|
|
|
## for an entirely statically linked library, you may want to try
|
|
|
|
## -all-static instead. There's a good chance it won't work properly,
|
|
|
|
## so we'll use the safer "-static-libtool-libs" by default.
|
|
|
|
else
|
|
|
|
if DYNAMIC_CLIENT
|
|
|
|
## if libtool starts to need flags for dynamic linking, add them here
|
|
|
|
else
|
|
|
|
AM_LDFLAGS += -static
|
2009-01-13 23:06:02 +00:00
|
|
|
endif
|
2009-01-16 00:24:44 +00:00
|
|
|
endif ## ENABLE_CLIENT_RELEASE
|
2004-11-26 17:45:13 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
LIBS += $(CLIENTLIBS)
|
2005-01-20 10:21:26 +00:00
|
|
|
|
2005-08-13 22:17:35 +00:00
|
|
|
if OS_DARWIN
|
2005-08-14 17:04:45 +00:00
|
|
|
LIBS += -framework IOKit -framework Foundation -framework ScreenSaver -framework Cocoa
|
2005-08-13 22:17:35 +00:00
|
|
|
endif
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
bin_PROGRAMS = boinc_client switcher boinccmd
|
|
|
|
|
|
|
|
boinccmd_SOURCES = boinc_cmd.cpp
|
2009-07-14 17:50:33 +00:00
|
|
|
boinccmd_DEPENDENCIES = $(LIBBOINC)
|
2009-01-13 23:06:02 +00:00
|
|
|
boinccmd_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
boinccmd_LDFLAGS = $(AM_LDFLAGS) -L../lib
|
|
|
|
boinccmd_LDADD = $(LIBBOINC) $(BOINC_EXTRA_LIBS) $(PTHREAD_LIBS)
|
2007-01-15 20:15:33 +00:00
|
|
|
|
2004-08-11 11:30:25 +00:00
|
|
|
boinc_client_SOURCES = \
|
2008-09-26 18:20:24 +00:00
|
|
|
acct_mgr.cpp \
|
|
|
|
acct_setup.cpp \
|
|
|
|
app.cpp \
|
|
|
|
app_control.cpp \
|
|
|
|
app_graphics.cpp \
|
|
|
|
app_start.cpp \
|
|
|
|
auto_update.cpp \
|
|
|
|
check_state.cpp \
|
|
|
|
client_msgs.cpp \
|
|
|
|
client_state.cpp \
|
|
|
|
client_types.cpp \
|
|
|
|
cpu_sched.cpp \
|
|
|
|
cs_account.cpp \
|
|
|
|
cs_apps.cpp \
|
|
|
|
cs_benchmark.cpp \
|
|
|
|
cs_cmdline.cpp \
|
|
|
|
cs_files.cpp \
|
|
|
|
cs_platforms.cpp \
|
|
|
|
cs_prefs.cpp \
|
|
|
|
cs_scheduler.cpp \
|
|
|
|
cs_statefile.cpp \
|
|
|
|
cs_trickle.cpp \
|
|
|
|
dhrystone.cpp \
|
|
|
|
dhrystone2.cpp \
|
|
|
|
file_names.cpp \
|
|
|
|
file_xfer.cpp \
|
|
|
|
gui_http.cpp \
|
|
|
|
gui_rpc_server.cpp \
|
|
|
|
gui_rpc_server_ops.cpp \
|
|
|
|
hostinfo_network.cpp \
|
|
|
|
hostinfo_unix.cpp \
|
|
|
|
http_curl.cpp \
|
|
|
|
log_flags.cpp \
|
|
|
|
main.cpp \
|
|
|
|
net_stats.cpp \
|
|
|
|
pers_file_xfer.cpp \
|
2009-01-13 23:06:02 +00:00
|
|
|
rr_sim.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
sandbox.cpp \
|
|
|
|
scheduler_op.cpp \
|
|
|
|
time_stats.cpp \
|
|
|
|
whetstone.cpp \
|
|
|
|
work_fetch.cpp
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
boinc_client_DEPENDENCIES = $(LIBBOINC)
|
|
|
|
boinc_client_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
boinc_client_LDFLAGS = $(AM_LDFLAGS) -L../lib
|
2009-07-14 17:50:33 +00:00
|
|
|
boinc_client_LDADD = $(LIBBOINC) $(LIBBOINC_CRYPT) $(BOINC_EXTRA_LIBS) $(PTHREAD_LIBS)
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2007-05-28 16:27:21 +00:00
|
|
|
boinc_clientdir = $(bindir)
|
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
switcher_SOURCES = switcher.cpp
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
## since we are using libtool we need some magic to get boinc and boinc_client
|
|
|
|
## to both be installed properly. The next two rules do that...
|
|
|
|
all-local: boinc
|
2004-11-26 17:45:13 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
boinc: boinc_client
|
|
|
|
rm -f boinc .libs/boinc
|
2009-05-04 19:55:59 +00:00
|
|
|
$(LN) boinc_client boinc
|
|
|
|
if test -f .libs/boinc_client ; then $(LN) .libs/boinc_client .libs/boinc ; fi
|
2009-01-13 23:06:02 +00:00
|
|
|
|
|
|
|
install-exec-hook:
|
|
|
|
rm -f $(DESTDIR)$(exec_prefix)/bin/boinc
|
2009-05-04 19:55:59 +00:00
|
|
|
$(LN) $(DESTDIR)$(exec_prefix)/bin/boinc_client $(DESTDIR)$(exec_prefix)/bin/boinc
|
2003-06-12 07:07:10 +00:00
|
|
|
|
2004-11-27 09:57:38 +00:00
|
|
|
## these source files need to be specified because no rule uses them.
|
|
|
|
|
2005-04-11 07:06:52 +00:00
|
|
|
EXTRA_DIST = *.h \
|
|
|
|
mac \
|
|
|
|
translation \
|
2004-11-27 09:57:38 +00:00
|
|
|
win
|