1 # Makefile for Moe submitter
2 # (c) 2008 Martin Mares <mj@ucw.cz>
4 SUBCF=$(LIBGCRYPT_CFLAGS) $(LIBGNUTLS_CFLAGS) $(GNUTLS_CFLAGS)
5 SUBLF=$(LIBGCRYPT_LIBS) $(LIBGNUTLS_LIBS) $(GNUTLS_LIBS)
10 ### The submit server ###
12 PROGS+=$(addprefix $(SDIR)/,submitd privkey connect)
14 $(SDIR)/submitd: $(addprefix $(SDIR)/,submitd.o commands.o tasks.o) $(LIBUCW) $(LIBSH)
15 $(SDIR)/submitd: CFLAGS+=$(SUBCF)
16 $(SDIR)/submitd: LIBS+=$(SUBLF)
18 $(SDIR)/connect: $(SDIR)/connect.o $(LIBUCW)
19 $(SDIR)/connect: CFLAGS+=$(SUBCF)
20 $(SDIR)/connect: LIBS+=$(SUBLF)
22 $(SDIR)/privkey: $(SDIR)/privkey.o $(LIBUCW)
23 $(SDIR)/privkey: CFLAGS+=$(SUBCF)
24 $(SDIR)/privkey: LIBS+=$(SUBLF)
27 run/cf/submitd: $(SDIR)/submitd.cf
29 ### Submitter perl module ###
31 EXTRA_RUNDIRS+=lib/perl5/MO
32 SUBMIT_PERL_MODS=$(o)/submit/Submit.pm
33 PROGS+=$(SUBMIT_PERL_MODS)
35 $(SUBMIT_PERL_MODS): PERL_MODULE_DIR=MO
37 ### The submit client and utilities ###
39 PROGS+=$(addprefix $(SDIR)/,contest create-certs remote-status remote-submit show-submits)
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
47 DATAFILES+=$(addprefix $(SDIR)/,ca-cert.tpl client-cert.tpl server-cert.tpl)