chiark / gitweb /
Ripped out a lot of crap. Now it compiles and passes the test vectors.
[chiark-tcl.git] / base / troglodyte-Makefile
index c557d80992685b09610fa276b4bf78d8fd2a605e..0737bbba5cd6ee537e005f38a85169717def7594 100644 (file)
@@ -1,9 +1,13 @@
 OBJS=          tables.o \
                hbytes.o \
                enum.o \
+               ulongs.o \
+               sockaddr.o \
+               dgram.o \
                chop.o \
                hook.o \
                bcmode.o \
+               misc.o \
                algtables.o \
                serpent.o \
                sha1.o \
@@ -12,6 +16,9 @@ OBJS=         tables.o \
                parse.o
 
 HDRS=          hbytes.h \
+               serpent.h \
+               md5.h \
+               sha1.h \
                $(AUTO_HDRS)
 
 AUTO_HDRS=     tables.h
@@ -20,7 +27,9 @@ AUTOS=                $(AUTO_HDRS) $(AUTO_SRCS)
 
 TARGETS=       hbytes.so
 
-CFLAGS=                -g -Wall $(OPTIMISE)
+CC_CRYPTO=     $(CC) $(CFLAGS) $(CPPFLAGS) -O3
+CFLAGS=                -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
+               $(OPTIMISE)
 OPTIMISE=      -O2
 
 all:           $(TARGETS) $(AUTOS)
@@ -37,5 +46,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) *~ ./#*#