chiark / gitweb /
Sockets all seem to work now erm.
[chiark-tcl.git] / base / troglodyte-Makefile
1 OBJS=           tables.o \
2                 hbytes.o \
3                 enum.o \
4                 sockaddr.o \
5                 dgram.o \
6                 chop.o \
7                 hook.o \
8                 bcmode.o \
9                 misc.o \
10                 algtables.o \
11                 serpent.o \
12                 sha1.o \
13                 md5.o \
14                 crypto.o \
15                 parse.o
16
17 HDRS=           hbytes.h \
18                 $(AUTO_HDRS)
19
20 AUTO_HDRS=      tables.h
21 AUTO_SRCS=      tables.c
22 AUTOS=          $(AUTO_HDRS) $(AUTO_SRCS)
23
24 TARGETS=        hbytes.so
25
26 CC_CRYPTO=      $(CC) $(CFLAGS) $(CPPFLAGS) -O3
27 CFLAGS=         -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
28                 $(OPTIMISE)
29 OPTIMISE=       -O2
30
31 all:            $(TARGETS) $(AUTOS)
32
33 hbytes.so:      $(OBJS)
34                 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)
35
36 %.c:            %.tct tcmdifgen
37                 ./tcmdifgen -wc -o$@ $<
38
39 %.h:            %.tct tcmdifgen
40                 ./tcmdifgen -wh -o$@ $<
41
42 %.o:            %.c $(HDRS)
43                 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
44
45 serpent.o:      serpent.c serpent.h serpentsboxes.h
46                 $(CC_CRYPTO) -o $@ -c $<
47
48 md5.o:          md5.c md5.h
49                 $(CC_CRYPTO) -o $@ -c $<
50
51 sha1.o:         sha1.c sha1.h
52                 $(CC_CRYPTO) -o $@ -c $<
53
54 clean:
55                 rm -f $(OBJS) $(TARGETS) *~ ./#*#