GNUmakefile.in 1.31 KB
Newer Older
1 2 3 4 5 6 7 8
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2011 University of Utah and the Flux Group.
# All rights reserved.
#
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= @top_builddir@
9
SUBDIR		= $(subst $(TESTBED_SRCDIR)/,,$(SRCDIR))
10 11 12 13
SYSTEM	       := $(shell uname -s)

include $(OBJDIR)/Makeconf

Leigh B Stoller's avatar
Leigh B Stoller committed
14
SUBDIRS         =
Leigh B Stoller's avatar
Leigh B Stoller committed
15
ifeq ($(WITH_EMULAB),0)
Leigh B Stoller's avatar
Leigh B Stoller committed
16 17 18 19 20 21
#
# lib is a common directory, and is added to the clientside tarball.
# So not do not build it when building full emulab tree; already done.
#
SUBDIRS	       += lib
endif
Leigh B Stoller's avatar
Leigh B Stoller committed
22
# These must be after lib.
23
SUBDIRS	       += event tools os sensors tmcc
24

Leigh B Stoller's avatar
Leigh B Stoller committed
25
ifeq ($(WITH_EMULAB),1)
26
all:	all-subdirs
27
install:all boss-install-subdirs
Leigh B Stoller's avatar
Leigh B Stoller committed
28 29 30
else
all:	client-subdirs
endif
31 32 33 34
include $(TESTBED_SRCDIR)/GNUmakerules

client:		client-subdirs
client-install: client client-install-subdirs
35
control-install: control-install-subdirs
Leigh B Stoller's avatar
Leigh B Stoller committed
36 37
subboss:	subboss-subdirs
subboss-install: client subboss-install-subdirs
38
post-install:	post-install-subdirs
39 40
clean:		clean-subdirs
distclean:	distclean-subdirs
Leigh B Stoller's avatar
Leigh B Stoller committed
41 42 43 44
mfs:		mfs-subdirs
mfs-install:	mfs-install-subdirs
frisbee-mfs:	frisbee-mfs-subdirs
frisbee-mfs-install:	frisbee-mfs-install-subdirs
45 46 47 48 49 50 51 52

# 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)