~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to client/Makefile.am

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 $
3
3
 
4
4
include $(top_srcdir)/Makefile.incl
5
5
 
6
 
# (for a while we used "-static -static-libgcc" on linux, but this is obsolete
7
 
# now)
8
 
#STATIC_FLAGS=@STATIC_FLAGS@
9
 
 
10
 
client-bin: @CLIENT_BIN_FILENAME@
11
 
 
12
 
LIBS += @CLIENTLIBS@
 
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.
 
11
else
 
12
if DYNAMIC_CLIENT
 
13
## if libtool starts to need flags for dynamic linking, add them here
 
14
else
 
15
  AM_LDFLAGS += -static
 
16
endif
 
17
endif ## ENABLE_CLIENT_RELEASE
 
18
 
 
19
LIBS += $(CLIENTLIBS)
13
20
 
14
21
if OS_DARWIN
15
22
   LIBS += -framework IOKit -framework Foundation -framework ScreenSaver -framework Cocoa
16
23
endif
17
24
 
18
 
bin_PROGRAMS = boinc_client switcher
 
25
bin_PROGRAMS = boinc_client switcher boinccmd
 
26
 
 
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)
19
32
 
20
33
boinc_client_SOURCES = \
21
34
    acct_mgr.cpp \
29
42
    client_msgs.cpp \
30
43
    client_state.cpp \
31
44
    client_types.cpp \
 
45
        coproc_detect.cpp \
32
46
    cpu_sched.cpp \
33
47
    cs_account.cpp \
34
48
    cs_apps.cpp \
35
49
    cs_benchmark.cpp \
36
50
    cs_cmdline.cpp \
37
51
    cs_files.cpp \
 
52
    cs_notice.cpp \
38
53
    cs_platforms.cpp \
39
54
    cs_prefs.cpp \
 
55
    cs_proxy.cpp \
40
56
    cs_scheduler.cpp \
41
57
    cs_statefile.cpp \
42
58
    cs_trickle.cpp \
 
59
        current_version.cpp \
43
60
    dhrystone.cpp \
44
61
    dhrystone2.cpp \
45
62
    file_names.cpp \
54
71
    main.cpp \
55
72
    net_stats.cpp \
56
73
    pers_file_xfer.cpp \
57
 
        rr_sim.cpp \
 
74
    rr_sim.cpp \
58
75
    sandbox.cpp \
59
76
    scheduler_op.cpp \
60
77
    time_stats.cpp \
61
78
    whetstone.cpp \
62
79
    work_fetch.cpp
63
80
 
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) 
68
85
 
69
86
boinc_clientdir = $(bindir)
70
 
boinc_client_DATA = ../curl/ca-bundle.crt
71
87
 
72
88
switcher_SOURCES = switcher.cpp
73
 
 
74
 
all-local: client-bin
75
 
 
76
 
# make a hard link to the client name.
77
 
@CLIENT_BIN_FILENAME@: boinc_client
78
 
        rm -f $@
79
 
        rm -f $@.unmodified
80
 
        cp $? $@.unmodified
81
 
        @LN@ $? $@
82
 
        @STRIP@ $@
 
89
switcher_LDFLAGS = $(AM_LDFLAGS) -L../lib 
 
90
switcher_LDADD = $(LIBBOINC)
 
91
 
 
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...
 
94
all-local: boinc
 
95
 
 
96
boinc: boinc_client
 
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
 
100
 
 
101
install-exec-hook:
 
102
        rm -f $(DESTDIR)$(exec_prefix)/bin/boinc
 
103
        $(LN) $(DESTDIR)$(exec_prefix)/bin/boinc_client $(DESTDIR)$(exec_prefix)/bin/boinc
83
104
 
84
105
## these source files need to be specified because no rule uses them.
85
106
 
87
108
    mac \
88
109
    translation \
89
110
    win
90
 
 
91
 
clean-local:
92
 
        rm -f @CLIENT_BIN_FILENAME@
93
 
        rm -f @CLIENT_BIN_FILENAME@.unmodified