chiark / gitweb /
less recompilation of hash fns.
[chiark-tcl.git] / base / troglodyte-Makefile
index ce81f6b16092f76d8b2a9685af7744574d163ed7..9794ba49c2b172e297f8efe78adc22bf17977979 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,6 +20,7 @@ AUTOS=                $(AUTO_HDRS) $(AUTO_SRCS)
 
 TARGETS=       hbytes.so
 
+CC_CRYPTO=     $(CC) $(CFLAGS) $(CPPFLAGS) -O3
 CFLAGS=                -g -Wall $(OPTIMISE)
 OPTIMISE=      -O2
 
@@ -35,5 +38,14 @@ hbytes.so:   $(OBJS)
 %.o:           %.c $(HDRS)
                $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
 
+serpent.o:     serpent.c serpent.h serpentsboxes.h
+               $(CC_CRYPTO) -o $@ -c $<
+
+md5.o:         md5.c md5.h
+               $(CC_CRYPTO) -o $@ -c $<
+
+sha1.o:                sha1.c sha1.h
+               $(CC_CRYPTO) -o $@ -c $<
+
 clean:
                rm -f $(OBJS) $(TARGETS) *~ ./#*#