GNUmakefile.in 1.88 KB
Newer Older
1
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2
# EMULAB-COPYRIGHT
3
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
4
# All rights reserved.
5
#
Leigh B. Stoller's avatar
Leigh B. 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
SUBDIRS		= lib tbgen trafgen program-agent proxy example linktest
17
ifeq ($(SYSTEM),FreeBSD)
18
SUBDIRS	       += sched delay-agent nsetrafgen stated
19
endif
20
21
22
23
24
25
26
27
28
29
30

all:	$(SUBDIRS)

include $(TESTBED_SRCDIR)/GNUmakerules

lib:
	@$(MAKE) -C lib all

sched:
	@$(MAKE) -C sched all

31
32
33
tbgen:
	@$(MAKE) -C tbgen all

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

Mike Hibler's avatar
Mike Hibler committed
37
trafgen:
38
	$(SRCDIR)/trafgen/tg-install $(SRCDIR)/trafgen
Mike Hibler's avatar
Mike Hibler committed
39
40
	@$(MAKE) -C trafgen all

41
nsetrafgen:
42
	@$(MAKE) -C nsetrafgen all
43

44
45
46
delay-agent:
	@$(MAKE) -C delay-agent all

47
48
49
program-agent:
	@$(MAKE) -C program-agent all

50
51
52
stated:
	@$(MAKE) -C stated all

53
54
55
proxy:
	@$(MAKE) -C proxy all

Leigh B. Stoller's avatar
Leigh B. Stoller committed
56
linktest:
57
58
	@$(MAKE) -C linktest all

59
60
61
install: 
	@$(MAKE) -C lib install
	@$(MAKE) -C sched install
62
	@$(MAKE) -C tbgen install
63
	@$(MAKE) -C stated install
64
	@$(MAKE) -C linktest install
65

66
client-install: lib
67
ifeq ($(SYSTEM),FreeBSD)
68
	@$(MAKE) -C delay-agent client-install
69
endif
70
	@$(MAKE) -C tbgen client-install
71
	@$(MAKE) -C program-agent client-install
72
	@$(MAKE) -C trafgen client-install
73
	@$(MAKE) -C proxy client-install
74
	@$(MAKE) -C linktest client-install
75

76
control-install: 
Leigh B. Stoller's avatar
Leigh B. Stoller committed
77
	@$(MAKE) -C lib control-install
78
79
	@$(MAKE) -C tbgen control-install

80
81
82
83
84
clean:		subdir-clean

subdir-clean:
	@$(MAKE) -C lib clean
	@$(MAKE) -C sched clean
85
	@$(MAKE) -C tbgen clean
86
	@$(MAKE) -C example clean
Mike Hibler's avatar
Mike Hibler committed
87
	@$(MAKE) -C trafgen clean
88
	@$(MAKE) -C delay-agent clean
89
	@$(MAKE) -C program-agent clean
90
91
92
93

distclean:	subdir-distclean

subdir-distclean:
94
95
96
97
	@$(MAKE) -C lib distclean
	@$(MAKE) -C sched distclean
	@$(MAKE) -C tbgen distclean
	@$(MAKE) -C example distclean
Mike Hibler's avatar
Mike Hibler committed
98
	@$(MAKE) -C trafgen distclean
99
	@$(MAKE) -C delay-agent distclean
100
	@$(MAKE) -C program-agent distclean
101
102
103

.PHONY:	$(SUBDIRS)