Skip to content

Latest commit

 

History

History
45 lines (24 loc) · 1.07 KB

COMPILE.md

File metadata and controls

45 lines (24 loc) · 1.07 KB

Compile Instructions

Compile

To be able to compile in GNU/Linux you need to get into src directory in your terminal. There you compile with

make all

it will create the program executable file inside the build directory.

Important: The makefile suppose you are using gcc version 9.0 or later.

Compile and run

If you want to run it, write in your terminal

make run

It will compile and run the program executable.

Compile and run with arguments

If you want to compile, and run with arguments, then you put

make ARGS="<here your arguments>" run

It will run program executable with the arguments contained in the ARGS variable.

Help

For help run the next command

make ARGS="-?" run

Is not sure that all the programs will have this.

Compile and run the test cases

If you want to compile, and run with the test cases, then you put

make test

It will run program executable with the test cases given in the test/in folder. They are all ran by the test.sh script.