Makefile.in 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. # Makefile for src/
  2. SHELL = @SHELL@
  3. top_srcdir = @top_srcdir@
  4. srcdir = @srcdir@
  5. VPATH = @srcdir@
  6. @SET_MAKE@
  7. CC = @CC@
  8. LD = @CC@
  9. STRIP = @STRIP@
  10. CFLAGS = @CFLAGS@ -I.. -I$(top_srcdir) -I$(top_srcdir)/pack @DEFS@ $(CFLGS)
  11. CPPFLAGS = @CPPFLAGS@
  12. eggdrop_objs = auth.o bg.o botcmd.o botmsg.o botnet.o \
  13. chanprog.o cmds.o config.o crypt.o dcc.o dccutil.o dns.o flags.o \
  14. main.o mem.o misc.o misc_file.o modules.o net.o \
  15. rfc1459.o settings.o tcl.o tcldcc.o tclhash.o tclmisc.o \
  16. tcluser.o userent.o userrec.o users.o
  17. MAKE_GENERIC = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \
  18. 'STRIP=$(STRIP)' 'CFLGS=$(CFLGS)'
  19. doofus:
  20. @echo ""
  21. @echo "Let's try this from the right directory..."
  22. @echo ""
  23. @cd .. && $(MAKE)
  24. makesalt: makesalt.c
  25. @echo -e "Compiling: \033[1mmakesalt\033[0m"
  26. @$(CC) $(CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/pack $(CPPFLAGS) makesalt.c -o makesalt
  27. @$(STRIP) makesalt
  28. makesettings: makesettings.c
  29. @echo -e "Compiling: \033[1mmakesettings\033[0m"
  30. @$(CC) $(CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/pack $(CPPFLAGS) makesettings.c -o makesettings
  31. @$(STRIP) makesettings
  32. stringfix: stringfix.c main.h ../config.h ../pack/conf.h eggdrop.h
  33. @echo -e "Compiling: \033[1mstringfix\033[0m"
  34. @$(CC) $(CFLAGS) -I$(top_srcdir) -I$(top_srcdir)/pack $(CPPFLAGS) stringfix.c -o stringfix
  35. @$(STRIP) stringfix
  36. ../$(EGGEXEC): build_msg $(eggdrop_objs) $(XREQS) compatability
  37. @echo ""
  38. @echo "Linking wraith... $(EGGBUILD)"
  39. @echo ""
  40. @touch mod/mod.xlibs
  41. @$(LD) -o ../$(EGGEXEC) $(eggdrop_objs) $(MODOBJS) $(XLIBS) compat/*.o `cat mod/mod.xlibs`
  42. @$(STRIP) ../$(EGGEXEC)
  43. @echo "Successful compile: $(EGGEXEC)"
  44. @echo ""
  45. $(EGGEXEC): stringfix ../$(EGGEXEC)
  46. clean:
  47. @rm -f .depend *.o *~ _*.c
  48. depleaf:
  49. $(CC) $(CFLAGS) $(CPPFLAGS) -DLEAF -MM $(srcdir)/*.c > .depend
  50. dephub:
  51. $(CC) $(CFLAGS) $(CPPFLAGS) -DHUB -MM $(srcdir)/*.c > .depend
  52. build_msg:
  53. @echo "[*] Compiling core components"
  54. main.o: stringfix
  55. @./stringfix main.c _main.c || cp -f main.c _main.c
  56. @echo -e "Compiling: \033[1mmain\033[0m"
  57. @$(CC) $(CFLAGS) -I$(top_srcdir) $(CPPFLAGS) '-DCCFLAGS="$(CC) $(CFLAGS) $(CPPFLAGS)"' \
  58. '-DLDFLAGS="$(LD)"' '-DSTRIPFLAGS="$(STRIP)"' -c $(srcdir)/_main.c -o main.o
  59. compatability:
  60. +@cd compat && $(MAKE_GENERIC) compat
  61. @echo "---------- Yeah! that's the compiling, now the linking! ----------"
  62. eggdrop.h:
  63. @echo "You do not have the eggdrop source!"
  64. @exit 1
  65. .SUFFIXES:
  66. .SUFFIXES: .c .h .o
  67. .c.o: stringfix
  68. @./stringfix $< _$< || cp -f $< _$<
  69. @echo -e "Compiling: \033[1m`basename $< .c`\033[0m"
  70. @$(CC) $(CFLAGS) $(CPPFLAGS) -c _$< -o `basename $< .c`.o
  71. #safety hash
  72. auth.o: auth.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  73. ../lush.h misc_file.h cmdt.h chan.h users.h compat/compat.h compat/inet_aton.h \
  74. compat/inet_ntop.h ../src/main.h compat/snprintf.h compat/memset.h \
  75. compat/memcpy.h compat/strcasecmp.h compat/strftime.h
  76. bg.o: bg.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  77. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  78. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  79. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
  80. bg.h
  81. botcmd.o: botcmd.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  82. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  83. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  84. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  85. compat/strftime.h tandem.h modules.h mod/modvals.h
  86. botmsg.o: botmsg.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  87. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  88. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  89. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  90. compat/strftime.h tandem.h
  91. botnet.o: botnet.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  92. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  93. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  94. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  95. compat/strftime.h tandem.h
  96. chanprog.o: chanprog.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  97. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  98. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  99. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  100. compat/strftime.h modules.h mod/modvals.h
  101. cmds.o: cmds.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  102. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  103. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  104. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
  105. tandem.h modules.h mod/modvals.h help.h
  106. config.o: config.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  107. ../lush.h misc_file.h cmdt.h chan.h users.h compat/compat.h compat/inet_aton.h \
  108. compat/inet_ntop.h ../src/main.h compat/snprintf.h compat/memset.h \
  109. compat/memcpy.h compat/strcasecmp.h compat/strftime.h
  110. crypt.o: crypt.c stringfix main.h ../config.h salt.h eggdrop.h proto.h \
  111. ../lush.h misc_file.h compat/compat.h compat/inet_aton.h \
  112. compat/inet_ntop.h ../src/main.h compat/snprintf.h compat/memset.h \
  113. compat/memcpy.h compat/strcasecmp.h compat/strftime.h
  114. dcc.o: dcc.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  115. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  116. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  117. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
  118. modules.h mod/modvals.h tandem.h
  119. dccutil.o: dccutil.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  120. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  121. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  122. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  123. compat/strftime.h modules.h mod/modvals.h tandem.h
  124. dns.o: dns.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  125. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  126. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  127. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
  128. dns.h
  129. flags.o: flags.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  130. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  131. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  132. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h
  133. main.o: main.c stringfix main.h build.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  134. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  135. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  136. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
  137. modules.h mod/modvals.h tandem.h bg.h
  138. match.o: match.c stringfix ./main.h
  139. mem.o: mem.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  140. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  141. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  142. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
  143. mod/modvals.h
  144. misc.o: misc.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  145. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  146. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  147. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
  148. stat.h help.h
  149. misc_file.o: misc_file.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  150. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  151. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  152. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  153. compat/strftime.h stat.h
  154. modules.o: modules.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  155. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  156. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  157. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  158. compat/strftime.h modules.h mod/modvals.h tandem.h
  159. net.o: net.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  160. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  161. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  162. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h
  163. rfc1459.o: rfc1459.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  164. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  165. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  166. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  167. compat/strftime.h
  168. settings.o: settings.c stringfix main.h ../config.h ../pack/conf.h eggdrop.h \
  169. proto.h ../lush.h misc_file.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h \
  170. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  171. compat/strftime.h
  172. tcl.o: tcl.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  173. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  174. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  175. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h
  176. tcldcc.o: tcldcc.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  177. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  178. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  179. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  180. compat/strftime.h tandem.h modules.h mod/modvals.h
  181. tclhash.o: tclhash.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  182. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  183. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  184. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  185. compat/strftime.h match.c
  186. tclmisc.o: tclmisc.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  187. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  188. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  189. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  190. compat/strftime.h modules.h mod/modvals.h tandem.h
  191. tcluser.o: tcluser.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  192. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  193. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  194. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  195. compat/strftime.h tandem.h
  196. userent.o: userent.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  197. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  198. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  199. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  200. compat/strftime.h
  201. userrec.o: userrec.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \
  202. proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \
  203. users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \
  204. compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \
  205. compat/strftime.h modules.h mod/modvals.h tandem.h
  206. users.o: users.c stringfix main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \
  207. ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \
  208. compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \
  209. compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \
  210. modules.h mod/modvals.h tandem.h
  211. #safety hash