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
Use nettle for hash functions.
[chiark-tcl.git]
/
base
/
troglodyte-Makefile
diff --git
a/base/troglodyte-Makefile
b/base/troglodyte-Makefile
index fbcfc8fc881365b111a83091fda9823911095734..df294af2f83f70673fb9f276ea7d28a71a87d4c3 100644
(file)
--- a/
base/troglodyte-Makefile
+++ b/
base/troglodyte-Makefile
@@
-10,15
+10,11
@@
OBJS= tables.o \
misc.o \
algtables.o \
serpent.o \
misc.o \
algtables.o \
serpent.o \
- sha1.o \
- md5.o \
crypto.o \
parse.o
HDRS= hbytes.h \
serpent.h \
crypto.o \
parse.o
HDRS= hbytes.h \
serpent.h \
- md5.h \
- sha1.h \
$(AUTO_HDRS)
AUTO_HDRS= tables.h
$(AUTO_HDRS)
AUTO_HDRS= tables.h
@@
-28,6
+24,9
@@
AUTOS= $(AUTO_HDRS) $(AUTO_SRCS)
TARGETS= hbytes.so autocode.tcl autococo.tcl
CC_CRYPTO= $(CC) $(CFLAGS) $(CPPFLAGS) -O3
TARGETS= hbytes.so autocode.tcl autococo.tcl
CC_CRYPTO= $(CC) $(CFLAGS) $(CPPFLAGS) -O3
+CPPFLAGS= -I../plocal/include
+LDFLAGS= -L../plocal/lib
+LDLIBS= -lnettle
CFLAGS= -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
$(OPTIMISE)
OPTIMISE= -O2
CFLAGS= -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
$(OPTIMISE)
OPTIMISE= -O2
@@
-53,11
+52,5
@@
autoco%.tcl: deco%gen.tcl decobogen.tcl general.tcl ./hbytes.so \
serpent.o: serpent.c serpent.h serpentsboxes.h
$(CC_CRYPTO) -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) *~ ./#*#
clean:
rm -f $(OBJS) $(TARGETS) *~ ./#*#