chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new socket id arrangements, working on tun
[chiark-tcl.git]
/
base
/
troglodyte-Makefile
diff --git
a/base/troglodyte-Makefile
b/base/troglodyte-Makefile
index 9794ba49c2b172e297f8efe78adc22bf17977979..8a19442c826664abe36e1a0b9713b2268a76c043 100644
(file)
--- a/
base/troglodyte-Makefile
+++ b/
base/troglodyte-Makefile
@@
-1,13
+1,15
@@
OBJS= tables.o \
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 \
chop.o \
hook.o \
bcmode.o \
+ misc.o \
algtables.o \
algtables.o \
- serpent.o \
- sha1.o \
- md5.o \
crypto.o \
parse.o
crypto.o \
parse.o
@@
-18,17
+20,26
@@
AUTO_HDRS= tables.h
AUTO_SRCS= tables.c
AUTOS= $(AUTO_HDRS) $(AUTO_SRCS)
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
CC_CRYPTO= $(CC) $(CFLAGS) $(CPPFLAGS) -O3
-CFLAGS= -g -Wall $(OPTIMISE)
+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
OPTIMISE= -O2
+TCL_MEM_DEBUG= -DTCL_MEM_DEBUG
all: $(TARGETS) $(AUTOS)
hbytes.so: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)
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$@ $<
%.c: %.tct tcmdifgen
./tcmdifgen -wc -o$@ $<
@@
-38,14
+49,8
@@
hbytes.so: $(OBJS)
%.o: %.c $(HDRS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
%.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) *~ ./#*#
clean:
rm -f $(OBJS) $(TARGETS) *~ ./#*#