# Makefile for src/mod/dns.mod/
# $Id: Makefile.in,v 1.5 2000/03/31 23:04:22 fabian Exp $

RESLIB = @RESLIB@
srcdir = .


doofus:
	@echo ""
	@echo "Let's try this from the right directory..."
	@echo ""
	@cd ../../../ && make

static: ../dns.o
	@echo "$(RESLIB)" >> ../mod.xlibs

modules: ../../../dns.so

../dns.o:
	$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/dns.c
	@rm -f ../dns.o
	mv dns.o ../

../../../dns.so: ../dns.o
	$(LD) -o ../../../dns.so ../dns.o $(RESLIB)
	$(STRIP) ../../../dns.so

depend:
	$(CC) $(CFLAGS) $(CPPFLAGS) -MM $(srcdir)/dns.c > .depend

clean:
	@rm -f .depend *.o *.so *~

distclean: clean
	@rm -f Makefile config.cache config.log config.status

#safety hash
../dns.o: .././dns.mod/dns.c ../../../src/mod/module.h \
 ../../../src/main.h ../../../src/lang.h ../../../src/eggdrop.h \
 ../../../src/flags.h ../../../src/proto.h ../../../lush.h \
 ../../../src/misc_file.h ../../../src/cmdt.h ../../../src/tclegg.h \
 ../../../src/tclhash.h ../../../src/chan.h ../../../src/users.h \
 ../../../src/compat/compat.h ../../../src/compat/inet_aton.h \
 ../../../src/compat/snprintf.h ../../../src/compat/memset.h \
 ../../../src/compat/memcpy.h ../../../src/compat/strcasecmp.h \
 ../../../src/mod/modvals.h ../../../src/tandem.h ../dns.mod/dns.h \
 ../dns.mod/coredns.c
