]> mj.ucw.cz Git - moe.git/blobdiff - submit/Makefile
Updated TODO.
[moe.git] / submit / Makefile
index cf9ee31473e8d49cbba3bb94bb98b783c904cfde..378d26892346c658662568500618b3a8210cf4f3 100644 (file)
@@ -1,13 +1,15 @@
 TLSCF:=$(shell libgnutls-config --cflags)
 TLSLF:=$(shell libgnutls-config --libs)
+GCRCF:=$(shell libgcrypt-config --cflags)
 
-CFLAGS=-O2 -Iinclude -g -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(TLSCF)
+CFLAGS=-O2 -Iinclude -g -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(TLSCF) $(GCRCF)
 LDFLAGS=$(TLSLF)
 
-CC=gcc-4.1.1
+#CC=gcc-4.1.1
 CFLAGS+=-Wno-pointer-sign -Wdisabled-optimization -Wno-missing-field-initializers
+LDFLAGS+=-lpthread     # FIXME: Use libucw without threads
 
-all: submitd connect
+all: submitd privkey
 
 submitd: submitd.o commands.o tasks.o lib/libsh.a lib/libucw.a
 submitd.o: submitd.c submitd.h
@@ -15,6 +17,8 @@ commands.o: commands.c submitd.h
 tasks.o: tasks.c submitd.h
 connect: connect.o lib/libucw.a
 connect.o: connect.c
+privkey: privkey.o lib/libucw.a
+privkey.o: privkey.c
 
 certs:
        certtool --generate-privkey --outfile ca-key.pem
@@ -29,4 +33,4 @@ certs:
 
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
-       rm -f submitd connect
+       rm -f submitd connect privkey