# Comment out if you do not wish to build remote submit utilities
SUBMIT=submit
-LIBUCW:=$(shell cd ../libucw && pwd)
+LIBUCW:=$(shell cd ../holmes-libs-3.12/run && pwd)
export LIBUCW CFLAGS LDFLAGS DEBUG
If you have any suggestions, bug reports or improvements you would like to share
with others, please send them to mj@ucw.cz.
+
+
+** How to compile the submission system **
+
+First, unpack holmes-libs-3.12, configure it and run make. You can build a thinner
+version with `./configure default.cfg -CONFIG_IMAGES -CONFIG_UCW_THREADS'.
+
+Then uncomment the "SUBMIT" line in the top-level Makefile and let LIBUCW
+point to the compiled Holmes libraries.
+UCWCF:=$(shell PKG_CONFIG_PATH=$(LIBUCW)/lib/pkgconfig pkg-config --cflags libucw libsh)
+UCWLF:=$(shell PKG_CONFIG_PATH=$(LIBUCW)/lib/pkgconfig pkg-config --libs libucw libsh)
TLSCF:=$(shell libgnutls-config --cflags)
TLSLF:=$(shell libgnutls-config --libs)
GCRCF:=$(shell libgcrypt-config --cflags)
-CFLAGS+=-I$(LIBUCW)/include $(TLSCF) $(GCRCF)
-LDFLAGS+=$(TLSLF)
-LDFLAGS+=-lpthread # FIXME: Use libucw without threads
+CFLAGS+=$(UCWCF) $(TLSCF) $(GCRCF)
+LDFLAGS+=$(UCWLF) $(TLSLF)
all: submitd privkey lib
-submitd: submitd.o commands.o tasks.o $(LIBUCW)/lib/libsh.a $(LIBUCW)/lib/libucw.a
+submitd: submitd.o commands.o tasks.o
submitd.o: submitd.c submitd.h
commands.o: commands.c submitd.h
tasks.o: tasks.c submitd.h
-connect: connect.o $(LIBUCW)/lib/libucw.a
+connect: connect.o
connect.o: connect.c
-privkey: privkey.o $(LIBUCW)/lib/libucw.a
+privkey: privkey.o
privkey.o: privkey.c
certs: