# Makefile for src/mod/bitchx.mod/

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

static: ../bitchx.o

modules: ../../../bitchx.so

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

../../../bitchx.so: ../bitchx.o
	$(LD) -o ../../../bitchx.so ../bitchx.o
	$(STRIP) ../../../bitchx.so

depend:
	$(CC) $(CFLAGS) $(CPPFLAGS) -MM *.c > .depend

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

#safety hash
../bitchx.o: bitchx.c bitchx.h ../module.h ../../../config.h ../../main.h \
 ../../lang.h ../../eggdrop.h ../../flags.h ../../proto.h \
 ../../../lush.h ../../cmdt.h ../../tclegg.h ../../tclhash.h \
 ../../chan.h ../../users.h ../modvals.h ../../tandem.h \
 ../server.mod/server.h
