]> mj.ucw.cz Git - moe.git/blob - t/config
Parts of compilation
[moe.git] / t / config
1 # HOME set automatically
2 # CONTESTANT set automatically
3 # TASK set automatically
4 ## FIXME: Rename?
5 TASK_DIR="${HOME}/problems/${TASK}"
6 SOL_DIR="${HOME}/solutions/${CONTESTANT}/${TASK}"
7 TEST_DIR="${HOME}/testing/${CONTESTANT}/${TASK}"
8
9 TASK_TYPE=batch
10
11 ### Programming language settings
12
13 # Known source file extensions
14 EXTENSIONS="c cc C cpp p pas"
15
16 # Some of the extensions can be aliases for other extensions
17 ALIAS_EXT_cc=cpp
18 ALIAS_EXT_C=cpp
19 ALIAS_EXT_p=pas
20
21 # SRC is auto
22
23 ## Variables which control compilation and execution
24 ## (see below for values for individual languages)
25
26 # Command used to run the compiler
27 COMP=false
28
29 # Sandbox options used when compiling
30 COMP_SANDBOX_OPTS='-m262144 -w60 -e -i/dev/null'
31
32 # EXE is auto, but can be overridden
33
34 # Command used to execute the compiled program, may be ./$PROGRAM (default) or an
35 # interpreter with $PROGRAM as a parameter.
36 TEST_EXEC_CMD=./$EXE
37
38 ## Settings for individual languages
39
40 # C
41 EXT_c_COMP='/usr/bin/gcc -std=gnu99 -O2 -g -o $EXE $EXTRA_CFLAGS $SRC -lm'
42 EXTRA_CFLAGS=
43
44 # C++
45 EXT_cpp_COMP='/usr/bin/g++ -O2 -g -o $EXE $EXTRA_CXXFLAGS $SRC -lm'
46 EXTRA_CXXFLAGS=
47
48 # Pascal
49 EXT_pas_COMP='/usr/bin/fpc -Ci -g -O2 -Sg -o$EXE $EXTRA_PFLAGS $SRC'
50 EXTRA_PFLAGS=
51
52 ### Per-task configuration variables (default values, override in per-task config)
53
54 # List of extra files needed for compilation. They are copied to the compiler
55 # sandbox from the problem's directory. XXX: or tdir
56 #COMP_EXTRAS="extras.h"