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
|
|
|
bin_PROGRAMS =
|
2004-10-18 01:54:28 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
# Stuff needed for server builds goes here.
|
|
|
|
if ENABLE_SERVER
|
2004-10-18 01:54:28 +00:00
|
|
|
|
2013-05-20 22:19:13 +00:00
|
|
|
serverbindir = $(prefix)/lib/boinc-server-maker/lib
|
|
|
|
serverbin_PROGRAMS = crypt_prog parse_test
|
2005-08-04 23:35:37 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
endif
|
|
|
|
# end of "if ENABLE_SERVER"
|
2004-10-18 01:54:28 +00:00
|
|
|
|
2005-08-04 23:35:37 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if ENABLE_LIBRARIES
|
2005-09-29 21:02:27 +00:00
|
|
|
|
2009-02-03 21:22:50 +00:00
|
|
|
libfcgi_sources = \
|
|
|
|
boinc_fcgi.cpp \
|
|
|
|
coproc.cpp \
|
|
|
|
filesys.cpp \
|
|
|
|
hostinfo.cpp \
|
2017-07-16 02:05:23 +00:00
|
|
|
keyword.cpp \
|
2014-08-26 16:21:00 +00:00
|
|
|
md5.cpp \
|
2009-02-03 21:22:50 +00:00
|
|
|
md5_file.cpp \
|
2013-10-28 23:19:48 +00:00
|
|
|
mfile.cpp \
|
2009-02-03 21:22:50 +00:00
|
|
|
miofile.cpp \
|
|
|
|
msg_log.cpp \
|
2013-10-28 23:19:48 +00:00
|
|
|
opencl_boinc.cpp \
|
2009-02-03 21:22:50 +00:00
|
|
|
parse.cpp \
|
2016-09-01 14:36:56 +00:00
|
|
|
sched_msgs.cpp \
|
2009-02-03 21:22:50 +00:00
|
|
|
shmem.cpp \
|
|
|
|
str_util.cpp \
|
|
|
|
synch.cpp \
|
2013-05-30 16:44:58 +00:00
|
|
|
url.cpp \
|
2018-11-07 17:44:23 +00:00
|
|
|
util.cpp \
|
|
|
|
wslinfo.cpp
|
2009-02-03 21:22:50 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
generic_sources = \
|
2008-09-26 18:20:24 +00:00
|
|
|
app_ipc.cpp \
|
|
|
|
base64.cpp \
|
2013-05-30 16:44:58 +00:00
|
|
|
cc_config.cpp \
|
2009-01-13 23:06:02 +00:00
|
|
|
cert_sig.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
coproc.cpp \
|
|
|
|
diagnostics.cpp \
|
|
|
|
filesys.cpp \
|
|
|
|
gui_rpc_client.cpp \
|
|
|
|
gui_rpc_client_ops.cpp \
|
|
|
|
gui_rpc_client_print.cpp \
|
|
|
|
hostinfo.cpp \
|
2017-07-16 02:05:23 +00:00
|
|
|
keyword.cpp \
|
2014-08-26 16:21:00 +00:00
|
|
|
md5.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
md5_file.cpp \
|
|
|
|
mem_usage.cpp \
|
|
|
|
mfile.cpp \
|
|
|
|
miofile.cpp \
|
|
|
|
msg_log.cpp \
|
|
|
|
network.cpp \
|
2013-05-30 16:44:58 +00:00
|
|
|
notice.cpp \
|
2013-10-28 23:19:48 +00:00
|
|
|
opencl_boinc.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
parse.cpp \
|
|
|
|
prefs.cpp \
|
2013-05-30 16:44:58 +00:00
|
|
|
procinfo.cpp \
|
|
|
|
proc_control.cpp \
|
2016-02-09 12:55:22 +00:00
|
|
|
project_init.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
proxy_info.cpp \
|
2016-09-01 14:36:56 +00:00
|
|
|
sched_msgs.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
shmem.cpp \
|
|
|
|
str_util.cpp \
|
2013-05-30 16:44:58 +00:00
|
|
|
url.cpp \
|
2018-11-07 17:44:23 +00:00
|
|
|
util.cpp \
|
|
|
|
wslinfo.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
|
2016-09-01 14:36:56 +00:00
|
|
|
if OS_WIN32
|
2014-04-29 14:50:33 +00:00
|
|
|
win_sources = \
|
|
|
|
boinc_win.cpp \
|
|
|
|
daemonmgt_win.cpp \
|
|
|
|
diagnostics_win.cpp \
|
|
|
|
idlemon_win.cpp \
|
|
|
|
procinfo_win.cpp \
|
|
|
|
run_app_windows.cpp \
|
|
|
|
stackwalker_win.cpp \
|
2018-06-24 00:08:11 +00:00
|
|
|
win_util.cpp \
|
|
|
|
wslinfo.cpp
|
2014-04-29 14:50:33 +00:00
|
|
|
win_headers= \
|
|
|
|
boinc_win.h \
|
|
|
|
diagnostics_win.h \
|
|
|
|
run_app_windows.h \
|
|
|
|
stackwalker_win.h \
|
2018-06-24 00:08:11 +00:00
|
|
|
win_util.h \
|
|
|
|
wslinfo.h
|
2014-04-29 14:50:33 +00:00
|
|
|
else # !OS_WIN32
|
2009-01-13 23:06:02 +00:00
|
|
|
if OS_DARWIN
|
|
|
|
mac_sources = \
|
2011-09-01 09:02:54 +00:00
|
|
|
procinfo_mac.cpp \
|
2009-01-13 23:06:02 +00:00
|
|
|
mac/mac_backtrace.cpp \
|
2018-05-15 12:03:48 +00:00
|
|
|
mac/mac_spawn.cpp \
|
2009-01-13 23:06:02 +00:00
|
|
|
mac/QBacktrace.c \
|
|
|
|
mac/QCrashReport.c \
|
|
|
|
mac/QMachOImage.c \
|
|
|
|
mac/QMachOImageList.c \
|
|
|
|
mac/QSymbols.c \
|
2019-06-04 15:37:34 +00:00
|
|
|
mac/QTaskMemory.c \
|
|
|
|
mac/mac_branding.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
mac_headers = \
|
|
|
|
mac/dyld_gdb.h \
|
|
|
|
mac/mac_backtrace.h \
|
2018-05-15 12:03:48 +00:00
|
|
|
mac/mac_spawn.h \
|
2009-01-13 23:06:02 +00:00
|
|
|
mac/QBacktrace.h \
|
|
|
|
mac/QCrashReport.h \
|
|
|
|
mac/QMachOImage.h \
|
|
|
|
mac/QMachOImageList.h \
|
|
|
|
mac/QSymbols.h \
|
2019-06-04 15:37:34 +00:00
|
|
|
mac/QTaskMemory.h \
|
|
|
|
mac/mac_branding.h
|
2014-04-29 14:50:33 +00:00
|
|
|
win_sources=
|
|
|
|
win_headers=
|
|
|
|
else # !(OS_WIN32 || OS_MAC)
|
|
|
|
|
2014-05-02 17:32:42 +00:00
|
|
|
generic_sources += \
|
2014-04-29 14:50:33 +00:00
|
|
|
procinfo_unix.cpp \
|
|
|
|
synch.cpp \
|
|
|
|
unix_util.cpp
|
|
|
|
win_sources=
|
|
|
|
win_headers=
|
2016-09-01 14:36:56 +00:00
|
|
|
mac_sources=
|
2014-04-29 14:50:33 +00:00
|
|
|
mac_headers=
|
2011-09-01 09:02:54 +00:00
|
|
|
|
2014-04-29 14:50:33 +00:00
|
|
|
endif
|
2009-01-13 23:06:02 +00:00
|
|
|
endif
|
|
|
|
|
2022-06-08 21:15:58 +00:00
|
|
|
if BUILD_WITH_WASM
|
|
|
|
generic_sources += wasm.cpp
|
|
|
|
endif
|
2005-09-29 21:02:27 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if INSTALL_HEADERS
|
2008-05-28 01:38:39 +00:00
|
|
|
pkginclude_HEADERS = \
|
2006-08-31 21:16:36 +00:00
|
|
|
app_ipc.h \
|
2010-03-05 22:55:16 +00:00
|
|
|
average.h \
|
2009-02-26 00:23:23 +00:00
|
|
|
base64.h \
|
2008-09-09 19:10:42 +00:00
|
|
|
boinc_fcgi.h \
|
2010-07-22 20:08:33 +00:00
|
|
|
cal_boinc.h \
|
2013-05-30 16:44:58 +00:00
|
|
|
cc_config.h \
|
2009-02-26 00:23:23 +00:00
|
|
|
cert_sig.h \
|
2011-04-01 19:39:58 +00:00
|
|
|
cl_boinc.h \
|
2009-01-13 23:06:02 +00:00
|
|
|
common_defs.h \
|
2008-09-09 19:10:42 +00:00
|
|
|
coproc.h \
|
2006-08-31 21:16:36 +00:00
|
|
|
crypt.h \
|
|
|
|
diagnostics.h \
|
|
|
|
error_numbers.h \
|
|
|
|
filesys.h \
|
|
|
|
gui_rpc_client.h \
|
|
|
|
hostinfo.h \
|
2009-02-26 00:23:23 +00:00
|
|
|
md5.h \
|
|
|
|
md5_file.h \
|
|
|
|
mem_usage.h \
|
2006-08-31 21:16:36 +00:00
|
|
|
mfile.h \
|
|
|
|
miofile.h \
|
|
|
|
msg_log.h \
|
2009-02-26 00:23:23 +00:00
|
|
|
network.h \
|
2013-05-30 16:44:58 +00:00
|
|
|
notice.h \
|
2013-10-28 23:19:48 +00:00
|
|
|
opencl_boinc.h \
|
2006-08-31 21:16:36 +00:00
|
|
|
parse.h \
|
|
|
|
prefs.h \
|
2022-05-30 17:32:09 +00:00
|
|
|
proc_control.h \
|
2013-05-30 16:44:58 +00:00
|
|
|
procinfo.h \
|
2006-08-31 21:16:36 +00:00
|
|
|
proxy_info.h \
|
2016-09-01 14:36:56 +00:00
|
|
|
sched_msgs.h \
|
2009-02-26 00:23:23 +00:00
|
|
|
stackwalker_imports.h \
|
2022-05-30 17:32:09 +00:00
|
|
|
str_replace.h \
|
2007-02-21 16:26:51 +00:00
|
|
|
str_util.h \
|
2013-05-30 16:44:58 +00:00
|
|
|
url.h \
|
2009-01-13 23:06:02 +00:00
|
|
|
util.h \
|
2014-04-29 14:50:33 +00:00
|
|
|
$(mac_headers) \
|
|
|
|
$(win_headers)
|
2009-01-13 23:06:02 +00:00
|
|
|
endif
|
|
|
|
|
2009-06-22 21:11:19 +00:00
|
|
|
# These are used internally and are not meant to be installed
|
|
|
|
noinst_HEADERS = \
|
|
|
|
msg_queue.h \
|
|
|
|
shmem.h \
|
|
|
|
synch.h \
|
|
|
|
unix_util.h
|
|
|
|
|
2015-01-19 21:50:27 +00:00
|
|
|
lib_LTLIBRARIES = libboinc.la
|
2021-11-09 19:15:56 +00:00
|
|
|
pkgconfig_DATA = libboinc.pc
|
2014-04-29 14:50:33 +00:00
|
|
|
libboinc_la_SOURCES = $(generic_sources) $(mac_sources) $(win_sources)
|
2009-01-13 23:06:02 +00:00
|
|
|
libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
|
|
|
|
libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
|
2017-02-27 20:59:27 +00:00
|
|
|
libboinc_la_LDFLAGS = -static -version-number $(LIBBOINC_VERSION)
|
2019-06-04 17:33:19 +00:00
|
|
|
if OS_FREEBSD
|
|
|
|
libboinc_la_LDFLAGS += -lexecinfo
|
|
|
|
endif
|
2013-06-05 22:22:39 +00:00
|
|
|
libboinc_la_LIBADD =
|
2009-07-14 17:50:33 +00:00
|
|
|
|
2015-01-19 21:50:27 +00:00
|
|
|
if ENABLE_BOINCCRYPT
|
|
|
|
lib_LTLIBRARIES += libboinc_crypt.la
|
2021-11-09 19:16:35 +00:00
|
|
|
pkgconfig_DATA += libboinc_crypt.pc
|
2009-07-14 17:50:33 +00:00
|
|
|
libboinc_crypt_la_SOURCES = crypt.cpp
|
2013-01-28 21:33:18 +00:00
|
|
|
libboinc_crypt_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CFLAGS)
|
|
|
|
libboinc_crypt_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CXXFLAGS)
|
2017-02-27 20:59:27 +00:00
|
|
|
libboinc_crypt_la_LDFLAGS = -static -version-number $(LIBBOINC_VERSION)
|
2013-06-05 22:22:39 +00:00
|
|
|
libboinc_crypt_la_LIBADD =
|
2015-01-19 21:50:27 +00:00
|
|
|
endif
|
2009-01-13 23:06:02 +00:00
|
|
|
|
|
|
|
if ENABLE_FCGI
|
|
|
|
lib_LTLIBRARIES += libboinc_fcgi.la
|
2021-11-09 19:17:47 +00:00
|
|
|
pkgconfig_DATA += libboinc_fcgi.pc
|
2014-04-29 14:50:33 +00:00
|
|
|
libboinc_fcgi_la_SOURCES = $(libfcgi_sources) $(mac_sources) $(win_sources)
|
2009-01-13 23:06:02 +00:00
|
|
|
libboinc_fcgi_la_CFLAGS = -D_USING_FCGI_ $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
|
|
|
|
libboinc_fcgi_la_CXXFLAGS = -D_USING_FCGI_ $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
|
2017-02-27 20:59:27 +00:00
|
|
|
libboinc_fcgi_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
|
2009-01-13 23:06:02 +00:00
|
|
|
libboinc_fcgi_la_LIBADD =
|
2016-09-01 14:36:56 +00:00
|
|
|
endif
|
2009-01-13 23:06:02 +00:00
|
|
|
# end of "if ENABLE_FCGI"
|
|
|
|
|
2016-09-01 14:36:56 +00:00
|
|
|
# Some OSs may not prefix libraries with lib.
|
2009-02-26 00:23:23 +00:00
|
|
|
# For example OS2
|
|
|
|
if OS_OS2
|
|
|
|
LIBBOINC_STATIC=boinc.${LIBEXT}
|
2009-07-14 17:50:33 +00:00
|
|
|
LIBBOINC_CRYPT_STATIC=boinc_crypt.${LIBEXT}
|
2009-02-26 00:23:23 +00:00
|
|
|
LIBBOINC_FCGI_STATIC=boinc_fcgi.${LIBEXT}
|
|
|
|
else
|
|
|
|
LIBBOINC_STATIC=libboinc.${LIBEXT}
|
2009-07-14 17:50:33 +00:00
|
|
|
LIBBOINC_CRYPT_STATIC=libboinc_crypt.${LIBEXT}
|
2009-02-26 00:23:23 +00:00
|
|
|
LIBBOINC_FCGI_STATIC=libboinc_fcgi.${LIBEXT}
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if BUILD_STATIC_LIBS
|
2016-09-01 14:36:56 +00:00
|
|
|
all_local = $(LIBBOINC_STATIC)
|
2015-01-19 21:50:27 +00:00
|
|
|
if ENABLE_BOINCCRYPT
|
2016-09-01 14:36:56 +00:00
|
|
|
all_local += $(LIBBOINC_CRYPT_STATIC)
|
2015-01-19 21:50:27 +00:00
|
|
|
endif
|
2009-01-13 23:06:02 +00:00
|
|
|
if ENABLE_FCGI
|
2016-09-01 14:36:56 +00:00
|
|
|
all_local += $(LIBBOINC_FCGI_STATIC)
|
2009-01-13 23:06:02 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
all-local: $(all_local)
|
|
|
|
|
2009-02-26 00:23:23 +00:00
|
|
|
$(LIBBOINC_STATIC): libboinc.la
|
|
|
|
rm -f $(LIBBOINC_STATIC)
|
2009-04-15 20:46:12 +00:00
|
|
|
$(LN) .libs/$(LIBBOINC_STATIC) .
|
2009-01-13 23:06:02 +00:00
|
|
|
|
2009-07-14 17:50:33 +00:00
|
|
|
$(LIBBOINC_CRYPT_STATIC): libboinc_crypt.la
|
|
|
|
rm -f $(LIBBOINC_CRYPT_STATIC)
|
2009-12-01 17:04:28 +00:00
|
|
|
$(LN) .libs/$(LIBBOINC_CRYPT_STATIC) .
|
2009-07-14 17:50:33 +00:00
|
|
|
|
|
|
|
$(LIBBOINC_FCGI_STATIC): libboinc_fcgi.la
|
2009-02-26 00:23:23 +00:00
|
|
|
rm -f $(LIBBOINC_FCGI_STATIC)
|
2009-04-15 20:46:12 +00:00
|
|
|
$(LN) .libs/$(LIBBOINC_FCGI_STATIC) .
|
2009-01-13 23:06:02 +00:00
|
|
|
|
2013-04-03 16:56:25 +00:00
|
|
|
clean: clean-am
|
2021-08-16 08:04:27 +00:00
|
|
|
rm -f $(LIBBOINC_STATIC) $(LIBBOINC_CRYPT_STATIC) $(LIBBOINC_FCGI_STATIC) *.gcno *.gcda *.gcov *.a *.o *.lo *.la
|
2013-04-03 16:56:25 +00:00
|
|
|
|
2016-09-01 14:36:56 +00:00
|
|
|
endif
|
2009-01-13 23:06:02 +00:00
|
|
|
# end of "if ENABLE_LIBRARIES"
|
|
|
|
|
|
|
|
EXTRA_PROGRAMS = md5_test shmem_test msg_test
|
|
|
|
|
|
|
|
EXTRA_DIST = *.h *.cpp
|
|
|
|
|
2016-09-01 14:36:56 +00:00
|
|
|
md5_test_SOURCES = md5_test.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
md5_test_CXXFLAGS = $(PTHREAD_CFLAGS)
|
|
|
|
md5_test_LDADD = $(LIBBOINC)
|
2016-09-01 14:36:56 +00:00
|
|
|
shmem_test_SOURCES = shmem_test.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
shmem_test_CXXFLAGS = $(PTHREAD_CFLAGS)
|
|
|
|
shmem_test_LDADD = $(LIBBOINC)
|
2016-09-01 14:36:56 +00:00
|
|
|
msg_test_SOURCES = msg_test.cpp
|
2009-01-13 23:06:02 +00:00
|
|
|
msg_test_CXXFLAGS = $(PTHREAD_CFLAGS)
|
|
|
|
msg_test_LDADD = $(LIBBOINC)
|
2016-09-01 14:36:56 +00:00
|
|
|
crypt_prog_SOURCES = crypt_prog.cpp
|
2015-01-20 13:23:33 +00:00
|
|
|
crypt_prog_CXXFLAGS = $(PTHREAD_CFLAGS) $(SSL_CXXFLAGS)
|
2016-09-01 14:36:56 +00:00
|
|
|
crypt_prog_LDADD = $(LIBBOINC_CRYPT_STATIC) $(LIBBOINC) $(SSL_LIBS)
|
|
|
|
parse_test_SOURCES = parse_test.cpp
|
2011-10-03 21:43:34 +00:00
|
|
|
parse_test_CXXFLAGS = $(PTHREAD_CFLAGS)
|
|
|
|
parse_test_LDADD = $(LIBBOINC)
|