chiark / gitweb /
Socket address stuff. Sockid is broken still.
[chiark-tcl.git] / base / troglodyte-Makefile
index 33cace8d755930e8ef15457743b2354c390549b9..64160c038e6edd55ac6f717233cadb86d5cf14bc 100644 (file)
@@ -1,9 +1,12 @@
 OBJS=          tables.o \
                hbytes.o \
                enum.o \
+               sockaddr.o \
+               dgram.o \
                chop.o \
                hook.o \
                bcmode.o \
+               misc.o \
                algtables.o \
                serpent.o \
                sha1.o \
@@ -20,7 +23,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)
@@ -38,7 +43,13 @@ hbytes.so:   $(OBJS)
                $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
 
 serpent.o:     serpent.c serpent.h serpentsboxes.h
-               $(CC) $(CFLAGS) $(CPPFLAGS) -O3 -o $@ -c $<
+               $(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) *~ ./#*#