CodeBlocks: how to run after creating from a custom makefile

I created CodeBlocks to create from a custom Makefile. Build works fine, but I cannot run the code from CodeBlocks.

To create a project on the command line, I use simple commands make, and for cleaning - make clean. It generates an executable file: mainwhich I run./main

I am trying to match this with the settings available in code blocks that have the following meanings.

  • Build a project / goal: $make -f $makefile $target
  • Compile a single file: $make -f $makefile $file
  • The net goal of the project: $make -f $makefile clean$target

How can I do a mapping and how to start a project?

+3
source share
1 answer

Use makefilein code blocks only changes the build process.

Output Output.

[] → → []

./main

+2

Source: https://habr.com/ru/post/1786824/


All Articles