This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

makefile

Hi

I am not very familiar with "makefiles". I read that is a way to tell the compiler the order and organization of the files; I guess it is like creating a project in uvision, but i am not sure. Anyway, i have a set of files that were created with a makefile, and i don't know hot to create the project from it, can anybody help me?

Thanks

Parents
  • I have several "build multiple" cases and I really doubt there is any way to make an IDE such as uVision do it.

    Sure there is. All it takes is to allow targets to be added as "things to be built" to other targets. Then all you have to do is to have a main target that includes all others, and building that will build them all, one after the other. uVision already gets the rest of the job right (easier than with makefiles, actually): it recognizes that if you change targets, all previous .obj files have to be recompiled, so "change target, build target" is automatically equivalent to "change target, rebuild target from scratch".

Reply
  • I have several "build multiple" cases and I really doubt there is any way to make an IDE such as uVision do it.

    Sure there is. All it takes is to allow targets to be added as "things to be built" to other targets. Then all you have to do is to have a main target that includes all others, and building that will build them all, one after the other. uVision already gets the rest of the job right (easier than with makefiles, actually): it recognizes that if you change targets, all previous .obj files have to be recompiled, so "change target, build target" is automatically equivalent to "change target, rebuild target from scratch".

Children
  • Hans-Bernhard,
    You just totally bypass the "target switching"

    an example from a .bat

    IF "%1"=="a"  goto lca
    IF "%1"=="aa" goto lcaa
    IF "%1"=="b"  goto lcb
    IF "%1"=="ba" goto lcba
    IF "%1"=="l"  goto lcl
    IF "%1"=="t"  goto lct
    :lca
    copy ..\sc\cond\sfa.h  condit.h		>..\trash\trashbin
    copy ..\ss\usmaina.c   usmain.x		>..\trash\trashbin
    copy ..\ss\usledst1.c  usledstb.x	>..\trash\trashbin
    copy ..\ss\ussgndv1.c  ussgndvr.x	>..\trash\trashbin
    goto lxx

    Erik