chiark / gitweb /
Compiles but does not link. Before undo silly pad indirection.
[chiark-tcl.git] / base / troglodyte-Makefile
index 2ae36d57338b4e5101ad7d1ed9799a38845a0d5c..8e94090f46b336968351bccb558d9fccf6ae263e 100644 (file)
@@ -1,20 +1,38 @@
-OBJS=  forwarder.o \
-       main.o \
-       misc.o \
-       intr-sigio.o \
-       bget/bget.o
+OBJS=          tables.o \
+               hbytes.o \
+               enum.o \
+               chop.o \
+               hook.o \
+               bcmode.o \
+               blockciph.o \
+               serpent.o \
+               crypto.o \
+               parse.o
 
-HDRS=  misc.h \
-       forwarder.h \
-       intr.h
+HDRS=          hbytes.h \
+               $(AUTO_HDRS)
 
-CFLAGS=        -g -Wall
+AUTO_HDRS=     tables.h
+AUTO_SRCS=     tables.c
+AUTOS=         $(AUTO_HDRS) $(AUTO_SRCS)
 
-fvpn:          $(OBJS)
-               $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
+TARGETS=       hbytes.so
+
+CFLAGS=        -g -Wall -O
+
+all:           $(TARGETS) $(AUTOS)
+
+hbytes.so:     $(OBJS)
+               $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)
+
+%.c:           %.tct tcmdifgen
+               ./tcmdifgen -wc -o$@ $<
+
+%.h:           %.tct tcmdifgen
+               ./tcmdifgen -wh -o$@ $<
 
 %.o:           %.c $(HDRS)
                $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
 
 clean:
-               rm -f $(OBJS) *~ ./#*#
+               rm -f $(OBJS) $(TARGETS) *~ ./#*#