X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=base%2Ftroglodyte-Makefile;h=9e5618a9e4f62ffef8104ce02f355617303c82cb;hp=0737bbba5cd6ee537e005f38a85169717def7594;hb=a41625aefb08ed5bf5f07951841bdfe30c4a72c7;hpb=74f92ed9563e6fd9e3b7a871e73f73e1ca7cd145;ds=inline diff --git a/base/troglodyte-Makefile b/base/troglodyte-Makefile index 0737bbb..9e5618a 100644 --- a/base/troglodyte-Makefile +++ b/base/troglodyte-Makefile @@ -1,42 +1,47 @@ OBJS= tables.o \ hbytes.o \ enum.o \ + idtable.o \ + scriptinv.o \ ulongs.o \ sockaddr.o \ dgram.o \ + tuntap.o \ chop.o \ hook.o \ bcmode.o \ misc.o \ algtables.o \ - serpent.o \ - sha1.o \ - md5.o \ crypto.o \ parse.o HDRS= hbytes.h \ - serpent.h \ - md5.h \ - sha1.h \ $(AUTO_HDRS) AUTO_HDRS= tables.h AUTO_SRCS= tables.c AUTOS= $(AUTO_HDRS) $(AUTO_SRCS) -TARGETS= hbytes.so +TARGETS= hbytes.so autocode.tcl autococo.tcl CC_CRYPTO= $(CC) $(CFLAGS) $(CPPFLAGS) -O3 +CPPFLAGS= -I../plocal/include $(TCL_MEM_DEBUG) $(CMDLINE_CPPFLAGS) +LDFLAGS= -L../plocal/lib +LDLIBS= -lnettle CFLAGS= -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \ $(OPTIMISE) OPTIMISE= -O2 +TCL_MEM_DEBUG= -DTCL_MEM_DEBUG all: $(TARGETS) $(AUTOS) hbytes.so: $(OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS) +autoco%.tcl: deco%gen.tcl decobogen.tcl general.tcl ./hbytes.so \ + protocol.deco + ./$< protocol.deco >$@.new && mv -f $@.new $@ + %.c: %.tct tcmdifgen ./tcmdifgen -wc -o$@ $< @@ -46,14 +51,8 @@ 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 $< +#alg.o: alg.c alg.h alg2.h +# $(CC_CRYPTO) -o $@ -c $< clean: rm -f $(OBJS) $(TARGETS) *~ ./#*#