1
1
## -*- mode: makefile; tab-width: 4 -*-
2
## $Id: Makefile.am 16338 2008-10-28 21:59:25Z davea $
2
## $Id: Makefile.am 22578 2010-10-21 16:14:27Z romw $
4
4
include $(top_srcdir)/Makefile.incl
6
# (for a while we used "-static -static-libgcc" on linux, but this is obsolete
8
#STATIC_FLAGS=@STATIC_FLAGS@
10
client-bin: @CLIENT_BIN_FILENAME@
6
if ENABLE_CLIENT_RELEASE
7
AM_LDFLAGS += -static-libtool-libs
8
## for an entirely statically linked library, you may want to try
9
## -all-static instead. There's a good chance it won't work properly,
10
## so we'll use the safer "-static-libtool-libs" by default.
13
## if libtool starts to need flags for dynamic linking, add them here
17
endif ## ENABLE_CLIENT_RELEASE
15
22
LIBS += -framework IOKit -framework Foundation -framework ScreenSaver -framework Cocoa
18
bin_PROGRAMS = boinc_client switcher
25
bin_PROGRAMS = boinc_client switcher boinccmd
27
boinccmd_SOURCES = boinc_cmd.cpp
28
boinccmd_DEPENDENCIES = $(LIBBOINC)
29
boinccmd_CPPFLAGS = $(AM_CPPFLAGS)
30
boinccmd_LDFLAGS = $(AM_LDFLAGS) -L../lib
31
boinccmd_LDADD = $(LIBBOINC) $(BOINC_EXTRA_LIBS) $(PTHREAD_LIBS)
20
33
boinc_client_SOURCES = \
56
73
pers_file_xfer.cpp \
64
boinc_client_DEPENDENCIES =
65
boinc_client_CPPFLAGS = -O3 -fomit-frame-pointer -fforce-addr -ffast-math $(AM_CPPFLAGS)
66
boinc_client_LDFLAGS = -static-libgcc
67
boinc_client_LDADD = $(LIBBOINC) $(PTHREAD_LIBS)
81
boinc_client_DEPENDENCIES = $(LIBBOINC)
82
boinc_client_CPPFLAGS = $(AM_CPPFLAGS)
83
boinc_client_LDFLAGS = $(AM_LDFLAGS) -L../lib
84
boinc_client_LDADD = $(LIBBOINC) $(LIBBOINC_CRYPT) $(BOINC_EXTRA_LIBS) $(PTHREAD_LIBS)
69
86
boinc_clientdir = $(bindir)
70
boinc_client_DATA = ../curl/ca-bundle.crt
72
88
switcher_SOURCES = switcher.cpp
76
# make a hard link to the client name.
77
@CLIENT_BIN_FILENAME@: boinc_client
89
switcher_LDFLAGS = $(AM_LDFLAGS) -L../lib
90
switcher_LDADD = $(LIBBOINC)
92
## since we are using libtool we need some magic to get boinc and boinc_client
93
## to both be installed properly. The next two rules do that...
97
rm -f boinc .libs/boinc
98
$(LN) boinc_client boinc
99
if test -f .libs/boinc_client ; then $(LN) .libs/boinc_client .libs/boinc ; fi
102
rm -f $(DESTDIR)$(exec_prefix)/bin/boinc
103
$(LN) $(DESTDIR)$(exec_prefix)/bin/boinc_client $(DESTDIR)$(exec_prefix)/bin/boinc
84
105
## these source files need to be specified because no rule uses them.