CONFIG_MOP is not enabled by default yet.
include $(s)/submit/Makefile
endif
+ifdef CONFIG_MOP
+include $(s)/mop/Makefile
+endif
+
# And finally the default rules of the build system
include $(s)/build/Makebottom
Include Get("CONFIG");
Include "lib/autoconf.cfg";
-Set("CONFIG_UCW_LIBS" => 1);
+if (Get("CONFIG_SUBMIT") || Get("CONFIG_MOP")) {
+ # Build libucw only if it is needed
+ Set("CONFIG_UCW_LIBS" => 1);
+}
Finish();
Log "\nConfigured, run `make' to build everything.\n";
# Compile the submit server
Set("CONFIG_SUBMIT" => 1);
+# Build MO-P contest environment
+#Set("CONFIG_MOP" => 1);
+
# Settings of libucw
UnSet("CONFIG_SHARED");
UnSet("CONFIG_UCW_THREADS");
--- /dev/null
+# Makefile for MO-P contest environment
+# (c) 2008 Martin Mares <mj@ucw.cz>
+
+DIRS+=mop
+PROGS+=$(addprefix $(o)/mop/,md5crypt)
+
+$(o)/mop/md5crypt: $(o)/mop/md5crypt.o $(LIBUCW)
+
+CONFIGS+=mop
+run/cf/mop: $(o)/mop/mop.cf