GNUmakefile.in 1.83 KB
Newer Older
Leigh Stoller's avatar
Leigh Stoller committed
1
#
2
# Copyright (c) 2000-2018 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/>.
# 
# }}}
Leigh Stoller's avatar
Leigh Stoller committed
22 23 24 25 26
#
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= @top_builddir@
SUBDIR		= $(subst $(TESTBED_SRCDIR)/,,$(SRCDIR))
27
SYSTEM         := $(shell uname -s)
Leigh Stoller's avatar
Leigh Stoller committed
28 29 30

include $(OBJDIR)/Makeconf

31 32 33 34
# Cygwin doesn't support/provide pcap
ifeq ($(findstring CYGWIN_NT,$(SYSTEM)), CYGWIN_NT)
SUBDIRS		= 
else
Leigh Stoller's avatar
Leigh Stoller committed
35
SUBDIRS		= pcapper
36
endif
Leigh Stoller's avatar
Leigh Stoller committed
37 38 39 40 41

all:	all-subdirs

include $(TESTBED_SRCDIR)/GNUmakerules

42
boss-install:   all boss-install-subdirs
Leigh Stoller's avatar
Leigh Stoller committed
43 44 45
client:		client-subdirs
client-install: client client-install-subdirs
control-install: control-install-subdirs
46
fs-install:
Leigh Stoller's avatar
Leigh Stoller committed
47 48
subboss:
subboss-install:
Leigh Stoller's avatar
Leigh Stoller committed
49 50 51
post-install:	post-install-subdirs
clean:		clean-subdirs
distclean:	distclean-subdirs
Leigh Stoller's avatar
Leigh Stoller committed
52 53 54 55
mfs:
mfs-install:
frisbee-mfs:
frisbee-mfs-install:
56
onie-dongle-install: 
57

58
newnode-mfs:
59 60 61 62
	@$(MAKE) -C teachswitch all

newnode-mfs-install: newnode-mfs
	@$(MAKE) -C teachswitch client-install
Leigh Stoller's avatar
Leigh Stoller committed
63 64 65 66 67 68 69 70

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