Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Makefile for src/mod/irc.mod/
  2. srcdir = .
  3. doofus:
  4. @echo ""
  5. @echo "Let's try this from the right directory..."
  6. @echo ""
  7. @cd ../../../ && make
  8. static: ../irc.o
  9. ../irc.o:
  10. @echo -e "Compiling: \033[1m`basename $< .c`\033[0m"
  11. @$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/irc.c
  12. @rm -f ../irc.o
  13. @mv irc.o ../
  14. depend:
  15. @$(CC) $(CFLAGS) $(CPPFLAGS) -MM $(srcdir)/irc.c > .depend
  16. clean:
  17. @rm -f .depend *.o *~
  18. distclean: clean
  19. #safety hash
  20. ../irc.o: .././irc.mod/irc.c ../../../src/mod/module.h \
  21. ../../../src/main.h ../../../config.h ../../../pack/conf.h \
  22. ../../../src/lang.h \
  23. ../../../src/eggdrop.h ../../../src/flags.h ../../../src/proto.h \
  24. ../../../lush.h ../../../src/misc_file.h ../../../src/cmdt.h \
  25. ../../../src/tclegg.h ../../../src/tclhash.h ../../../src/chan.h \
  26. ../../../src/users.h ../../../src/compat/compat.h ../../../src/compat/inet_ntop.h \
  27. ../../../src/compat/inet_aton.h ../../../src/compat/snprintf.h \
  28. ../../../src/compat/memset.h ../../../src/compat/memcpy.h \
  29. ../../../src/compat/strcasecmp.h ../../../src/compat/strftime.h \
  30. ../../../src/mod/modvals.h ../../../src/tandem.h ../irc.mod/irc.h \
  31. ../../../src/mod/server.mod/server.h \
  32. ../../../src/mod/channels.mod/channels.h ../irc.mod/chan.c \
  33. ../irc.mod/mode.c ../irc.mod/cmdsirc.c ../irc.mod/msgcmds.c \
  34. ../irc.mod/tclirc.c