GNUmakefile.in 856 Bytes
Newer Older
Leigh Stoller's avatar
Leigh Stoller committed
1 2
#
# EMULAB-COPYRIGHT
3
# Copyright (c) 2000-2002, 2006 University of Utah and the Flux Group.
Leigh Stoller's avatar
Leigh Stoller committed
4 5
# All rights reserved.
#
6 7 8 9 10 11 12
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= ipod

include $(OBJDIR)/Makeconf

13
all: ipod apod
14

15 16 17 18 19
# These scripts installed setuid, with sudo. 
SETUID_BIN_SCRIPTS   = 
SETUID_SBIN_SCRIPTS  = ipod apod
SETUID_LIBX_SCRIPTS  =

20 21 22 23 24 25 26
include $(TESTBED_SRCDIR)/GNUmakerules

CFLAGS= -g -O2

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

27
install: all $(INSTALL_SBINDIR)/ipod $(INSTALL_SBINDIR)/apod
28 29 30 31 32
	echo "Don't forget to do a post-install as root"

post-install:
	chown root $(INSTALL_SBINDIR)/ipod
	chmod u+s $(INSTALL_SBINDIR)/ipod
33 34
	chown root $(INSTALL_SBINDIR)/apod
	chmod u+s $(INSTALL_SBINDIR)/apod
35 36 37 38 39 40 41 42

#
# Control node installation (okay, plastic)
#
control-install:
	@echo "No wrapper for IPOD yet"

clean:
43
	rm -f ipod apod