-HDRS= hbytes.h \
- serpent.h \
- $(AUTO_HDRS)
-
-AUTO_HDRS= tables.h
-AUTO_SRCS= tables.c
-AUTOS= $(AUTO_HDRS) $(AUTO_SRCS)
-
-TARGETS= hbytes.so autocode.tcl autococo.tcl
-
-CC_CRYPTO= $(CC) $(CFLAGS) $(CPPFLAGS) -O3
-CPPFLAGS= -I../plocal/include $(TCL_MEM_DEBUG) $(CMDLINE_CPPFLAGS)
-LDFLAGS= -L../plocal/lib
-LDLIBS= -lnettle
-CFLAGS= -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
- $(OPTIMISE)
-OPTIMISE= -O2
-TCL_MEM_DEBUG= -DTCL_MEM_DEBUG
-
-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$@ $<
-
-%.h: %.tct tcmdifgen
- ./tcmdifgen -wh -o$@ $<
-
-%.o: %.c $(HDRS)
- $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
-
-serpent.o: serpent.c serpent.h serpentsboxes.h
- $(CC_CRYPTO) -o $@ -c $<