GNUmakefile.in 681 Bytes
Newer Older
Robert Ricci's avatar
Robert Ricci committed
1
2
#
# EMULAB-COPYRIGHT
3
# Copyright (c) 2003, 2004 University of Utah and the Flux Group.
Robert Ricci's avatar
Robert Ricci committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# All rights reserved.
#

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

include $(OBJDIR)/Makeconf

all: teachswitch

include $(TESTBED_SRCDIR)/GNUmakerules

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

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

26
27
28
29
30
client-install: teachswitch
	$(INSTALL_PROGRAM) teachswitch $(DESTDIR)$(CLIENT_BINDIR)

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