2008-06-08 22:18:52 +00:00
|
|
|
## -*- mode: makefile; tab-width: 4 -*-
|
2003-06-06 19:00:42 +00:00
|
|
|
## $Id$
|
|
|
|
|
2003-06-11 22:42:39 +00:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
include Makefile.incl
|
|
|
|
|
2004-12-15 11:41:02 +00:00
|
|
|
## make sure rebuilding uses the right aclocal-switches
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if ENABLE_LIBRARIES
|
2013-05-28 20:51:49 +00:00
|
|
|
API_SUBDIRS = api lib
|
|
|
|
if ENABLE_SERVER
|
2013-05-30 16:44:58 +00:00
|
|
|
API_SUBDIRS += zip
|
2013-05-28 20:51:49 +00:00
|
|
|
endif
|
2015-02-12 16:33:17 +00:00
|
|
|
## boinc_zip needed for wrapper
|
|
|
|
if ENABLE_APPS
|
|
|
|
API_SUBDIRS += zip
|
|
|
|
endif
|
2014-04-17 15:41:01 +00:00
|
|
|
if ENABLE_BOINCZIP
|
|
|
|
API_SUBDIRS += zip
|
|
|
|
endif
|
2009-01-13 23:06:02 +00:00
|
|
|
endif
|
2004-10-18 01:54:28 +00:00
|
|
|
|
2004-06-29 08:51:54 +00:00
|
|
|
if ENABLE_SERVER
|
2019-04-13 08:31:05 +00:00
|
|
|
SERVER_SUBDIRS = db py sched apps tools vda html
|
2012-11-02 00:58:57 +00:00
|
|
|
## once contained samples/example_app which breaks out-of-source-tree builds
|
2004-06-29 08:51:54 +00:00
|
|
|
endif
|
|
|
|
|
2004-07-13 10:36:18 +00:00
|
|
|
if ENABLE_CLIENT
|
2008-05-28 01:38:39 +00:00
|
|
|
CLIENT_SUBDIRS = client client/scripts
|
2004-11-19 13:50:51 +00:00
|
|
|
endif
|
2004-12-17 18:18:45 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if ENABLE_MANAGER
|
2012-04-25 07:09:14 +00:00
|
|
|
CLIENTGUI_SUBDIRS = clientgui locale
|
2012-09-21 03:52:24 +00:00
|
|
|
if BUILD_X11_SCREENSAVER
|
|
|
|
CLIENTGUI_SUBDIRS += clientscr
|
|
|
|
endif
|
2004-07-13 10:36:18 +00:00
|
|
|
endif
|
|
|
|
|
2015-02-12 15:58:14 +00:00
|
|
|
if ENABLE_APPS
|
|
|
|
APPS_SUBDIRS = samples
|
|
|
|
endif
|
|
|
|
|
2004-12-09 10:23:56 +00:00
|
|
|
# ORDER MATTERS below. One must build dependencies FIRST, then things
|
|
|
|
# that depend on them later
|
2015-02-12 15:58:14 +00:00
|
|
|
SUBDIRS = m4 $(API_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) $(CLIENTGUI_SUBDIRS) $(APPS_SUBDIRS) doc
|
2003-06-06 20:55:08 +00:00
|
|
|
|
|
|
|
# Putting a directory name recursively copies the entire contents - the
|
|
|
|
# dist-hook below gets rid of CVS directories.
|
|
|
|
|
2004-06-18 09:05:15 +00:00
|
|
|
EXTRA_DIST = \
|
2013-05-30 16:44:58 +00:00
|
|
|
win_build \
|
|
|
|
doc \
|
|
|
|
stripchart \
|
|
|
|
INSTALL
|
2003-06-06 19:00:42 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if INSTALL_HEADERS
|
2008-05-28 01:38:39 +00:00
|
|
|
pkginclude_HEADERS = \
|
2009-09-17 17:56:59 +00:00
|
|
|
version.h \
|
2020-03-06 15:12:14 +00:00
|
|
|
svn_version.h \
|
|
|
|
project_specific_defines.h
|
2009-01-13 23:06:02 +00:00
|
|
|
endif
|
2003-07-18 21:43:12 +00:00
|
|
|
|
2009-09-17 17:56:59 +00:00
|
|
|
# svn_version.h should always be rebuilt.
|
|
|
|
|
|
|
|
BUILT_SOURCES = svn_version.h
|
|
|
|
svn_version.h: generate_svn_version.sh
|
2009-11-11 17:23:18 +00:00
|
|
|
cd $(srcdir) && sh generate_svn_version.sh
|
2009-09-17 17:56:59 +00:00
|
|
|
.PHONY: svn_version.h
|
|
|
|
|
2008-05-28 16:27:41 +00:00
|
|
|
# Add a stage target for staging a distribution
|
|
|
|
|
|
|
|
clean-generic:
|
2019-04-20 10:06:24 +00:00
|
|
|
rm -rf stage *.gcov
|
2008-05-28 16:27:41 +00:00
|
|
|
|
|
|
|
stage: all
|
|
|
|
if [ ! -d stage ] ; then mkdir stage ; fi
|
|
|
|
rm -rf stage/*
|
|
|
|
$(MAKE) DESTDIR=$(PWD)/stage install
|
|
|
|
|
2003-06-06 20:55:08 +00:00
|
|
|
dist-hook:
|
2004-11-26 17:45:13 +00:00
|
|
|
rm -rf `find $(distdir) -name .backup -prune -o -name '*~' -o -name CVS`
|
|
|
|
# cd $(distdir) && ./_autosetup
|