# Makefile for src/ SHELL = @SHELL@ top_srcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ @SET_MAKE@ CC = @CC@ LD = @CC@ STRIP = @STRIP@ CFLAGS = @CFLAGS@ -I.. -I$(top_srcdir) -I$(top_srcdir)/pack @DEFS@ $(CFLGS) CPPFLAGS = @CPPFLAGS@ eggdrop_objs = auth.o bg.o botcmd.o botmsg.o botnet.o \ chanprog.o cmds.o config.o crypt.o dcc.o dccutil.o dns.o flags.o \ main.o mem.o misc.o misc_file.o modules.o net.o \ rfc1459.o settings.o tcl.o tcldcc.o tclhash.o tclmisc.o \ tcluser.o userent.o userrec.o users.o MAKE_GENERIC = $(MAKE) 'MAKE=$(MAKE)' 'CC=$(CC)' 'LD=$(LD)' \ 'STRIP=$(STRIP)' 'CFLGS=$(CFLGS)' doofus: @echo "" @echo "Let's try this from the right directory..." @echo "" @cd .. && $(MAKE) ../$(EGGEXEC): build_msg $(eggdrop_objs) $(XREQS) compatability @echo "" @echo "Linking wraith... $(EGGBUILD)" @echo "" @touch mod/mod.xlibs @$(LD) -o ../$(EGGEXEC) $(eggdrop_objs) $(MODOBJS) $(XLIBS) compat/*.o `cat mod/mod.xlibs` @$(STRIP) ../$(EGGEXEC) @echo "Successful compile: $(EGGEXEC)" @echo "" $(EGGEXEC): ../stringfix ../$(EGGEXEC) clean: @rm -f .depend *.o *.a *~ x*.c depleaf: $(CC) $(CFLAGS) $(CPPFLAGS) -DLEAF -MM $(srcdir)/*.c > .depend dephub: $(CC) $(CFLAGS) $(CPPFLAGS) -DHUB -MM $(srcdir)/*.c > .depend build_msg: @echo "[*] Compiling core components" main.o: ../stringfix @cp -f main.c xmain.c @echo -e "Compiling: \033[1mmain\033[0m" @../stringfix xmain.c @$(CC) $(CFLAGS) -I$(top_srcdir) $(CPPFLAGS) '-DCCFLAGS="$(CC) $(CFLAGS) $(CPPFLAGS)"' \ '-DLDFLAGS="$(LD)"' '-DSTRIPFLAGS="$(STRIP)"' -c $(srcdir)/xmain.c -o main.o compatability: +@cd compat && $(MAKE_GENERIC) compat @echo "---------- Yeah! that's the compiling, now the linking! ----------" eggdrop.h: @echo "You do not have the eggdrop source!" @exit 1 .SUFFIXES: .SUFFIXES: .c .h .o .a .c.o: ../stringfix @cp -f $< x$< @echo -e "Compiling: \033[1m`basename $< .c`\033[0m" @../stringfix x$< @$(CC) $(CFLAGS) $(CPPFLAGS) -c x$< -o `basename $< .c`.o #safety hash ../stringfix: stringfix.c auth.o: auth.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h chan.h users.h compat/compat.h compat/inet_aton.h \ compat/inet_ntop.h ../src/main.h compat/snprintf.h compat/memset.h \ compat/memcpy.h compat/strcasecmp.h compat/strftime.h bg.o: bg.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \ bg.h botcmd.o: botcmd.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h tandem.h modules.h mod/modvals.h botmsg.o: botmsg.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h tandem.h botnet.o: botnet.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h tandem.h chanprog.o: chanprog.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h modules.h mod/modvals.h cmds.o: cmds.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \ tandem.h modules.h mod/modvals.h config.o: config.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h chan.h users.h compat/compat.h compat/inet_aton.h \ compat/inet_ntop.h ../src/main.h compat/snprintf.h compat/memset.h \ compat/memcpy.h compat/strcasecmp.h compat/strftime.h crypt.o: crypt.c main.h ../config.h ../pack/salt.h eggdrop.h proto.h \ ../lush.h misc_file.h compat/compat.h compat/inet_aton.h \ compat/inet_ntop.h ../src/main.h compat/snprintf.h compat/memset.h \ compat/memcpy.h compat/strcasecmp.h compat/strftime.h dcc.o: dcc.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \ modules.h mod/modvals.h tandem.h dccutil.o: dccutil.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h modules.h mod/modvals.h tandem.h dns.o: dns.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \ dns.h flags.o: flags.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h main.o: main.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \ modules.h mod/modvals.h tandem.h bg.h match.o: match.c ./main.h mem.o: mem.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \ mod/modvals.h misc.o: misc.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \ stat.h misc_file.o: misc_file.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h stat.h modules.o: modules.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h modules.h mod/modvals.h tandem.h net.o: net.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h rfc1459.o: rfc1459.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h settings.o: settings.c main.h ../config.h ../pack/conf.h eggdrop.h \ proto.h ../lush.h misc_file.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h stringfix.o: stringfix.c main.h ../config.h ../pack/conf.h eggdrop.h tcl.o: tcl.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h tcldcc.o: tcldcc.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h tandem.h modules.h mod/modvals.h tclhash.o: tclhash.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h match.c tclmisc.o: tclmisc.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h modules.h mod/modvals.h tandem.h tcluser.o: tcluser.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h tandem.h userent.o: userent.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h userrec.o: userrec.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h \ proto.h ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h \ users.h compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h \ compat/snprintf.h compat/memset.h compat/memcpy.h compat/strcasecmp.h \ compat/strftime.h modules.h mod/modvals.h tandem.h users.o: users.c main.h ../config.h ../pack/conf.h lang.h eggdrop.h flags.h proto.h \ ../lush.h misc_file.h cmdt.h tclegg.h tclhash.h chan.h users.h \ compat/compat.h compat/inet_aton.h compat/inet_ntop.h ../src/main.h compat/snprintf.h \ compat/memset.h compat/memcpy.h compat/strcasecmp.h compat/strftime.h \ modules.h mod/modvals.h tandem.h