# Makefile for the Sherlock Gatherer Daemon (c) 2001 Martin Mares <mj@ucw.cz>

DIRS+=gather/daemon
PROGS+=$(addprefix obj/gather/daemon/,gatherd gc expire grecover)

GATHERD_OBJS=gatherd.o config.o db.o queue.o refs.o
GC_OBJS=gc.o config.o db.o queue.o refs.o
EXPIRE_OBJS=expire.o config.o db.o queue.o refs.o

obj/gather/daemon/gatherd: $(addprefix obj/gather/daemon/,$(GATHERD_OBJS)) \
	$(LIBGATH) $(LIBFILTER) $(LIBCHARSET) $(LIBSH)
obj/gather/daemon/gatherd: LIBS+=$(LIBGATH_LIBS)

obj/gather/daemon/gc: $(addprefix obj/gather/daemon/,$(GC_OBJS)) \
	$(LIBGATH) $(LIBFILTER) $(LIBCHARSET) $(LIBSH)
obj/gather/daemon/gc: LIBS+=$(LIBGATH_LIBS)

obj/gather/daemon/expire: $(addprefix obj/gather/daemon/,$(EXPIRE_OBJS)) \
	$(LIBGATH) $(LIBFILTER) $(LIBCHARSET) $(LIBSH)
obj/gather/daemon/expire: LIBS+=$(LIBGATH_LIBS)
