Makefile 692 Bytes
Newer Older
1 2
# Makefile for building event system tests
#
Ian Murdock's avatar
Ian Murdock committed
3
# $Id: Makefile,v 1.4 2002-01-29 17:24:58 imurdock Exp $
4 5 6 7

CC		= gcc
CFLAGS		= -g -I. -I../lib -Wall -DDEBUG
LDFLAGS		=
Ian Murdock's avatar
Ian Murdock committed
8
LIBS		= -lpthread -L../lib -levent
9 10 11 12 13 14 15 16 17 18

CFLAGS         += `elvin-config --cflags`
LIBS           += `elvin-config --libs`

MV		= mv -f
RM		= rm -f

tests		= test-consume \
	 	  test-produce \
		  test-attr-consume \
19 20
		  test-attr-produce \
		  test-queue \
Ian Murdock's avatar
Ian Murdock committed
21
		  test-sched-produce
22 23 24 25 26 27

%: %.c
	$(CC) $(LDFLAGS) -o $@ $(CFLAGS) $< $(LIBS) $(LIBS)

default: $(tests)

28 29 30
test-queue: ../sched/queue.c
	$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -DTEST_EVENT_QUEUES -I../sched \
	  $< $(LIBS) $(LIBS)
31 32

$(tests): ../lib/libevent.a
33 34 35

clean:
	$(RM) $(tests)