1## -*- mode: makefile; tab-width: 4 -*-
2## $Id$
3
4## To build for Macintosh (Darwin), please read the instructions at
5## mac_build/HowToBuildBOINC_XCode.rtf
6
7include $(top_srcdir)/Makefile.incl
8
9if ENABLE_CLIENT_RELEASE
10  AM_LDFLAGS += -static-libtool-libs
11## for an entirely statically linked library, you may want to try
12## -all-static instead.  There's a good chance it won't work properly,
13## so we'll use the safer "-static-libtool-libs" by default.
14else
15if DYNAMIC_CLIENT
16## if libtool starts to need flags for dynamic linking, add them here
17else
18  AM_LDFLAGS += -static
19endif
20endif ## ENABLE_CLIENT_RELEASE
21
22bin_PROGRAMS = boincmgr
23
24# keep the following alphabetic
25
26boincmgr_SOURCES = \
27    AccountInfoPage.cpp \
28    AccountManagerInfoPage.cpp \
29    AccountManagerProcessingPage.cpp \
30    AccountManagerPropertiesPage.cpp \
31    AdvancedFrame.cpp \
32    AlreadyExistsPage.cpp \
33    AsyncRPC.cpp \
34    BOINCBaseFrame.cpp \
35    BOINCBaseView.cpp \
36    BOINCBaseWizard.cpp \
37    BOINCClientManager.cpp \
38    BOINCDialupManager.cpp \
39    BOINCGUIApp.cpp \
40    BOINCListCtrl.cpp \
41    BOINCTaskBar.cpp \
42    BOINCTaskCtrl.cpp \
43    browser.cpp \
44    common/wxPieCtrl.cpp \
45    CompletionErrorPage.cpp \
46    CompletionPage.cpp \
47    DlgAbout.cpp 		\
48    DlgAdvPreferences.cpp \
49    DlgAdvPreferencesBase.cpp \
50    DlgDiagnosticLogFlags.cpp \
51    DlgEventLog.cpp \
52    DlgEventLogListCtrl.cpp \
53    DlgExclusiveApps.cpp \
54    DlgExitMessage.cpp \
55    DlgGenericMessage.cpp \
56    DlgHiddenColumns.cpp \
57    DlgItemProperties.cpp \
58    DlgOptions.cpp \
59    DlgSelectComputer.cpp \
60    gtk/taskbarex.cpp \
61    LogBOINC.cpp \
62    MainDocument.cpp \
63    NoInternetConnectionPage.cpp \
64    NotDetectedPage.cpp \
65    NotFoundPage.cpp \
66    NoticeListCtrl.cpp \
67    ProjectInfoPage.cpp \
68    ProjectProcessingPage.cpp \
69    ProjectPropertiesPage.cpp \
70	ProjectWelcomePage.cpp \
71    ProxyInfoPage.cpp \
72    ProxyPage.cpp \
73    sg_BoincSimpleFrame.cpp \
74    sg_CustomControls.cpp \
75    sg_DlgMessages.cpp \
76    sg_DlgPreferences.cpp \
77    sg_PanelBase.cpp \
78    sg_ProjectCommandPopup.cpp \
79    sg_ProjectPanel.cpp \
80    sg_ProjectWebSitesPopup.cpp \
81    sg_TaskCommandPopup.cpp \
82    sg_TaskPanel.cpp \
83    SkinManager.cpp \
84    stdwx.cpp \
85    TermsOfUsePage.cpp \
86    UnavailablePage.cpp \
87    ValidateAccountKey.cpp \
88    ValidateEmailAddress.cpp \
89    ValidateURL.cpp \
90    ViewNotices.cpp \
91    ViewProjects.cpp \
92    ViewResources.cpp \
93    ViewStatistics.cpp \
94    ViewTransfers.cpp \
95    ViewWork.cpp \
96    WizardAttach.cpp \
97    wizardex.cpp
98
99EXTRA_DIST = *.h \
100    res \
101    msw \
102    ../lib/error_numbers.h \
103    locale
104
105boincmgr_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) $(GTK_CFLAGS)
106boincmgr_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CXXFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) $(GTK_CFLAGS)
107boincmgr_LDADD = $(LIBBOINC) $(SQLITE3_LIBS) $(LIBNOTIFY_LIBS) $(CLIENTGUILIBS) $(BOINC_EXTRA_LIBS) $(CLIENTLIBS) $(GTK_LIBS)
108
109win_config.h: $(top_srcdir)/config.h
110	grep '#define.*BOINC.*VERSION' $^ > $@
111
112version: win_config.h
113
114.PHONY: version
115