GNUmakefile.in 1.51 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
SYSTEM	       := $(shell uname -s)
11 12 13

include $(OBJDIR)/Makeconf

14
SUBDIRS		= program-agent link-agent tevc proxy linktest
15 16 17
ifneq ($(SYSTEM),CYGWIN_NT-5.1)
SUBDIRS	       += trafgen
endif
18 19
ifeq ($(WITH_EMULAB),1)
# only in a full build for now.
20 21 22
ifeq ($(SYSTEM),FreeBSD)
FBSDREL	:= $(shell uname -r | sed -e 's/\([^-][^-]*\)-.*/\1/')
FBSDMAJ := $(basename $(FBSDREL))
23
ifneq ($(FBSDMAJ),8)
24
ifneq ($(FBSDMAJ),9)
25 26 27 28
# doesn't build right now due to API changes
SUBDIRS	       += delay-agent
endif
endif
Cody Cutler's avatar
Cody Cutler committed
29
endif
30
endif
31

32
all:	trafgen-fetch all-subdirs
33 34 35

include $(TESTBED_SRCDIR)/GNUmakerules

36 37 38 39 40 41
# XXX Yeah, this doesn't belong here but I can't make the trafgen
# makefile work if it unpacks the tarball itself
#
trafgen-fetch:
	$(SRCDIR)/trafgen/tg-install $(SRCDIR)/trafgen

42
boss-install:   boss-install-subdirs
43
client:		trafgen-fetch client-subdirs
44
client-install: client client-install-subdirs
45
control-install: control-install-subdirs
Leigh Stoller's avatar
Leigh Stoller committed
46 47
subboss:
subboss-install:
48
post-install:	post-install-subdirs
49 50
clean:		clean-subdirs
distclean:	distclean-subdirs
Leigh Stoller's avatar
Leigh Stoller committed
51 52 53 54
mfs:
mfs-install:
frisbee-mfs:
frisbee-mfs-install:
55 56 57 58 59 60 61

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

62
.PHONY:	$(SUBDIRS) trafgen-fetch