re order the code

git-svn-id: https://svn.code.sf.net/p/moneymanagerex/code/trunk@6520 7f5d68d0-c712-0410-839f-9b116a576cc5
more updates so Makefile is more mac friendly

git-svn-id: https://svn.code.sf.net/p/moneymanagerex/code/trunk@6521 7f5d68d0-c712-0410-839f-9b116a576cc5
split huge function

git-svn-id: https://svn.code.sf.net/p/moneymanagerex/code/trunk@6522 7f5d68d0-c712-0410-839f-9b116a576cc5