This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compile a selected file first in the project: pre-build and post build commands

Hi,

I need to execute the following custom build steps:

1.execute xx.bat file
2.Compile first.c. (This generates the header file used in rest of the project)
3.execute yy.bat
4. Compile all other files in the project.

Steps 1 and 3 are pre-build and post build commands of first .c

I would like to know how can I force the compiler to compile first.c first, 
as I have a dependency on the header file it generates.
I am using ccs 3.3

Regards,
Aadishri
  • Aadishri,

    Maybe you can have steps 1 - 3 all as a pre-build step for the whole project? basically for step two you could also do that by calling the compiler to build the file from the batch file.

    Thanks

    ki