X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=base%2Ftroglodyte-Makefile;h=9794ba49c2b172e297f8efe78adc22bf17977979;hp=8e94090f46b336968351bccb558d9fccf6ae263e;hb=d30ded35f199708808df64a9db9c83100e073c9f;hpb=9b7d11070d3e9dc1eb61cbccd5155f47a27047c3;ds=sidebyside diff --git a/base/troglodyte-Makefile b/base/troglodyte-Makefile index 8e94090..9794ba4 100644 --- a/base/troglodyte-Makefile +++ b/base/troglodyte-Makefile @@ -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,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) @@ -34,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) *~ ./#*#