chiark / gitweb /
Serpent seems to work. Byte order is very strange.
[chiark-tcl.git] / base / troglodyte-Makefile
1 OBJS=           tables.o \
2                 hbytes.o \
3                 enum.o \
4                 chop.o \
5                 hook.o \
6                 bcmode.o \
7                 blockciph.o \
8                 serpent.o \
9                 crypto.o \
10                 parse.o
11
12 HDRS=           hbytes.h \
13                 $(AUTO_HDRS)
14
15 AUTO_HDRS=      tables.h
16 AUTO_SRCS=      tables.c
17 AUTOS=          $(AUTO_HDRS) $(AUTO_SRCS)
18
19 TARGETS=        hbytes.so
20
21 CFLAGS=         -g -Wall $(OPTIMISE)
22 OPTIMISE=       -O2
23
24 all:            $(TARGETS) $(AUTOS)
25
26 hbytes.so:      $(OBJS)
27                 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)
28
29 %.c:            %.tct tcmdifgen
30                 ./tcmdifgen -wc -o$@ $<
31
32 %.h:            %.tct tcmdifgen
33                 ./tcmdifgen -wh -o$@ $<
34
35 %.o:            %.c $(HDRS)
36                 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
37
38 clean:
39                 rm -f $(OBJS) $(TARGETS) *~ ./#*#