GNUmakefile.in 1.82 KB
Newer Older
1
#
2
# Copyright (c) 2004, 2005 University of Utah and the Flux Group.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# 
# {{{EMULAB-LICENSE
# 
# This file is part of the Emulab network testbed software.
# 
# This file is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
# 
# This file is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public
# License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this file.  If not, see <http://www.gnu.org/licenses/>.
# 
# }}}
22 23 24 25 26 27 28 29 30
#

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= robots

include $(OBJDIR)/Makeconf

31 32 33 34 35 36 37 38 39 40 41 42
ifeq ($(HAVE_MEZZANINE),yes)
MEZZDIR=mezzanine
else
MEZZDIR=
endif

ifeq ($(EVENTSYS),1)
EMCDIR=emc
else
EMCDIR=
endif

43 44 45 46 47 48
ifeq ($(HAVE_ULXMLRPCPP),yes)
TBSETDESTDIR=tbsetdest
else
TBSETDESTDIR=
endif

49
SUBDIRS	= $(TBSETDESTDIR) $(MEZZDIR) mtp $(EMCDIR) vmcd primotion rmcd tracker
50

51
all:		robomonitord all-subdirs 
52
client:		client-subdirs
53
client-install:	client-install-subdirs
54
check:		check-subdirs
55

56
install:	install-subdirs install-scripts
57 58
	@echo "Don't forget to do a post-install as root"

59
boss-install:   install
60
control-install:	control-install-subdirs
61

62 63 64
post-install: 
	@$(MAKE) -C emc post-install

65 66 67 68
include $(TESTBED_SRCDIR)/GNUmakerules

clean:		clean-subdirs

69 70
install-scripts:	$(addprefix $(INSTALL_SBINDIR)/, robomonitord)

71 72 73 74 75 76 77
# How to recursively descend into subdirectories to make general
# targets such as `all'.
%.MAKE:
	@$(MAKE) -C $(dir $@) $(basename $(notdir $@))
%-subdirs: $(addsuffix /%.MAKE,$(SUBDIRS)) ;

.PHONY:	$(SUBDIRS)