1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
|
# 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
//CC = g++ -O4 -Wall -I ../ -I ../lib/
CC = g++ -g -Wall -I ../ -I ../lib/
PROGS = boinc boinccmd
all: $(PROGS)
BOINC_OBJ = \
acct_mgr.o \
acct_setup.o \
app.o \
app_config.o \
app_control.o \
app_start.o \
app_test.o \
async_file.o \
check_state.o \
client_msgs.o \
client_state.o \
client_types.o \
coproc_sched.o \
cpu_sched.o \
cs_account.o \
cs_apps.o \
cs_benchmark.o \
cs_cmdline.o \
cs_files.o \
cs_notice.o \
cs_platforms.o \
cs_prefs.o \
cs_proxy.o \
cs_scheduler.o \
cs_sporadic.o \
cs_statefile.o \
cs_trickle.o \
current_version.o \
dhrystone.o \
dhrystone2.o \
file_names.o \
file_xfer.o \
gpu_amd.o \
gpu_detect.o \
gpu_intel.o \
gpu_nvidia.o \
gpu_opencl.o \
gui_http.o \
gui_rpc_server.o \
gui_rpc_server_ops.o \
hostinfo_linux.o \
hostinfo_unix.o \
hostinfo_network.o \
http_curl.o \
log_flags.o \
mac_address.o \
main.o \
net_stats.o \
pers_file_xfer.o \
project.o \
project_list.o \
result.o \
rr_sim.o \
sandbox.o \
scheduler_op.o \
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_sporadic.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
clean:
rm -f $(PROGS) $(BOINC_OBJ) dependencies
LIBS = ../lib/boinc.a \
-L /usr/local/lib/ \
-lpthread \
-lX11 -lXss \
-lcurl -lssl -lcrypto \
-lz -ldl
.cpp.o:
$(CC) -c -o $*.o $<
boinc: $(BOINC_OBJ)
$(CC) $(BOINC_OBJ) $(LIBS) -o boinc
boinccmd: boinc_cmd.o
$(CC) boinc_cmd.o ../lib/boinc_cmd.a -o boinccmd
dependencies: $(SRC)
$(CC) -M $(SRC) > dependencies
include dependencies
|