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
|
|
|
|
|
2014-05-01 17:39:38 +00:00
|
|
|
bin_PROGRAMS = boinc_client boinccmd
|
|
|
|
if !OS_WIN32
|
|
|
|
bin_PROGRAMS += switcher
|
|
|
|
endif
|
2009-01-13 23:06:02 +00:00
|
|
|
|
|
|
|
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)
|
2014-05-01 17:39:38 +00:00
|
|
|
boinccmd_LDFLAGS = $(AM_LDFLAGS) -L$(top_srcdir)/lib
|
2013-10-21 18:48:56 +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 \
|
2012-11-28 20:26:49 +00:00
|
|
|
app_config.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
app_control.cpp \
|
|
|
|
app_start.cpp \
|
2014-05-01 17:39:38 +00:00
|
|
|
async_file.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
check_state.cpp \
|
|
|
|
client_msgs.cpp \
|
|
|
|
client_state.cpp \
|
|
|
|
client_types.cpp \
|
2014-05-02 06:53:55 +00:00
|
|
|
coproc_sched.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 \
|
2014-05-01 17:39:38 +00:00
|
|
|
current_version.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
dhrystone.cpp \
|
|
|
|
dhrystone2.cpp \
|
|
|
|
file_names.cpp \
|
|
|
|
file_xfer.cpp \
|
2014-05-01 17:39:38 +00:00
|
|
|
gpu_amd.cpp \
|
|
|
|
gpu_detect.cpp \
|
|
|
|
gpu_intel.cpp \
|
|
|
|
gpu_nvidia.cpp \
|
|
|
|
gpu_opencl.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
gui_http.cpp \
|
|
|
|
gui_rpc_server.cpp \
|
|
|
|
gui_rpc_server_ops.cpp \
|
|
|
|
hostinfo_network.cpp \
|
|
|
|
http_curl.cpp \
|
|
|
|
log_flags.cpp \
|
2014-05-01 17:39:38 +00:00
|
|
|
mac_address.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
main.cpp \
|
|
|
|
net_stats.cpp \
|
|
|
|
pers_file_xfer.cpp \
|
2014-05-01 17:39:38 +00:00
|
|
|
project.cpp \
|
|
|
|
result.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 \
|
2014-05-01 17:39:38 +00:00
|
|
|
thread.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
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)
|
2013-01-28 21:33:18 +00:00
|
|
|
boinc_client_CXXFLAGS = $(AM_CXXFLAGS) $(SSL_CXXFLAGS)
|
2014-05-01 17:39:38 +00:00
|
|
|
boinc_client_LDFLAGS = $(AM_LDFLAGS) $(SSL_LDFLAGS) -L$(top_srcdir)/lib
|
|
|
|
if OS_WIN32
|
|
|
|
boinc_client_CXXFLAGS += -I$(top_srcdir)/coprocs/NVIDIA/include
|
|
|
|
boinc_client_SOURCES += hostinfo_win.cpp \
|
|
|
|
sysmon_win.cpp \
|
|
|
|
win/boinc_cli.rc \
|
|
|
|
win/res/boinc.ico
|
|
|
|
else
|
2011-09-27 19:45:27 +00:00
|
|
|
if OS_DARWIN
|
|
|
|
boinc_client_LDFLAGS += -Wl,-flat_namespace,-undefined,dynamic_lookup
|
2014-05-01 17:39:38 +00:00
|
|
|
else
|
|
|
|
boinc_client_SOURCES += hostinfo_unix.cpp
|
|
|
|
endif
|
2011-09-27 19:45:27 +00:00
|
|
|
endif
|
2013-10-21 18:48:56 +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)
|
|
|
|
|
2013-08-28 04:08:02 +00:00
|
|
|
if OS_ARM_LINUX
|
|
|
|
boinc_client_LDADD += libwhetneon.a libwhetvfp.a
|
|
|
|
noinst_LIBRARIES = libwhetneon.a libwhetvfp.a
|
2013-08-28 04:25:04 +00:00
|
|
|
libwhetneon_a_SOURCES = whetstone.cpp
|
2013-08-28 04:08:02 +00:00
|
|
|
libwhetneon_a_CXXFLAGS = $(boinc_client_CXXFLAGS) -DANDROID_NEON -mfloat-abi=softfp -mfpu=neon
|
|
|
|
|
2013-08-28 04:25:04 +00:00
|
|
|
libwhetvfp_a_SOURCES = whetstone.cpp
|
2013-08-28 04:08:02 +00:00
|
|
|
libwhetvfp_a_CXXFLAGS = $(boinc_client_CXXFLAGS) -DANDROID_VFP -mfloat-abi=softfp -mfpu=vfp
|
|
|
|
endif
|
|
|
|
|
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...
|
2014-06-20 14:48:31 +00:00
|
|
|
all-local: boinc$(EXEEXT)
|
2004-11-26 17:45:13 +00:00
|
|
|
|
2014-06-20 14:48:31 +00:00
|
|
|
boinc$(EXEEXT): boinc_client$(EXEEXT)
|
|
|
|
rm -f boinc$(EXEEXT) .libs/boinc$(EXEEXT)
|
|
|
|
$(LN) boinc_client$(EXEEXT) boinc$(EXEEXT)
|
|
|
|
if test -f .libs/boinc_client$(EXEEXT) ; then $(LN) .libs/boinc_client$(EXEEXT) .libs/boinc$(EXEEXT) ; fi
|
2009-01-13 23:06:02 +00:00
|
|
|
|
|
|
|
install-exec-hook:
|
2014-06-20 14:48:31 +00:00
|
|
|
rm -f $(DESTDIR)$(exec_prefix)/bin/boinc$(EXEEXT)
|
|
|
|
$(LN) $(DESTDIR)$(exec_prefix)/bin/boinc_client$(EXEEXT) $(DESTDIR)$(exec_prefix)/bin/boinc$(EXEEXT)
|
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
|