GNUmakefile.in 1.5 KB
Newer Older
1
#
Leigh Stoller's avatar
Leigh Stoller committed
2
# EMULAB-COPYRIGHT
3
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
Leigh Stoller's avatar
Leigh Stoller committed
4
# All rights reserved.
5
#
Leigh Stoller's avatar
Leigh Stoller committed
6

7 8 9 10 11 12 13
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= event

include $(OBJDIR)/Makeconf

14 15
SYSTEM	       := $(shell uname -s)

16 17 18 19
SUBDIRS		= lib tbgen program-agent proxy example linktest link-agent
ifneq ($(SYSTEM),CYGWIN_NT-5.1)
SUBDIRS	       += trafgen
endif
20
ifeq ($(SYSTEM),FreeBSD)
21
SUBDIRS	       += sched delay-agent nsetrafgen stated
22
endif
23

24
all:	etc-subdir trafgen-fetch all-subdirs
25 26 27

include $(TESTBED_SRCDIR)/GNUmakerules

28 29 30
# XXX Yeah, this doesn't belong here but I can't make the trafgen
# makefile work if it unpacks the tarball itself
#
Mike Hibler's avatar
Mike Hibler committed
31
trafgen-fetch:
32
	$(SRCDIR)/trafgen/tg-install $(SRCDIR)/trafgen
33

34 35 36
etc-subdir:
	@$(MAKE) -C etc all

37 38 39
install: 
	@$(MAKE) -C lib install
	@$(MAKE) -C sched install
40
	@$(MAKE) -C tbgen install
41
	@$(MAKE) -C stated install
42
	@$(MAKE) -C linktest install
43

44
client:		trafgen-fetch client-subdirs
45
client-install: client client-install-subdirs
46

47
control-install: 
Leigh Stoller's avatar
Leigh Stoller committed
48
	@$(MAKE) -C lib control-install
49
	@$(MAKE) -C tbgen control-install
50
	@$(MAKE) -C sched control-install
51
	@$(MAKE) -C linktest control-install
52
	@$(MAKE) -C program-agent control-install
53

54 55 56
post-install: 
	@$(MAKE) -C linktest post-install

Mike Hibler's avatar
Mike Hibler committed
57 58
clean:		clean-subdirs
distclean:	distclean-subdirs
59

Mike Hibler's avatar
Mike Hibler committed
60 61 62 63 64
# How to recursively descend into subdirectories to make general
# targets such as `all'.
%.MAKE:
	@$(MAKE) -C $(dir $@) $(basename $(notdir $@))
%-subdirs: $(addsuffix /%.MAKE,$(SUBDIRS)) ;
65

66
.PHONY:	$(SUBDIRS) trafgen-fetch