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 \
|
|
|
|
md5.c \
|
|
|
|
md5_file.cpp \
|
|
|
|
miofile.cpp \
|
|
|
|
msg_log.cpp \
|
2013-08-25 21:13:14 +00:00
|
|
|
opencl_boinc.cpp \
|
2009-02-03 21:22:50 +00:00
|
|
|
parse.cpp \
|
|
|
|
shmem.cpp \
|
|
|
|
str_util.cpp \
|
|
|
|
synch.cpp \
|
2013-05-30 16:44:58 +00:00
|
|
|
url.cpp \
|
2009-02-03 21:22:50 +00:00
|
|
|
util.cpp
|
|
|
|
|
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 \
|
2005-07-31 23:33:12 +00:00
|
|
|
md5.c \
|
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-08-25 21:13:14 +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 \
|
2008-09-26 18:20:24 +00:00
|
|
|
proxy_info.cpp \
|
|
|
|
shmem.cpp \
|
|
|
|
str_util.cpp \
|
2009-02-03 21:22:50 +00:00
|
|
|
synch.cpp \
|
2013-09-20 21:30:04 +00:00
|
|
|
thread.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
unix_util.cpp \
|
2013-05-30 16:44:58 +00:00
|
|
|
url.cpp \
|
2009-02-03 21:22:50 +00:00
|
|
|
util.cpp
|
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 \
|
|
|
|
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
|
2011-09-01 09:02:54 +00:00
|
|
|
generic_sources += procinfo_unix.cpp
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
mac_sources =
|
|
|
|
mac_headers =
|
|
|
|
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 \
|
2009-01-13 23:06:02 +00:00
|
|
|
boinc_win.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 \
|
2009-02-26 00:23:23 +00:00
|
|
|
diagnostics_win.h \
|
2006-08-31 21:16:36 +00:00
|
|
|
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-08-25 21:13:14 +00:00
|
|
|
opencl_boinc.h \
|
2006-08-31 21:16:36 +00:00
|
|
|
parse.h \
|
|
|
|
prefs.h \
|
2013-05-30 16:44:58 +00:00
|
|
|
procinfo.h \
|
2006-08-31 21:16:36 +00:00
|
|
|
proxy_info.h \
|
2009-02-26 00:23:23 +00:00
|
|
|
stackwalker_imports.h \
|
|
|
|
stackwalker_win.h \
|
2007-02-21 16:26:51 +00:00
|
|
|
str_util.h \
|
2013-09-20 21:30:04 +00:00
|
|
|
thread.h \
|
2013-05-30 16:44:58 +00:00
|
|
|
url.h \
|
2009-01-13 23:06:02 +00:00
|
|
|
util.h \
|
2009-02-26 00:23:23 +00:00
|
|
|
win_util.h \
|
2009-01-13 23:06:02 +00:00
|
|
|
$(mac_headers)
|
|
|
|
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 \
|
|
|
|
proc_control.h \
|
|
|
|
procinfo.h \
|
|
|
|
shmem.h \
|
|
|
|
str_replace.h \
|
|
|
|
synch.h \
|
|
|
|
unix_util.h
|
|
|
|
|
2009-07-14 17:50:33 +00:00
|
|
|
lib_LTLIBRARIES = libboinc.la libboinc_crypt.la
|
2009-01-13 23:06:02 +00:00
|
|
|
libboinc_la_SOURCES = $(generic_sources) $(mac_sources)
|
|
|
|
libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
|
|
|
|
libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
|
2011-09-27 16:34:31 +00:00
|
|
|
libboinc_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -static -version-number $(LIBBOINC_VERSION)
|
2013-06-05 22:22:39 +00:00
|
|
|
libboinc_la_LIBADD =
|
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)
|
2013-10-12 05:17:15 +00:00
|
|
|
libboinc_crypt_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -static -version-number $(LIBBOINC_VERSION) -lpthread
|
2013-06-05 22:22:39 +00:00
|
|
|
libboinc_crypt_la_LIBADD =
|
2009-07-14 17:50:33 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
|
|
|
|
if ENABLE_FCGI
|
|
|
|
lib_LTLIBRARIES += libboinc_fcgi.la
|
2009-02-03 21:22:50 +00:00
|
|
|
libboinc_fcgi_la_SOURCES = $(libfcgi_sources) $(mac_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)
|
|
|
|
libboinc_fcgi_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
|
|
|
|
libboinc_fcgi_la_LIBADD =
|
|
|
|
endif
|
|
|
|
# end of "if ENABLE_FCGI"
|
|
|
|
|
2009-02-26 00:23:23 +00:00
|
|
|
# Some OSs may not prefix libraries with lib.
|
|
|
|
# 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
|
2009-07-14 17:50:33 +00:00
|
|
|
all_local = $(LIBBOINC_STATIC) $(LIBBOINC_CRTYPT_STATIC)
|
2009-01-13 23:06:02 +00:00
|
|
|
if ENABLE_FCGI
|
2009-02-26 00:23:23 +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
|
|
|
|
rm -f $(LIBBOINC_STATIC) $(LIBBOINC_CRYPT_STATIC) $(LIBBOINC_FCGI_STATIC)
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
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)
|
2009-12-01 17:04:28 +00:00
|
|
|
crypt_prog_LDADD = $(LIBBOINC_CRYPT_STATIC) $(LIBBOINC) $(SSL_LIBS)
|
2011-10-03 21:43:34 +00:00
|
|
|
parse_test_SOURCES = parse_test.cpp
|
|
|
|
parse_test_CXXFLAGS = $(PTHREAD_CFLAGS)
|
|
|
|
parse_test_LDADD = $(LIBBOINC)
|