2020-09-14 07:24:31 +00:00
|
|
|
# Makefile for building boinc client and boinccmd on Linux
|
|
|
|
#
|
|
|
|
# to build:
|
|
|
|
# 1) in boinc/, do _autosetup and configure (to generate config.h)
|
|
|
|
# 2) in ../lib:
|
|
|
|
# make -f Makefile.linux clean all
|
|
|
|
# 3) do the same in this dir
|
2006-07-12 23:18:57 +00:00
|
|
|
|
2020-09-14 07:24:31 +00:00
|
|
|
CC = g++ -I ../ -I ../lib/
|
|
|
|
|
|
|
|
PROGS = boinc boinccmd
|
2006-07-12 23:18:57 +00:00
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
2020-09-14 07:24:31 +00:00
|
|
|
BOINC_OBJ = \
|
2006-07-12 23:18:57 +00:00
|
|
|
acct_mgr.o \
|
|
|
|
acct_setup.o \
|
|
|
|
app.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
app_config.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
app_control.o \
|
|
|
|
app_start.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
async_file.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
check_state.o \
|
|
|
|
client_msgs.o \
|
|
|
|
client_state.o \
|
|
|
|
client_types.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
coproc_sched.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
cpu_sched.o \
|
|
|
|
cs_account.o \
|
|
|
|
cs_apps.o \
|
|
|
|
cs_benchmark.o \
|
|
|
|
cs_cmdline.o \
|
|
|
|
cs_files.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
cs_notice.o \
|
|
|
|
cs_platforms.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
cs_prefs.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
cs_proxy.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
cs_scheduler.o \
|
|
|
|
cs_statefile.o \
|
|
|
|
cs_trickle.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
current_version.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
dhrystone.o \
|
|
|
|
dhrystone2.o \
|
|
|
|
file_names.o \
|
|
|
|
file_xfer.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
gpu_amd.o \
|
|
|
|
gpu_detect.o \
|
|
|
|
gpu_intel.o \
|
|
|
|
gpu_nvidia.o \
|
|
|
|
gpu_opencl.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
gui_http.o \
|
|
|
|
gui_rpc_server.o \
|
|
|
|
gui_rpc_server_ops.o \
|
2018-05-27 17:06:16 +00:00
|
|
|
hostinfo_linux.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
hostinfo_unix.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
hostinfo_network.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
http_curl.o \
|
|
|
|
log_flags.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
mac_address.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
main.o \
|
|
|
|
net_stats.o \
|
|
|
|
pers_file_xfer.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
project.o \
|
|
|
|
project_list.o \
|
|
|
|
result.o \
|
|
|
|
rr_sim.o \
|
|
|
|
sandbox.o \
|
2006-07-12 23:18:57 +00:00
|
|
|
scheduler_op.o \
|
2020-09-14 07:24:31 +00:00
|
|
|
thread.o \
|
|
|
|
time_stats.o \
|
|
|
|
whetstone.o \
|
|
|
|
work_fetch.o
|
|
|
|
|
|
|
|
SRC = \
|
|
|
|
acct_mgr.cpp \
|
|
|
|
acct_setup.cpp \
|
|
|
|
app.cpp \
|
|
|
|
app_config.cpp \
|
|
|
|
app_control.cpp \
|
|
|
|
app_start.cpp \
|
|
|
|
async_file.cpp \
|
|
|
|
check_state.cpp \
|
|
|
|
client_msgs.cpp \
|
|
|
|
client_state.cpp \
|
|
|
|
client_types.cpp \
|
|
|
|
coproc_sched.cpp \
|
|
|
|
cpu_sched.cpp \
|
|
|
|
cs_account.cpp \
|
|
|
|
cs_apps.cpp \
|
|
|
|
cs_benchmark.cpp \
|
|
|
|
cs_cmdline.cpp \
|
|
|
|
cs_files.cpp \
|
|
|
|
cs_notice.cpp \
|
|
|
|
cs_platforms.cpp \
|
|
|
|
cs_prefs.cpp \
|
|
|
|
cs_proxy.cpp \
|
|
|
|
cs_scheduler.cpp \
|
|
|
|
cs_statefile.cpp \
|
|
|
|
cs_trickle.cpp \
|
|
|
|
current_version.cpp \
|
|
|
|
dhrystone.cpp \
|
|
|
|
dhrystone2.cpp \
|
|
|
|
file_names.cpp \
|
|
|
|
file_xfer.cpp \
|
|
|
|
gpu_amd.cpp \
|
|
|
|
gpu_detect.cpp \
|
|
|
|
gpu_intel.cpp \
|
|
|
|
gpu_nvidia.cpp \
|
|
|
|
gpu_opencl.cpp \
|
|
|
|
gui_http.cpp \
|
|
|
|
gui_rpc_server.cpp \
|
|
|
|
gui_rpc_server_ops.cpp \
|
|
|
|
hostinfo_linux.cpp \
|
|
|
|
hostinfo_unix.cpp \
|
|
|
|
hostinfo_network.cpp \
|
|
|
|
http_curl.cpp \
|
|
|
|
log_flags.cpp \
|
|
|
|
mac_address.cpp \
|
|
|
|
main.cpp \
|
|
|
|
net_stats.cpp \
|
|
|
|
pers_file_xfer.cpp \
|
|
|
|
project.cpp \
|
|
|
|
project_list.cpp \
|
|
|
|
result.cpp \
|
|
|
|
rr_sim.cpp \
|
|
|
|
sandbox.cpp \
|
|
|
|
scheduler_op.cpp \
|
|
|
|
thread.cpp \
|
|
|
|
time_stats.cpp \
|
|
|
|
whetstone.cpp \
|
|
|
|
work_fetch.cpp
|
2006-07-12 23:18:57 +00:00
|
|
|
|
2006-07-13 04:01:04 +00:00
|
|
|
clean:
|
2020-09-14 07:24:31 +00:00
|
|
|
rm -f $(PROGS) $(BOINC_OBJ) dependencies
|
2006-07-13 04:01:04 +00:00
|
|
|
|
2020-09-14 07:24:31 +00:00
|
|
|
LIBS = ../lib/lib.a \
|
2006-07-12 23:18:57 +00:00
|
|
|
-lpthread \
|
2020-09-14 07:24:31 +00:00
|
|
|
-lssl -lcrypto \
|
|
|
|
-L /usr/local/lib/ -lcurl -lz -ldl
|
2006-07-12 23:18:57 +00:00
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
.cpp.o:
|
2006-07-12 23:18:57 +00:00
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
|
2020-09-14 07:24:31 +00:00
|
|
|
boinc: $(BOINC_OBJ)
|
|
|
|
$(CC) $(BOINC_OBJ) $(LIBS) -o boinc
|
|
|
|
|
|
|
|
boinccmd: boinc_cmd.o
|
|
|
|
$(CC) boinc_cmd.o ../lib/boinc_cmd.a -o boinccmd
|
2006-07-12 23:18:57 +00:00
|
|
|
|
2020-09-14 07:24:31 +00:00
|
|
|
dependencies: $(SRC)
|
|
|
|
$(CC) -M $(SRC) > dependencies
|
2006-07-12 23:18:57 +00:00
|
|
|
|
|
|
|
include dependencies
|