Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
/ foc-fiar Public archive

Latest commit

 

History

History
77 lines (54 loc) · 1.48 KB

README.md

File metadata and controls

77 lines (54 loc) · 1.48 KB

Fondations of Cybersecurity - Four-In-A-Row

This project implements the game Connect 4 (Four-In-A-Row) Online.

Developed for the course of Foundations of Cybersecurity of the University of Pisa.

Prerequisites

  • git (of course!)
  • GNU Autotools (usually preinstalled)
  • GCC (or MinGW for Windows)
  • OpenSSL
  • LaTeX (TeX-Live for Unix/Win; MacTeX for OS X)

Compile

If it's the first time, or if any Makefile.am or configure.ac or any file under the m4/ directory has changed, run:

autoreconf --install
./configure

To disable the generation of the PDF, pass the --disable-latex-doc option to the configure call above:

./configure --disable-latex-doc

For debugging, use:

./configure --enable-memdbg --enable-warnings --enable-assertions

When the source is configured, run:

make

Executables will be placed under the client and server directories. Final report will be placed in doc/report.pdf.

VPATH Compile

Alternatively to the above, to avoid to waste the source folder with object files and binaries:

autoreconf --install
mkdir build && cd build
../configure
make

(configure must be run from the build/ directory)

Note that the report will be generated always in the top level doc directory.

Clean

To clean the working directory:

make clean

Or, more aggressively:

make maintainer-clean

After a maintainer-clean you need to rerun configure again to rebuild the project.