chiark / gitweb /
Many improvements. Now we get as far as SHA256 not being implemented.
[chiark-tcl.git] / base / troglodyte-Makefile
index 9794ba49c2b172e297f8efe78adc22bf17977979..fbcfc8fc881365b111a83091fda9823911095734 100644 (file)
@@ -1,9 +1,13 @@
 OBJS=          tables.o \
                hbytes.o \
                enum.o \
+               ulongs.o \
+               sockaddr.o \
+               dgram.o \
                chop.o \
                hook.o \
                bcmode.o \
+               misc.o \
                algtables.o \
                serpent.o \
                sha1.o \
@@ -12,16 +16,20 @@ OBJS=               tables.o \
                parse.o
 
 HDRS=          hbytes.h \
+               serpent.h \
+               md5.h \
+               sha1.h \
                $(AUTO_HDRS)
 
 AUTO_HDRS=     tables.h
 AUTO_SRCS=     tables.c
 AUTOS=         $(AUTO_HDRS) $(AUTO_SRCS)
 
-TARGETS=       hbytes.so
+TARGETS=       hbytes.so autocode.tcl autococo.tcl
 
 CC_CRYPTO=     $(CC) $(CFLAGS) $(CPPFLAGS) -O3
-CFLAGS=                -g -Wall $(OPTIMISE)
+CFLAGS=                -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
+               $(OPTIMISE)
 OPTIMISE=      -O2
 
 all:           $(TARGETS) $(AUTOS)
@@ -29,6 +37,10 @@ all:         $(TARGETS) $(AUTOS)
 hbytes.so:     $(OBJS)
                $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)
 
+autoco%.tcl:   deco%gen.tcl decobogen.tcl general.tcl ./hbytes.so \
+                       protocol.deco
+               ./$< protocol.deco >$@.new && mv -f $@.new $@           
+
 %.c:           %.tct tcmdifgen
                ./tcmdifgen -wc -o$@ $<