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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...