chiark / gitweb /
less recompilation of hash fns.
[chiark-tcl.git] / base / troglodyte-Makefile
index c557d80992685b09610fa276b4bf78d8fd2a605e..9794ba49c2b172e297f8efe78adc22bf17977979 100644 (file)
@@ -20,6 +20,7 @@ AUTOS=                $(AUTO_HDRS) $(AUTO_SRCS)
 
 TARGETS=       hbytes.so
 
+CC_CRYPTO=     $(CC) $(CFLAGS) $(CPPFLAGS) -O3
 CFLAGS=                -g -Wall $(OPTIMISE)
 OPTIMISE=      -O2
 
@@ -37,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) *~ ./#*#