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

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= event/linktest

SYSTEM	       := $(shell uname -s)

include $(OBJDIR)/Makeconf

16
all:	script
17
18
19
20
21
22
23
24
25

include $(TESTBED_SRCDIR)/GNUmakerules

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

LDFLAGS  += -static -L../lib -L${OBJDIR}/lib/libtb
26
LIBS     += -levent -ltb -lcrypto
27
28
29
30
31
LIBS     += `elvin-config --libs vin4c`
ifeq ($(SYSTEM),Linux)
LIBS     += -ldl
endif

32
33
OBJS	= linktest.o
TESTS	 = linktest
34

35
36
37
38
39
40
41
$(TESTS):	$(OBJS) script
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

$(OBJS):	linktest.h ../lib/libevent.a ../lib/event.h

script:	linktest.pl
	chmod 755 linktest.pl
42
43
44
45

install:

client-install: 
46
47
	$(INSTALL_TEST) $(TESTS) \
			$(DESTDIR)$(CLIENT_BINDIR)/$(TESTS)
48
49
50

clean:
	/bin/rm -f *.o $(TESTS)