X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=base%2Ftroglodyte-Makefile;h=8a19442c826664abe36e1a0b9713b2268a76c043;hp=765d5e45997366f09822f31b3f8e60aa728d88ba;hb=b6017ccf067a7fefa893c8bf19288a1909f17263;hpb=b30fd7b756a0664c4e1fef3e936d9aab13c0d6fe diff --git a/base/troglodyte-Makefile b/base/troglodyte-Makefile index 765d5e4..8a19442 100644 --- a/base/troglodyte-Makefile +++ b/base/troglodyte-Makefile @@ -1,19 +1,56 @@ -OBJS= hbytes.o \ - enum.o +OBJS= tables.o \ + hbytes.o \ + enum.o \ + idtable.o \ + ulongs.o \ + sockaddr.o \ + dgram.o \ + chop.o \ + hook.o \ + bcmode.o \ + misc.o \ + algtables.o \ + crypto.o \ + parse.o -HDRS= hbytes.h +HDRS= hbytes.h \ + $(AUTO_HDRS) -TARGETS= hbytes.so +AUTO_HDRS= tables.h +AUTO_SRCS= tables.c +AUTOS= $(AUTO_HDRS) $(AUTO_SRCS) -CFLAGS= -g -Wall -O +TARGETS= hbytes.so autocode.tcl autococo.tcl -all: $(TARGETS) +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$@ $< + +%.h: %.tct tcmdifgen + ./tcmdifgen -wh -o$@ $< + %.o: %.c $(HDRS) $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< +#alg.o: alg.c alg.h alg2.h +# $(CC_CRYPTO) -o $@ -c $< + clean: rm -f $(OBJS) $(TARGETS) *~ ./#*#