Makefile 752 B

1234567891011121314151617181920212223242526272829303132
  1. # Makefile for src/mod/stats.mod/
  2. doofus:
  3. @echo ""
  4. @echo "Let's try this from the right directory..."
  5. @echo ""
  6. @cd ../../../; make
  7. clean:
  8. @rm -f *.o *.$(MOD_EXT) *~
  9. static: ../stats.o
  10. modules: ../../../stats.$(MOD_EXT)
  11. ../stats.o: ../module.h ../modvals.h ../../eggdrop.h \
  12. egg_chancontrol.c pubcmds.c \
  13. core/sensors.c core/datahandling.c core/global_vars.c core/schan_members.c \
  14. stats.c tclstats.c core/misc.c core/dynamic_mem_debug.c core/userrec.c stats.h
  15. $(CC) $(CFLAGS) $(CPPFLAGS) -DMAKING_MODS -c stats.c
  16. rm -f ../stats.o
  17. mv stats.o ../
  18. ../../../stats.$(MOD_EXT): ../stats.o
  19. $(LD) -o ../../../stats.$(MOD_EXT) ../stats.o $(XLIBS)
  20. core: core.o
  21. core.o: core/core.c
  22. gcc -pipe -g -O2 -I. -g3 -DNO_EGG core/core.c
  23. #safety hash