Shop OBEX P1 Docs P2 Docs Learn Events
SimpleIDE and building with MAKEFILE — Parallax Forums

SimpleIDE and building with MAKEFILE

LoopyBytelooseLoopyByteloose Posts: 12,537
edited 2014-04-12 04:06 in Propeller 1
This may have been discussed before, but a Google search seems to not find anything.

I have an existing .zip from GITHUB of a rather ambitious C program. Everything is constructed about a Makefile that controls the Build. So how so SimpleIDE deal with the use of Makefile? My context is Debian 7.1.x Linux

Comments

  • ersmithersmith Posts: 6,054
    edited 2014-04-11 05:35
    You don't have to use SimpleIDE... in fact I very rarely do. If you already have a Makefile, you can modify it to use the propeller tools (something like changing CC=gcc to CC=propeller-elf-gcc, and CXX=g++ to CXX=propeller-elf-g++) and just build the project with make.

    Of course, porting to the Propeller may be a little more complicated than that, especially for an "ambitious" program. You will probably have to use CMM or XMMC if the program is larger. Does it have hardware dependencies?
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-04-11 05:51
    Well, yes... it is an ambitious compile and it does have quite a bit of hardware dependences. Jazzed and Martin H. are helping me with those issues in a separate thread (it is an Ardunio port).
    But your approach makes a lot of sense. It is certainly easy enough to reassingn the CC and CXX links and to run trial builds to see what the error reports are. (That's the first step.)

    I guess what you are saying is that SimpeIDE is best used for GCC without the Makefile. That makes sense to me.
  • jazzedjazzed Posts: 11,803
    edited 2014-04-11 09:46
    I guess what you are saying is that SimpeIDE is best used for GCC without the Makefile. That makes sense to me.

    Makefiles are not simple. ;-) Even if you know Makefiles inside and out they can be difficult.

    SimpleIDE does not require something so difficult ;-)

    There was some thought given to supporting a Makefile mode, but in the end the truth is that most people who use make will use the editor that makes sense to them. Those are the same people who typically would not like SimpleIDE in the first place, so any effort there is totally wasted.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-04-12 04:06
    "Makefiles are not simple"

    Yes indeed, I can relate quite directly and am trying to eliminate this aspect from my Arduino to Propeller port. So it becomes a project of pruning down unnecessary layers of conditional programing and cleaning up what is less.

    Linux documentation has whole tutorials on Make (that is the command to call a Makefile). I am reading that material to help me get rid of the Makefile in my situation.

    +++++++++++++++
    In many ways I am pleased that SimpleIDE doesn't even try to support Makefiles. Keep it Simple, and new users will acquire confidence faster and likely learn more of the long haul.

    An OS like Linux really needs MakeFile as the system is vast, but a Propeller is tiny in comparison.
Sign In or Register to comment.