Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Makefile for src/mod/ctcp.mod/
  2. srcdir = .
  3. doofus:
  4. @echo ""
  5. @echo "Let's try this from the right directory..."
  6. @echo ""
  7. @cd ../../../ && make
  8. static: ../ctcp.o
  9. ../ctcp.o:
  10. @echo -e "Compiling: \033[1mctcp\033[0m"
  11. @$(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c $(srcdir)/ctcp.c
  12. @rm -f ../ctcp.o
  13. @mv ctcp.o ../
  14. depend:
  15. @$(CC) $(CFLAGS) $(CPPFLAGS) -MM $(srcdir)/ctcp.c > .depend
  16. clean:
  17. @rm -f .depend *.o *~
  18. distclean: clean
  19. #safety hash
  20. ../ctcp.o: .././ctcp.mod/ctcp.c ../ctcp.mod/ctcp.h \
  21. ../../../src/mod/module.h \
  22. ../../../src/main.h ../../../config.h ../../../pack/conf.h \
  23. ../../../src/lang.h ../../../src/eggdrop.h ../../../src/flags.h \
  24. ../../../src/proto.h ../../../lush.h ../../../src/misc_file.h \
  25. ../../../src/cmdt.h ../../../src/tclegg.h ../../../src/tclhash.h \
  26. ../../../src/chan.h ../../../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 \
  31. ../../../src/mod/server.mod/server.h