GNUmakefile 873 Bytes
Newer Older
1 2
#
# EMULAB-COPYRIGHT
Mike Hibler's avatar
Mike Hibler committed
3
# Copyright (c) 2007, 2008 University of Utah and the Flux Group.
4 5 6 7 8
# All rights reserved.
#
# Standalone makefile for building Flexlab binaries
#

Robert Ricci's avatar
Robert Ricci committed
9
SUBDIRS = libnetmon magent iperfd magent/UDP/UdpServerDir
10 11 12 13

all:   all-subdirs
clean: clean-subdirs

Mike Hibler's avatar
Mike Hibler committed
14 15 16
control-install:
	@$(MAKE) -C bgmon control-install

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

23 24 25 26 27 28 29 30 31 32 33 34 35 36
#
# Rules for making a distribution
#

# Files and directories to exclude
DISTFILE=flexlab-dist.tar.gz
EXCLUDES=CVS stub *.tar.gz supafly $(DISTFILE) *.core .\#* bgmon *.bak \
	 db doc schedmon iplane parastream .??*
	 
EXCLUDE_TARSTR=$(foreach pat,$(EXCLUDES),--exclude '$(pat)')

dist:
	$(MAKE) clean
	gtar czvf $(DISTFILE) $^ $(EXCLUDE_TARSTR) -C ../ pelab/