News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Usage of builtin variable outside C::B

Started by effemmeffe, January 12, 2012, 01:30:55 PM

Previous topic - Next topic

effemmeffe

I was wondering if I can use some C::B builtin variables in a makefile.
I'd like to compile with a custom makefile and I need to know the target so I tried to use $(TARGET_NAME) in my makefile, but it seems it doesn't work...
Any help?

Jenna

You can add siomething like target=$target to the appropriate make-command (in Build options) and use it as $(target) inside the makefile.

This will work for gnu makefiles, don't know, if it also works with borland or msvc make-commands.

effemmeffe