]> mj.ucw.cz Git - moe.git/blob - Makefile
MO-P: Templates
[moe.git] / Makefile
1 # Makefile for Moe
2 # (c) 2008--2012 Martin Mares <mj@ucw.cz>
3
4 VERSION=2.0
5 SHELL=/bin/bash
6
7 # The default target
8 all:: runtree programs datafiles configs
9
10 # Include configuration
11 s=.
12 -include obj/config.mk
13 obj/config.mk:
14         @echo "You need to run configure first." && false
15
16 ifdef CONFIG_DOC
17 all:: docs
18 endif
19
20 # We will use the libucw build system
21 BUILDSYS=$(s)/build
22 include $(BUILDSYS)/Maketop
23
24 # Include makefiles of libraries we wish to use
25 ifdef CONFIG_UCW_LIBS
26 include $(s)/ucw/Makefile
27 include $(s)/sherlock/Makefile
28 # Disable built-in tests and documentation of these libraries
29 TESTS=
30 DOCS=
31 DOC_INDICES=
32 endif
33
34 include $(s)/box/Makefile
35 include $(s)/isolate/Makefile
36 include $(s)/utils/Makefile
37 include $(s)/eval/Makefile
38 include $(s)/judge/Makefile
39
40 ifdef CONFIG_SUBMIT
41 include $(s)/submit/Makefile
42 endif
43
44 ifdef CONFIG_MOP
45 include $(s)/mop/Makefile
46 endif
47
48 # And finally the default rules of the build system
49 include $(BUILDSYS)/Makebottom