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

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= robots/vmcd

include $(OBJDIR)/Makeconf

Timothy Stack's avatar
   
Timothy Stack committed
14
PROGS = vmc-client vmcd
Timothy Stack's avatar
   
Timothy Stack committed
15
TESTS = test_vmc-client.sh
Timothy Stack's avatar
   
Timothy Stack committed
16
TESTS += test_vmcd.sh test_vmcd2.sh test_vmcd3.sh test_vmcd4.sh
Timothy Stack's avatar
   
Timothy Stack committed
17
18

all: $(PROGS)
19
20
21

include $(TESTBED_SRCDIR)/GNUmakerules

Timothy Stack's avatar
   
Timothy Stack committed
22
23
24
25
CFLAGS	       += -O -g -Wall -I${OBJDIR} -I/usr/local/include
CFLAGS	       += -I${SRCDIR}/../mtp
CFLAGS	       += -I${SRCDIR}/../../lib/libtb

26
27
28
29
30
31
32
33
34
35
36
37
38
39
ifeq ($(SYSTEM),Linux)
CFLAGS	       += -I${SRCDIR}/../mezzanine/libmezz -I${SRCDIR}/../mezzanine/mezzanine
CFLAGS         += -DHAVE_MEZZANINE
endif

LDFLAGS		= -L../mtp -L${OBJDIR}/lib/libtb -L${OBJDIR}/event/lib 
ifeq ($(SYSTEM),Linux)
LDFLAGS		= -L../mezzanine/libmezz
endif

LIBS	 += -lmtp -ltb -lm 
ifeq ($(SYSTEM),Linux)
LIBS     += -lmezz
endif
Timothy Stack's avatar
   
Timothy Stack committed
40
41
42

test_vmc-client.sh: vmc-client

Timothy Stack's avatar
   
Timothy Stack committed
43
44
test_vmcd.sh: vmcd

Timothy Stack's avatar
   
Timothy Stack committed
45
46
47
vmc-client: vmc-client.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)

Timothy Stack's avatar
   
Timothy Stack committed
48
49
50
vmcd: vmcd.o ../mtp/libmtp.a
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ vmcd.o $(LIBS)

51
52
clean:
	rm -f *.o