-
Notifications
You must be signed in to change notification settings - Fork 460
/
Copy pathMakefile.am
221 lines (192 loc) · 4.81 KB
/
Makefile.am
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
## -*- mode: makefile; tab-width: 4 -*-
## $Id$
include $(top_srcdir)/Makefile.incl
bin_PROGRAMS =
# Stuff needed for server builds goes here.
if ENABLE_SERVER
bin_PROGRAMS += crypt_prog
endif
# end of "if ENABLE_SERVER"
if ENABLE_LIBRARIES
libfcgi_sources = \
boinc_fcgi.cpp \
coproc.cpp \
filesys.cpp \
hostinfo.cpp \
md5.c \
md5_file.cpp \
miofile.cpp \
msg_log.cpp \
parse.cpp \
shmem.cpp \
str_util.cpp \
synch.cpp \
url.cpp \
util.cpp
generic_sources = \
app_ipc.cpp \
base64.cpp \
cc_config.cpp \
cert_sig.cpp \
coproc.cpp \
diagnostics.cpp \
filesys.cpp \
gui_rpc_client.cpp \
gui_rpc_client_ops.cpp \
gui_rpc_client_print.cpp \
hostinfo.cpp \
mac_address.cpp \
md5.c \
md5_file.cpp \
mem_usage.cpp \
mfile.cpp \
miofile.cpp \
msg_log.cpp \
network.cpp \
notice.cpp \
parse.cpp \
prefs.cpp \
procinfo.cpp \
procinfo_unix.cpp \
proxy_info.cpp \
shmem.cpp \
str_util.cpp \
synch.cpp \
unix_util.cpp \
url.cpp \
util.cpp
if OS_DARWIN
mac_sources = \
mac/mac_backtrace.cpp \
mac/QBacktrace.c \
mac/QCrashReport.c \
mac/QMachOImage.c \
mac/QMachOImageList.c \
mac/QSymbols.c \
mac/QTaskMemory.c
mac_headers = \
mac/dyld_gdb.h \
mac/mac_backtrace.h \
mac/QBacktrace.h \
mac/QCrashReport.h \
mac/QMachOImage.h \
mac/QMachOImageList.h \
mac/QSymbols.h \
mac/QTaskMemory.h
else
mac_sources =
mac_headers =
endif
if INSTALL_HEADERS
pkginclude_HEADERS = \
app_ipc.h \
average.h \
base64.h \
boinc_fcgi.h \
boinc_win.h \
cal_boinc.h \
cc_config.h \
cert_sig.h \
cl_boinc.h \
common_defs.h \
coproc.h \
crypt.h \
diagnostics.h \
diagnostics_win.h \
error_numbers.h \
filesys.h \
gui_rpc_client.h \
hostinfo.h \
mac_address.h \
md5.h \
md5_file.h \
mem_usage.h \
mfile.h \
miofile.h \
msg_log.h \
network.h \
notice.h \
parse.h \
prefs.h \
procinfo.h \
proxy_info.h \
stackwalker_imports.h \
stackwalker_win.h \
str_util.h \
url.h \
util.h \
win_util.h \
$(mac_headers)
endif
# These are used internally and are not meant to be installed
noinst_HEADERS = \
msg_queue.h \
proc_control.h \
procinfo.h \
shmem.h \
str_replace.h \
synch.h \
unix_util.h
lib_LTLIBRARIES = libboinc.la libboinc_crypt.la
libboinc_la_SOURCES = $(generic_sources) $(mac_sources)
libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
libboinc_la_LIBADD =
libboinc_crypt_la_SOURCES = crypt.cpp
libboinc_crypt_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_crypt_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_crypt_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
libboinc_crypt_la_LIBADD =
if ENABLE_FCGI
lib_LTLIBRARIES += libboinc_fcgi.la
libboinc_fcgi_la_SOURCES = $(libfcgi_sources) $(mac_sources)
libboinc_fcgi_la_CFLAGS = -D_USING_FCGI_ $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_fcgi_la_CXXFLAGS = -D_USING_FCGI_ $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
libboinc_fcgi_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
libboinc_fcgi_la_LIBADD =
endif
# end of "if ENABLE_FCGI"
# Some OSs may not prefix libraries with lib.
# For example OS2
if OS_OS2
LIBBOINC_STATIC=boinc.${LIBEXT}
LIBBOINC_CRYPT_STATIC=boinc_crypt.${LIBEXT}
LIBBOINC_FCGI_STATIC=boinc_fcgi.${LIBEXT}
else
LIBBOINC_STATIC=libboinc.${LIBEXT}
LIBBOINC_CRYPT_STATIC=libboinc_crypt.${LIBEXT}
LIBBOINC_FCGI_STATIC=libboinc_fcgi.${LIBEXT}
endif
if BUILD_STATIC_LIBS
all_local = $(LIBBOINC_STATIC) $(LIBBOINC_CRTYPT_STATIC)
if ENABLE_FCGI
all_local += $(LIBBOINC_FCGI_STATIC)
endif
endif
all-local: $(all_local)
$(LIBBOINC_STATIC): libboinc.la
rm -f $(LIBBOINC_STATIC)
$(LN) .libs/$(LIBBOINC_STATIC) .
$(LIBBOINC_CRYPT_STATIC): libboinc_crypt.la
rm -f $(LIBBOINC_CRYPT_STATIC)
$(LN) .libs/$(LIBBOINC_CRYPT_STATIC) .
$(LIBBOINC_FCGI_STATIC): libboinc_fcgi.la
rm -f $(LIBBOINC_FCGI_STATIC)
$(LN) .libs/$(LIBBOINC_FCGI_STATIC) .
endif
# end of "if ENABLE_LIBRARIES"
EXTRA_PROGRAMS = md5_test shmem_test msg_test
EXTRA_DIST = *.h *.cpp
md5_test_SOURCES = md5_test.cpp
md5_test_CXXFLAGS = $(PTHREAD_CFLAGS)
md5_test_LDADD = $(LIBBOINC)
shmem_test_SOURCES = shmem_test.cpp
shmem_test_CXXFLAGS = $(PTHREAD_CFLAGS)
shmem_test_LDADD = $(LIBBOINC)
msg_test_SOURCES = msg_test.cpp
msg_test_CXXFLAGS = $(PTHREAD_CFLAGS)
msg_test_LDADD = $(LIBBOINC)
crypt_prog_SOURCES = crypt_prog.cpp
crypt_prog_CXXFLAGS = $(PTHREAD_CFLAGS)
crypt_prog_LDADD = $(LIBBOINC_CRYPT_STATIC) $(LIBBOINC) $(SSL_LIBS)