Coder Social home page Coder Social logo

bashni's Introduction

bashni

Building

Normal Build

$ make
gcc -Wall -Wextra -Werror -c sysprak-client.c
gcc -Wall -Wextra -Werror -c performConnection.c
gcc -Wall -Wextra -Werror -c sharedMemory.c
gcc -Wall -Wextra -Werror -o sysprak-client sysprak-client.o performConnection.o sharedMemory.o

Debug Build

The debug build includes additional debug output and debug symbols.

$ make debug
rm -f *.o sysprak-client sysprak-client-debug
gcc -Wall -Wextra -Werror -DDEBUG -c sysprak-client.c
gcc -Wall -Wextra -Werror -DDEBUG -c performConnection.c
gcc -Wall -Wextra -Werror -DDEBUG -c sharedMemory.c
gcc -Wall -Wextra -Werror -DDEBUG -o sysprak-client sysprak-client.o performConnection.o sharedMemory.o
mv sysprak-client sysprak-client-debug

Cleanup

$ make clean
rm -f *.o sysprak-client sysprak-client-debug

Running the client

Either specify a valid game ID and optionally the desired player slot and run the client with the following make target:

GAME_ID=1231231231231 make play

Or run the executable manually and pass the game ID and player slot either via the environment variables or command-line parameters:

PLAYER=1 ./sysprak-client -g 1231231231231 -c custom-client.conf

Release

Create the ZIP archive ready for submission:

$ make release
rm -f *.o sysprak-client sysprak-client-debug abgabe.zip
zip -r abgabe.zip . -x @.zip-excludes
  adding: sharedMemory.h (deflated 52%)
  .....
  adding: config.o (deflated 69%)

and then make sure, that it is small enough (lt 512KB):

$ du -h abgabe.zip
22K	abgabe.zip

Testing

Run the official testscript with any build directory name and file for the valgrind log and provide the path to the release archive (see Release above).

$ ./sysprak-abgabe.sh build_dir valgrind_log.txt abgabe.zip

bashni's People

Contributors

egecimsir avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.