]> mj.ucw.cz Git - moe.git/blob - submit/Makefile
Isolate: Add informative error message for bad command-line usage.
[moe.git] / submit / Makefile
1 # Makefile for Moe submitter
2 # (c) 2008 Martin Mares <mj@ucw.cz>
3
4 SUBCF=$(LIBGCRYPT_CFLAGS) $(LIBGNUTLS_CFLAGS) $(GNUTLS_CFLAGS)
5 SUBLF=$(LIBGCRYPT_LIBS) $(LIBGNUTLS_LIBS) $(GNUTLS_LIBS)
6
7 DIRS+=submit
8 SDIR=$(o)/submit
9
10 ### The submit server ###
11
12 PROGS+=$(addprefix $(SDIR)/,submitd privkey connect)
13
14 $(SDIR)/submitd: $(addprefix $(SDIR)/,submitd.o commands.o tasks.o) $(LIBUCW) $(LIBSH)
15 $(SDIR)/submitd: CFLAGS+=$(SUBCF)
16 $(SDIR)/submitd: LIBS+=$(SUBLF)
17
18 $(SDIR)/connect: $(SDIR)/connect.o $(LIBUCW)
19 $(SDIR)/connect: CFLAGS+=$(SUBCF)
20 $(SDIR)/connect: LIBS+=$(SUBLF)
21
22 $(SDIR)/privkey: $(SDIR)/privkey.o $(LIBUCW)
23 $(SDIR)/privkey: CFLAGS+=$(SUBCF)
24 $(SDIR)/privkey: LIBS+=$(SUBLF)
25
26 CONFIGS+=submitd
27 run/cf/submitd: $(SDIR)/submitd.cf
28
29 ### Submitter perl module ###
30
31 EXTRA_RUNDIRS+=lib/perl5/MO
32 SUBMIT_PERL_MODS=$(o)/submit/Submit.pm
33 PROGS+=$(SUBMIT_PERL_MODS)
34
35 $(SUBMIT_PERL_MODS): PERL_MODULE_DIR=MO
36
37 ### The submit client and utilities ###
38
39 PROGS+=$(addprefix $(SDIR)/,contest create-certs remote-status remote-submit show-submits)
40
41 $(SDIR)/contest: $(s)/submit/contest.pl
42 $(SDIR)/create-certs: $(s)/submit/create-certs.sh
43 $(SDIR)/remote-status: $(s)/submit/remote-status.pl
44 $(SDIR)/remote-submit: $(s)/submit/remote-submit.pl
45 $(SDIR)/show-submits: $(s)/submit/show-submits.pl
46
47 DATAFILES+=$(addprefix $(SDIR)/,ca-cert.tpl client-cert.tpl server-cert.tpl)