# Makefile
#
# Keepalived OpenSource project.
#
# Copyright (C) 2001-2011 Alexandre Cassen, <acassen@linux-vs.org>

CC	 = @CC@
INCLUDES = -I.
CFLAGS	 = $(INCLUDES) @CFLAGS@ @CPPFLAGS@ \
	   -Wall -Wunused -Wstrict-prototypes
DEFS	 = @DFLAGS@ -D@SNMP_SUPPORT@
COMPILE	 = $(CC) $(CFLAGS) $(DEFS)

OBJS = 	memory.o utils.o notify.o timer.o scheduler.o \
	vector.o list.o html.o parser.o signals.o logger.o
HEADERS = $(OBJS:.o=.h)

.c.o:
	$(COMPILE) -c $<

all:	$(OBJS)

clean:
	rm -f *.a *.o *~

distclean: clean
	rm -f config.h
	rm -f Makefile

memory.o: memory.c memory.h utils.h bitops.h
utils.o: utils.c utils.h memory.h
notify.o: notify.c notify.h
timer.o: timer.c timer.h
scheduler.o: scheduler.c scheduler.h memory.h utils.h
vector.o: vector.c vector.h memory.h
list.o: list.c list.h memory.h
html.o: html.c html.h memory.h
parser.o: parser.c parser.h memory.h
signals.o: signals.c signals.h
logger.o: logger.c logger.h
