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
|
2011-09-27 19:45:27 +00:00
|
|
|
LIBS += -framework IOKit -framework Foundation -framework ScreenSaver -framework Cocoa -framework CoreServices
|
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
|
2011-09-27 19:45:27 +00:00
|
|
|
boinccmd_DEPENDENCIES = $(LIBBOINC)
|
2009-01-13 23:06:02 +00:00
|
|
|
boinccmd_CPPFLAGS = $(AM_CPPFLAGS)
|
2011-09-27 19:45:27 +00:00
|
|
|
boinccmd_LDFLAGS = $(AM_LDFLAGS) -L../lib
|
2009-01-13 23:06:02 +00:00
|
|
|
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_start.cpp \
|
|
|
|
check_state.cpp \
|
|
|
|
client_msgs.cpp \
|
|
|
|
client_state.cpp \
|
|
|
|
client_types.cpp \
|
2009-12-07 00:42:03 +00:00
|
|
|
coproc_detect.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
cpu_sched.cpp \
|
|
|
|
cs_account.cpp \
|
|
|
|
cs_apps.cpp \
|
|
|
|
cs_benchmark.cpp \
|
|
|
|
cs_cmdline.cpp \
|
|
|
|
cs_files.cpp \
|
2009-12-18 21:52:08 +00:00
|
|
|
cs_notice.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
cs_platforms.cpp \
|
|
|
|
cs_prefs.cpp \
|
2009-12-05 00:51:05 +00:00
|
|
|
cs_proxy.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
cs_scheduler.cpp \
|
|
|
|
cs_statefile.cpp \
|
|
|
|
cs_trickle.cpp \
|
2010-10-18 20:31:27 +00:00
|
|
|
current_version.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
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)
|
2011-09-27 19:45:27 +00:00
|
|
|
boinc_client_LDFLAGS = $(AM_LDFLAGS) -L../lib
|
|
|
|
if OS_DARWIN
|
|
|
|
boinc_client_LDFLAGS += -Wl,-flat_namespace,-undefined,dynamic_lookup
|
|
|
|
endif
|
|
|
|
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
|
2011-09-27 19:45:27 +00:00
|
|
|
switcher_LDFLAGS = $(AM_LDFLAGS) -L../lib
|
2010-01-12 21:53:40 +00:00
|
|
|
switcher_LDADD = $(LIBBOINC)
|
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
|