Jump to content

Difference between MK_SET_OBJ and MK_ADD_OBJ in make script?


Recommended Posts

Posted

Hello,

could someone explain to me the difference between MK_SET_OBJ and MK_ADD_OBJ

in makefile.spec used for generating the makefile?

mostly I use something like this

MK_SET_OBJ pic18f452.c main.c
MK_ADD_OBJ myfile1.c myfile2.c

wich does the trick but I'd like to now why  :)

bye,

Michaël

Posted

Hi,

MK_SET_OBJ clears the object list and creates a new one. MK_ADD_OBJ adds objects to the current list.

It's just a preparation for an unimplemented feature, which would allow to build multiple .hex files with different objects with a single "make" run.

Best Regards, Thorsten.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...