GNUmakefile.in 842 Bytes
Newer Older
Leigh B. Stoller's avatar
Leigh B. Stoller committed
1 2
#
# EMULAB-COPYRIGHT
3
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
4 5 6
# All rights reserved.
#

7 8 9 10 11 12 13 14 15 16 17 18 19 20
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= event/delay-agent

include $(OBJDIR)/Makeconf

all:	delay-agent

include $(TESTBED_SRCDIR)/GNUmakerules

#CFLAGS  += -DDEBUG
CFLAGS	 += -O -g -Wall
CFLAGS   += -I. -I${OBJDIR} -I$(SRCDIR)/../lib -I$(TESTBED_SRCDIR)/lib/libtb
21
CFLAGS   += `elvin-config --cflags vin4c`
22

23
LDFLAGS  += -static
24
LDFLAGS  += -L../lib -L${OBJDIR}/lib/libtb
25
LIBS     += -levent -ltb -lcrypto
26
LIBS     += `elvin-config --libs vin4c`
27 28 29 30 31 32 33 34

OBJS	  = main.o callback.o

delay-agent:	$(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

$(OBJS):	main.h ../lib/libevent.a

35
client-install: 
36
	$(INSTALL_PROGRAM) delay-agent $(DESTDIR)$(CLIENT_BINDIR)/delay-agent
37 38 39

clean:
	/bin/rm -f *.o delay-agent