chiark / gitweb /
less recompilation of hash fns.
[chiark-tcl.git] / base / troglodyte-Makefile
index 784273a2b86d7fe3431eacd7fc4a1e16e9d1bce1..9794ba49c2b172e297f8efe78adc22bf17977979 100644 (file)
@@ -3,6 +3,12 @@ OBJS=          tables.o \
                enum.o \
                chop.o \
                hook.o \
+               bcmode.o \
+               algtables.o \
+               serpent.o \
+               sha1.o \
+               md5.o \
+               crypto.o \
                parse.o
 
 HDRS=          hbytes.h \
@@ -14,7 +20,9 @@ AUTOS=                $(AUTO_HDRS) $(AUTO_SRCS)
 
 TARGETS=       hbytes.so
 
-CFLAGS=        -g -Wall -O
+CC_CRYPTO=     $(CC) $(CFLAGS) $(CPPFLAGS) -O3
+CFLAGS=                -g -Wall $(OPTIMISE)
+OPTIMISE=      -O2
 
 all:           $(TARGETS) $(AUTOS)
 
@@ -30,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) *~ ./#*#