mirror of https://github.com/BOINC/boinc.git
170 lines
3.5 KiB
Makefile
170 lines
3.5 KiB
Makefile
## -*- 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 \
|
|
crypt.cpp \
|
|
filesys.cpp \
|
|
hostinfo.cpp \
|
|
md5.c \
|
|
md5_file.cpp \
|
|
miofile.cpp \
|
|
msg_log.cpp \
|
|
parse.cpp \
|
|
shmem.cpp \
|
|
str_util.cpp \
|
|
synch.cpp \
|
|
util.cpp
|
|
|
|
generic_sources = \
|
|
app_ipc.cpp \
|
|
base64.cpp \
|
|
cert_sig.cpp \
|
|
coproc.cpp \
|
|
crypt.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 \
|
|
parse.cpp \
|
|
prefs.cpp \
|
|
procinfo_unix.cpp \
|
|
proxy_info.cpp \
|
|
shmem.cpp \
|
|
str_util.cpp \
|
|
synch.cpp \
|
|
unix_util.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 \
|
|
boinc_fcgi.h \
|
|
boinc_win.h \
|
|
common_defs.h \
|
|
coproc.h \
|
|
crypt.h \
|
|
diagnostics.h \
|
|
error_numbers.h \
|
|
filesys.h \
|
|
gui_rpc_client.h \
|
|
hostinfo.h \
|
|
mac_address.h \
|
|
mfile.h \
|
|
miofile.h \
|
|
msg_log.h \
|
|
parse.h \
|
|
prefs.h \
|
|
proxy_info.h \
|
|
std_fixes.h \
|
|
str_util.h \
|
|
synch.h \
|
|
util.h \
|
|
$(mac_headers)
|
|
endif
|
|
|
|
lib_LTLIBRARIES = libboinc.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 =
|
|
|
|
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"
|
|
|
|
if BUILD_STATIC_LIBS
|
|
all_local = libboinc.a
|
|
if ENABLE_FCGI
|
|
all_local += libboinc_fcgi.a
|
|
endif
|
|
endif
|
|
|
|
all-local: $(all_local)
|
|
|
|
libboinc.a: libboinc.la
|
|
rm -f libboinc.a
|
|
ln .libs/libboinc.a
|
|
|
|
libboinc_fcgi.a: libboinc_fcgi.la
|
|
rm -f libboinc_fcgi.a
|
|
ln .libs/libboinc_fcgi.a
|
|
|
|
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) $(SSL_LIBS)
|
|
|