# (c) 2008 Martin Mares <mj@ucw.cz>
DIRS+=mop
-PROGS+=$(addprefix $(o)/mop/,md5crypt)
-$(o)/mop/md5crypt: $(o)/mop/md5crypt.o $(LIBUCW)
+include mop/admin/Makefile
+include mop/eval/Makefile
+include mop/public/Makefile
+include mop/score/Makefile
CONFIGS+=mop
run/cf/mop: $(o)/mop/mop.cf
--- /dev/null
+# Makefile for MO-P contest environment
+# (c) 2008 Martin Mares <mj@ucw.cz>
+
+DIRS+=mop/admin
+PROGS+=$(addprefix $(o)/mop/admin/,\
+ md5crypt \
+ mo-backup mo-back-status \
+ mo-install mo-create-contestants mo-create-eval mo-create-logins \
+ mo-create-packages mo-create-public mo-create-submit mo-create-testusers \
+ mo-grab mo-back-grab mo-grab-remote \
+ mo-push-certs mo-push-feedback)
+
+$(o)/mop/admin/md5crypt: $(o)/mop/admin/md5crypt.o $(LIBUCW)
+
+$(o)/mop/admin/mo-back-grab: mop/admin/mo-back-grab.sh
+$(o)/mop/admin/mo-back-status: mop/admin/mo-back-status.sh
+$(o)/mop/admin/mo-backup: mop/admin/mo-backup.sh
+$(o)/mop/admin/mo-create-contestants: mop/admin/mo-create-contestants.sh
+$(o)/mop/admin/mo-create-eval: mop/admin/mo-create-eval.sh
+$(o)/mop/admin/mo-create-logins: mop/admin/mo-create-logins.sh
+$(o)/mop/admin/mo-create-packages: mop/admin/mo-create-packages.sh
+$(o)/mop/admin/mo-create-public: mop/admin/mo-create-public.sh
+$(o)/mop/admin/mo-create-submit: mop/admin/mo-create-submit.sh
+$(o)/mop/admin/mo-create-testusers: mop/admin/mo-create-testusers.sh
+$(o)/mop/admin/mo-grab-remote: mop/admin/mo-grab-remote.sh
+$(o)/mop/admin/mo-grab: mop/admin/mo-grab.sh
+$(o)/mop/admin/mo-install: mop/admin/mo-install.sh
+$(o)/mop/admin/mo-push-certs: mop/admin/mo-push-certs.sh
+$(o)/mop/admin/mo-push-feedback: mop/admin/mo-push-feedback.sh
--- /dev/null
+# Makefile for MO-P contest environment
+# (c) 2008 Martin Mares <mj@ucw.cz>
+
+DIRS+=mop/eval
+PROGS+=$(addprefix $(o)/mop/eval/,\
+ mo-ev-all mo-ev-inc mo-get-users \
+ mo-score mo-report)
+
+$(o)/mop/eval/mo-ev-all: mop/eval/mo-ev-all.sh
+$(o)/mop/eval/mo-ev-inc: mop/eval/mo-ev-inc.sh
+$(o)/mop/eval/mo-get-users: mop/eval/mo-get-users.sh
+$(o)/mop/eval/mo-report: mop/eval/mo-report.sh
+$(o)/mop/eval/mo-score: mop/eval/mo-score.sh
--- /dev/null
+# Makefile for MO-P contest environment
+# (c) 2008 Martin Mares <mj@ucw.cz>
+
+DIRS+=mop/public
+PROGS+=$(addprefix $(o)/mop/public/,check compile status submit)
+
+$(o)/mop/public/check: mop/public/check.sh
+$(o)/mop/public/compile: mop/public/compile.sh
+$(o)/mop/public/status: mop/public/status.sh
+$(o)/mop/public/submit: mop/public/submit.sh
--- /dev/null
+# Makefile for MO-P contest environment
+# (c) 2008 Martin Mares <mj@ucw.cz>
+
+DIRS+=mop/score
+PROGS+=$(addprefix $(o)/mop/score/,mo-score-mop mo-score-mop-formatted)
+
+$(o)/mop/score/mo-score-mop-formatted: mop/score/mo-score-mop-formatted.sh
+$(o)/mop/score/mo-score-mop: mop/score/mo-score-mop.sh