chiark / gitweb /
Padding works.
[chiark-tcl.git] / base / troglodyte-Makefile
index 765d5e45997366f09822f31b3f8e60aa728d88ba..8e94090f46b336968351bccb558d9fccf6ae263e 100644 (file)
@@ -1,17 +1,36 @@
-OBJS=          hbytes.o \
-               enum.o
+OBJS=          tables.o \
+               hbytes.o \
+               enum.o \
+               chop.o \
+               hook.o \
+               bcmode.o \
+               blockciph.o \
+               serpent.o \
+               crypto.o \
+               parse.o
 
-HDRS=          hbytes.h
+HDRS=          hbytes.h \
+               $(AUTO_HDRS)
+
+AUTO_HDRS=     tables.h
+AUTO_SRCS=     tables.c
+AUTOS=         $(AUTO_HDRS) $(AUTO_SRCS)
 
 TARGETS=       hbytes.so
 
 CFLAGS=        -g -Wall -O
 
-all:           $(TARGETS)
+all:           $(TARGETS) $(AUTOS)
 
 hbytes.so:     $(OBJS)
                $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)
 
+%.c:           %.tct tcmdifgen
+               ./tcmdifgen -wc -o$@ $<
+
+%.h:           %.tct tcmdifgen
+               ./tcmdifgen -wh -o$@ $<
+
 %.o:           %.c $(HDRS)
                $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<