GNUmakefile.in 611 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ../..
SUBDIR		= event/sched

include $(OBJDIR)/Makeconf

all:	event-sched

include $(TESTBED_SRCDIR)/GNUmakerules

12
CFLAGS	 += -O -g -I. -I${OBJDIR} -I$(SRCDIR)/../lib -Wall -pthread -DDEBUG
13 14
CFLAGS   += `elvin-config --cflags vin4mt`

15 16
LDFLAGS  += -pthread -L../lib 
LIBS     += -levent -lcipher -L/usr/local/lib/mysql -lmysqlclient
17 18
LIBS     += `elvin-config --libs vin4mt`

19
OBJS	  = event-sched.o queue.o libdb.o
20 21 22 23

event-sched:	$(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

24
$(OBJS):	event-sched.h ../lib/libevent.a
25 26 27

clean:
	/bin/rm -f *.o event-sched