GNUmakefile.in 802 Bytes
Newer Older
1 2
#
# EMULAB-COPYRIGHT
3
# Copyright (c) 2005, 2006 University of Utah and the Flux Group.
4 5 6 7 8 9 10 11 12 13
# All rights reserved.
#

SRCDIR          = @srcdir@
TESTBED_SRCDIR  = @top_srcdir@
OBJDIR          = ../..
SUBDIR          = tools/whol

include $(OBJDIR)/Makeconf

14 15 16 17 18
# These scripts installed setuid, with sudo. 
SETUID_BIN_SCRIPTS   = 
SETUID_SBIN_SCRIPTS  = whol
SETUID_LIBX_SCRIPTS  =

19 20 21 22 23 24 25 26 27 28 29 30
all: whol

include $(TESTBED_SRCDIR)/GNUmakerules

whol: GNUmakefile whol.o
	$(CC) $(CFLAGS) $(LDFLAGS) whol.o -o whol
		cp whol whol.debug
		strip whol

whol.o: whol.c
	$(CC) -c -o whol.o $(CFLAGS) $<

31 32 33 34 35 36
install boss-install: $(INSTALL_SBINDIR)/whol
	@echo "Don't forget to do a post-install as root"

post-install: 
	chown root $(INSTALL_SBINDIR)/whol
	chmod u+s $(INSTALL_SBINDIR)/whol
37 38 39

clean:
	rm -f *.o core whol whol.debug