22 AUTOS= $(AUTO_HDRS) $(AUTO_SRCS)
24 TARGETS= hbytes.so autocode.tcl autococo.tcl
26 CC_CRYPTO= $(CC) $(CFLAGS) $(CPPFLAGS) -O3
27 CPPFLAGS= -I../plocal/include $(TCL_MEM_DEBUG) $(CMDLINE_CPPFLAGS)
28 LDFLAGS= -L../plocal/lib
30 CFLAGS= -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
33 TCL_MEM_DEBUG= -DTCL_MEM_DEBUG
35 all: $(TARGETS) $(AUTOS)
38 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)
40 autoco%.tcl: deco%gen.tcl decobogen.tcl general.tcl ./hbytes.so \
42 ./$< protocol.deco >$@.new && mv -f $@.new $@
45 ./tcmdifgen -wc -o$@ $<
48 ./tcmdifgen -wh -o$@ $<
51 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
53 serpent.o: serpent.c serpent.h serpentsboxes.h
54 $(CC_CRYPTO) -o $@ -c $<
57 rm -f $(OBJS) $(TARGETS) *~ ./#*#