chiark / gitweb /
Better integration with tclreadline. Less recompilation of serpent.[ch].
[chiark-tcl.git] / base / troglodyte-Makefile
index 8e94090f46b336968351bccb558d9fccf6ae263e..33cace8d755930e8ef15457743b2354c390549b9 100644 (file)
@@ -4,8 +4,10 @@ OBJS=          tables.o \
                chop.o \
                hook.o \
                bcmode.o \
-               blockciph.o \
+               algtables.o \
                serpent.o \
+               sha1.o \
+               md5.o \
                crypto.o \
                parse.o
 
@@ -18,7 +20,8 @@ AUTOS=                $(AUTO_HDRS) $(AUTO_SRCS)
 
 TARGETS=       hbytes.so
 
-CFLAGS=        -g -Wall -O
+CFLAGS=                -g -Wall $(OPTIMISE)
+OPTIMISE=      -O2
 
 all:           $(TARGETS) $(AUTOS)
 
@@ -34,5 +37,8 @@ hbytes.so:    $(OBJS)
 %.o:           %.c $(HDRS)
                $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
 
+serpent.o:     serpent.c serpent.h serpentsboxes.h
+               $(CC) $(CFLAGS) $(CPPFLAGS) -O3 -o $@ -c $<
+
 clean:
                rm -f $(OBJS) $(TARGETS) *~ ./#*#