# HOME set automatically # CONTESTANT set automatically # TASK set automatically ## FIXME: Rename? TASK_DIR="${HOME}/problems/${TASK}" SOL_DIR="${HOME}/solutions/${CONTESTANT}/${TASK}" TEST_DIR="${HOME}/testing/${CONTESTANT}/${TASK}" TASK_TYPE=batch ### Programming language settings # Known source file extensions EXTENSIONS="c cc C cpp p pas" # Some of the extensions can be aliases for other extensions ALIAS_EXT_cc=cpp ALIAS_EXT_C=cpp ALIAS_EXT_p=pas # SRC is auto ## Variables which control compilation and execution ## (see below for values for individual languages) # Command used to run the compiler COMP=false # Sandbox options used when compiling COMP_SANDBOX_OPTS='-m262144 -w60 -e -i/dev/null' # EXE is auto, but can be overridden # Command used to execute the compiled program, may be ./$PROGRAM (default) or an # interpreter with $PROGRAM as a parameter. TEST_EXEC_CMD=./$EXE ## Settings for individual languages # C EXT_c_COMP='/usr/bin/gcc -std=gnu99 -O2 -g -o $EXE $EXTRA_CFLAGS $SRC -lm' EXTRA_CFLAGS= # C++ EXT_cpp_COMP='/usr/bin/g++ -O2 -g -o $EXE $EXTRA_CXXFLAGS $SRC -lm' EXTRA_CXXFLAGS= # Pascal EXT_pas_COMP='/usr/bin/fpc -Ci -g -O2 -Sg -o$EXE $EXTRA_PFLAGS $SRC' EXTRA_PFLAGS= ### Per-task configuration variables (default values, override in per-task config) # List of extra files needed for compilation. They are copied to the compiler # sandbox from the problem's directory. XXX: or tdir #COMP_EXTRAS="extras.h"