NOTE: By default, there are no bin
folders.
toby@desktop:~/xo-online$ mkdir bin && mkdir tests/bin \
&& make
Once you have completed the setup step, simply run the server. If you are still in the root of the project, you'll need to run
toby@desktop:~/xo-online$ ./bin/server
for the server.
Conversely, if you would like to connect as a client:
toby@desktop:~/xo-online$ ./bin/client
If you would like to create only the server & client, omitting
the tests, simply only create a bin
folder within the root of the project.
toby@desktop:~/xo-online$ mkdir bin && make server client
If you would like the tests, you will need to have both
the bin
in the project root and the bin
in the test folder
toby@desktop:~/xo-online$ mkdir bin && tests/bin && make tests
To run every test, run the make test
command. As before,
this assumes that the bin
and tests/bin
folders are created.
toby@desktop:~/xo-online$ make test
Release builds are compiled without the -DDEBUG
flag
and -fsanitize=address
(Address Sanitizer)
They use a much higher level of optimisation compared to debug builds,
using -O3
rather than -O0
If you would like to compile the debug build, use the options
within the Makefile
:
...
OPT=-O0
CFLAGS=-Wall -Wextra -g -DDEBUG -fsanitize=address $(INCDIRS) $(OPT)
all: server client tests
...
May be useful..