chiark / gitweb /
Compiles but does not link. Before undo silly pad indirection.
[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 -O
22
23 all:            $(TARGETS) $(AUTOS)
24
25 hbytes.so:      $(OBJS)
26                 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)
27
28 %.c:            %.tct tcmdifgen
29                 ./tcmdifgen -wc -o$@ $<
30
31 %.h:            %.tct tcmdifgen
32                 ./tcmdifgen -wh -o$@ $<
33
34 %.o:            %.c $(HDRS)
35                 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
36
37 clean:
38                 rm -f $(OBJS) $(TARGETS) *~ ./#*#