# Makefile for src/mod/dns.mod/.
#
# $Id: Makefile.in,v 1.8 2004-12-02 22:15:53 wcc Exp $

MOD_NAME = dns
RESLIB = @RESLIB@
RESINCLUDE = @RESINCLUDE@
srcdir = .


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

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

modules: ../../../$(MOD_NAME).$(MOD_EXT)

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

../../../$(MOD_NAME).$(MOD_EXT): ../$(MOD_NAME).o
	$(LD) -o ../../../$(MOD_NAME).$(MOD_EXT) ../$(MOD_NAME).o $(RESLIB) $(XLIBS) $(MODULE_XLIBS)
	$(STRIP) ../../../$(MOD_NAME).$(MOD_EXT)

depend:
	$(CC) $(CFLAGS) -MM $(MOD_NAME).c -MT ../$(MOD_NAME).o > .depend

clean:
	@rm -f .depend *.o *.$(MOD_EXT) *~

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

#safety hash
../dns.o: dns.c ../../../src/mod/module.h ../../../src/main.h \
  ../../../config.h ../../../lush.h ../../../src/eggdrop.h \
  ../../../src/types.h ../../../src/debug.h ../../../src/logfile.h \
  ../../../src/lang.h ../../../src/flags.h ../../../src/language.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/compat/strftime.h \
  ../../../src/mod/modvals.h ../../../src/botmsg.h ../../../src/dcc.h \
  ../../../src/dccutil.h ../../../src/dns.h ../../../src/misc.h \
  ../../../src/net.h dns.h coredns.c
