]> mj.ucw.cz Git - eval.git/blob - config
Extra flags separated for C and Pascal.
[eval.git] / config
1 # Configuration file for MO Evaluator
2 # (c) 2001 Martin Mares <mj@ucw.cz>
3
4 # Directories and users
5 MO_ROOT=/home/mo
6 EVAL_USER=mo-eval
7 EVAL_GROUP=mo-eval
8 TEST_USERS="mo-test1 mo-test2"
9
10 # UID range assigned to contestants
11 CT_UID_MIN=21000
12 CT_UID_MAX=29999
13
14 # Test user for sandboxing
15 TEST_USER=${TEST_USER:mo-test1}
16
17 ### all of the following variables can be overriden in per-task config file
18
19 # Default task type (file or interactive)
20 TASK_TYPE=file
21
22 # Known source file extensions
23 EXTENSIONS="c C cpp p pas"
24
25 # Extra compiler flags for C (null, but can be overriden)
26 EXTRA_CFLAGS=
27
28 # Extra compiler flags for Pascal
29 EXTRA_PFLAGS=
30
31 # For each source extension, we must give compiler command
32 COMP_c='/usr/bin/gcc -O2 -g -o $EXE $EXTRA_CFLAGS $SRC'
33 COMP_C='/usr/bin/g++ -O2 -g -o $EXE $EXTRA_CFLAGS $SRC'
34 COMP_cpp="$COMP_C"
35 COMP_p='/usr/bin/fpc -Ci -Cr -g -O2 -So -Sg -o$EXE $EXTRA_PFLAGS $SRC'
36 COMP_pas="$COMP_p"
37
38 # Sandbox options used when compiling
39 COMP_SANDBOX_OPTS='-m65536 -t60 -w -e'
40
41 # Sandbox initializaton commands for compilation
42 COMP_SANDBOX_INIT=
43
44 # Sandbox options used when testing
45 TEST_SANDBOX_OPTS='-a2 -f -m$MEM_LIMIT -t$TIME_LIMIT'
46 # -w for wall clock measuring
47 # For stdio tasks append '-i$PROBLEM.in -o$PROBLEM.out'
48 SANDBOX_INIT=