chiark / gitweb /
Better integration with tclreadline. Less recompilation of serpent.[ch].
[chiark-tcl.git] / base / troglodyte-Makefile
index 0f821265d1c769d0c0681b2b038a3a1c913d0198..33cace8d755930e8ef15457743b2354c390549b9 100644 (file)
@@ -2,6 +2,13 @@ OBJS=          tables.o \
                hbytes.o \
                enum.o \
                chop.o \
+               hook.o \
+               bcmode.o \
+               algtables.o \
+               serpent.o \
+               sha1.o \
+               md5.o \
+               crypto.o \
                parse.o
 
 HDRS=          hbytes.h \
@@ -13,7 +20,8 @@ AUTOS=                $(AUTO_HDRS) $(AUTO_SRCS)
 
 TARGETS=       hbytes.so
 
-CFLAGS=        -g -Wall -O
+CFLAGS=                -g -Wall $(OPTIMISE)
+OPTIMISE=      -O2
 
 all:           $(TARGETS) $(AUTOS)
 
@@ -29,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) *~ ./#*#