mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-17 15:36:50 +00:00
honor arm-linux- during configure to be able to cross compile
This commit is contained in:
parent
2976ed8cd7
commit
9f85fb084e
8
README
8
README
@ -33,6 +33,8 @@ To compile the source:
|
|||||||
3) ./configure
|
3) ./configure
|
||||||
-- This script will prompt you for features to include or exclude,
|
-- This script will prompt you for features to include or exclude,
|
||||||
going with the default is not a bad idea.
|
going with the default is not a bad idea.
|
||||||
|
If you want to cross compile export the prefix of your toolchain:
|
||||||
|
export CROSS_COMPILE="armv7a-hardfloat-linux-gnueabi-"
|
||||||
|
|
||||||
4) make clean install
|
4) make clean install
|
||||||
|
|
||||||
@ -57,7 +59,7 @@ Quick steps:
|
|||||||
-- replace ''pico'' with your favourite text editor, look through
|
-- replace ''pico'' with your favourite text editor, look through
|
||||||
the file for sections to change, you will have to remove lines
|
the file for sections to change, you will have to remove lines
|
||||||
in order to get the bot to work. Check the file completely!
|
in order to get the bot to work. Check the file completely!
|
||||||
|
|
||||||
3) make a userfile
|
3) make a userfile
|
||||||
|
|
||||||
construct a temporary file (trick.conf) containing;
|
construct a temporary file (trick.conf) containing;
|
||||||
@ -75,7 +77,7 @@ Quick steps:
|
|||||||
re-use the filename you selected in your proper configuration
|
re-use the filename you selected in your proper configuration
|
||||||
file. and remember to 'rm -f mech.session' if you compiled your
|
file. and remember to 'rm -f mech.session' if you compiled your
|
||||||
energymech with session support.
|
energymech with session support.
|
||||||
|
|
||||||
4) ./energymech
|
4) ./energymech
|
||||||
|
|
||||||
That should get you running. If you don't see your bot come on IRC
|
That should get you running. If you don't see your bot come on IRC
|
||||||
@ -102,7 +104,7 @@ More Help?
|
|||||||
|
|
||||||
Read the website for goodness sake! Thats what its there for!
|
Read the website for goodness sake! Thats what its there for!
|
||||||
|
|
||||||
#emech is not a help channel
|
#emech is not a help channel
|
||||||
|
|
||||||
If you HAVE to ask a question in #emech then make damn sure that
|
If you HAVE to ask a question in #emech then make damn sure that
|
||||||
its not covered by the website documentation and try to ask it in
|
its not covered by the website documentation and try to ask it in
|
||||||
|
|||||||
100
src/Makefile.in
100
src/Makefile.in
@ -1,4 +1,4 @@
|
|||||||
#
|
#
|
||||||
# EnergyMech, IRC bot software
|
# EnergyMech, IRC bot software
|
||||||
# Copyright (c) 1997-2009 proton
|
# Copyright (c) 1997-2009 proton
|
||||||
#
|
#
|
||||||
@ -69,13 +69,13 @@ clean: FORCE
|
|||||||
$(RM) $(INSTALLNAME) gencmd mcmd.h core $(OFILES)
|
$(RM) $(INSTALLNAME) gencmd mcmd.h core $(OFILES)
|
||||||
|
|
||||||
$(INSTALLNAME): $(OFILES)
|
$(INSTALLNAME): $(OFILES)
|
||||||
$(CC) $(LFLAGS) -o $(INSTALLNAME) $(OFILES) $(LPROF) $(LIBS) $(LDSCRIPT)
|
$(CROSS_COMPILE)$(CC) $(LFLAGS) -o $(INSTALLNAME) $(OFILES) $(LPROF) $(LIBS) $(LDSCRIPT)
|
||||||
@oc@ objcopy -R .note -R .comment $(INSTALLNAME)
|
@oc@ $(CROSS_COMPILE)objcopy -R .note -R .comment $(INSTALLNAME)
|
||||||
@sz@ size $(INSTALLNAME)
|
@sz@ size $(INSTALLNAME)
|
||||||
|
|
||||||
mega: $(SRCFILES) $(INCS) usage.h
|
mega: $(SRCFILES) $(INCS) usage.h
|
||||||
$(CC) $(CFLAGS) -o $(INSTALLNAME) mega.c $(LPROF) $(LIBS) $(LDSCRIPT) $(PYINCLUDE)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -o $(INSTALLNAME) mega.c $(LPROF) $(LIBS) $(LDSCRIPT) $(PYINCLUDE)
|
||||||
@oc@ objcopy -R .note -R .comment $(INSTALLNAME)
|
@oc@ $(CROSS_COMPILE)objcopy -R .note -R .comment $(INSTALLNAME)
|
||||||
@sz@ size $(INSTALLNAME)
|
@sz@ size $(INSTALLNAME)
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -83,13 +83,13 @@ mega: $(SRCFILES) $(INCS) usage.h
|
|||||||
#
|
#
|
||||||
|
|
||||||
$(INSTALLNAME)-static: $(OFILES)
|
$(INSTALLNAME)-static: $(OFILES)
|
||||||
$(CC) $(LFLAGS) -o $(INSTALLNAME) $(OFILES) $(LPROF) $(LIBS) $(LDSCRIPT) -static
|
$(CROSS_COMPILE)$(CC) $(LFLAGS) -o $(INSTALLNAME) $(OFILES) $(LPROF) $(LIBS) $(LDSCRIPT) -static
|
||||||
@oc@ objcopy -R .note -R .comment $(INSTALLNAME)
|
@oc@ $(CROSS_COMPILE)objcopy -R .note -R .comment $(INSTALLNAME)
|
||||||
@sz@ size $(INSTALLNAME)
|
@sz@ size $(INSTALLNAME)
|
||||||
|
|
||||||
mega-static: $(SRCFILES) $(INCS) usage.h
|
mega-static: $(SRCFILES) $(INCS) usage.h
|
||||||
$(CC) $(CFLAGS) -o $(INSTALLNAME) mega.c $(LPROF) $(LIBS) $(LDSCRIPT) $(PYINCLUDE) -static
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -o $(INSTALLNAME) mega.c $(LPROF) $(LIBS) $(LDSCRIPT) $(PYINCLUDE) -static
|
||||||
@oc@ objcopy -R .note -R .comment $(INSTALLNAME)
|
@oc@ $(CROSS_COMPILE)objcopy -R .note -R .comment $(INSTALLNAME)
|
||||||
@sz@ size $(INSTALLNAME)
|
@sz@ size $(INSTALLNAME)
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -97,126 +97,126 @@ mega-static: $(SRCFILES) $(INCS) usage.h
|
|||||||
#
|
#
|
||||||
|
|
||||||
alias.o: alias.c $(INCS)
|
alias.o: alias.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
auth.o: auth.c $(INCS)
|
auth.o: auth.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
bounce.o: bounce.c $(INCS)
|
bounce.o: bounce.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
chanban.o: chanban.c $(INCS)
|
chanban.o: chanban.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
channel.o: channel.c $(INCS)
|
channel.o: channel.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
core.o: core.c $(INCS) settings.h
|
core.o: core.c $(INCS) settings.h
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
ctcp.o: ctcp.c $(INCS)
|
ctcp.o: ctcp.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
debug.o: debug.c $(INCS) settings.h
|
debug.o: debug.c $(INCS) settings.h
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF) $(PYINCLUDE)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF) $(PYINCLUDE)
|
||||||
|
|
||||||
dns.o: dns.c $(INCS)
|
dns.o: dns.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
dynamode.o: dynamode.c $(INCS)
|
dynamode.o: dynamode.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
function.o: function.c $(INCS)
|
function.o: function.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
greet.o: greet.c $(INCS)
|
greet.o: greet.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
help.o: help.c $(INCS) usage.h
|
help.o: help.c $(INCS) usage.h
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
irc.o: irc.c $(INCS)
|
irc.o: irc.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
kicksay.o: kicksay.c $(INCS)
|
kicksay.o: kicksay.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
main.o: main.c $(INCS)
|
main.o: main.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF) $(PYINCLUDE)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF) $(PYINCLUDE)
|
||||||
|
|
||||||
net.o: net.c $(INCS)
|
net.o: net.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
net_chan.o: net_chan.c $(INCS)
|
net_chan.o: net_chan.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
note.o: note.c $(INCS)
|
note.o: note.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
notify.o: notify.c $(INCS)
|
notify.o: notify.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
ons.o: ons.c $(INCS)
|
ons.o: ons.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
parse.o: parse.c $(INCS)
|
parse.o: parse.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
perl.o: perl.c $(INCS)
|
perl.o: perl.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
prot.o: prot.c $(INCS)
|
prot.o: prot.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
python.o: python.c $(INCS)
|
python.o: python.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF) $(PYINCLUDE)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF) $(PYINCLUDE)
|
||||||
|
|
||||||
redirect.o: redirect.c $(INCS)
|
redirect.o: redirect.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
reset.o: reset.c $(INCS)
|
reset.o: reset.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
seen.o: seen.c $(INCS)
|
seen.o: seen.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
shit.o: shit.c $(INCS)
|
shit.o: shit.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
socket.o: socket.c $(INCS)
|
socket.o: socket.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
spy.o: spy.c $(INCS)
|
spy.o: spy.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
stats.o: stats.c $(INCS)
|
stats.o: stats.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
tcl.o: tcl.c $(INCS)
|
tcl.o: tcl.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
telnet.o: telnet.c $(INCS)
|
telnet.o: telnet.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
toybox.o: toybox.c $(INCS)
|
toybox.o: toybox.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
trivia.o: trivia.c $(INCS)
|
trivia.o: trivia.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
uptime.o: uptime.c $(INCS)
|
uptime.o: uptime.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
user.o: user.c $(INCS)
|
user.o: user.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
vars.o: vars.c $(INCS) settings.h
|
vars.o: vars.c $(INCS) settings.h
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
web.o: web.c $(INCS)
|
web.o: web.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< $(CPROF)
|
||||||
|
|
||||||
md5/md5.o: md5/md5.c $(INCS)
|
md5/md5.o: md5/md5.c $(INCS)
|
||||||
$(CC) $(CFLAGS) -c $< -o $@ -Imd5 $(CPROF)
|
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $< -o $@ -Imd5 $(CPROF)
|
||||||
|
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user