chiark / gitweb /
Many improvements. Now we get as far as SHA256 not being implemented.
[chiark-tcl.git] / base / troglodyte-Makefile
index 0737bbba5cd6ee537e005f38a85169717def7594..fbcfc8fc881365b111a83091fda9823911095734 100644 (file)
@@ -25,7 +25,7 @@ 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 -Wmissing-prototypes -Wstrict-prototypes -Werror \
@@ -37,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$@ $<