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=9c67ece43c6b616b46230e4bec8536b3598b66a0;hb=d30ded35f199708808df64a9db9c83100e073c9f;hpb=9f10950ab67992a0ff2304639673c2fc97744e0d diff --git a/base/troglodyte-Makefile b/base/troglodyte-Makefile index 9c67ece..9794ba4 100644 --- a/base/troglodyte-Makefile +++ b/base/troglodyte-Makefile @@ -1,6 +1,15 @@ OBJS= tables.o \ hbytes.o \ - enum.o + enum.o \ + chop.o \ + hook.o \ + bcmode.o \ + algtables.o \ + serpent.o \ + sha1.o \ + md5.o \ + crypto.o \ + parse.o HDRS= hbytes.h \ $(AUTO_HDRS) @@ -11,21 +20,32 @@ 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) hbytes.so: $(OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS) -%.c: %.tct +%.c: %.tct tcmdifgen ./tcmdifgen -wc -o$@ $< -%.h: %.tct +%.h: %.tct tcmdifgen ./tcmdifgen -wh -o$@ $< %.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) *~ ./#*#