chiark / gitweb /
Lots of stuff seems to work
[chiark-tcl.git] / base / troglodyte-Makefile
index 765d5e45997366f09822f31b3f8e60aa728d88ba..784273a2b86d7fe3431eacd7fc4a1e16e9d1bce1 100644 (file)
@@ -1,17 +1,32 @@
-OBJS=          hbytes.o \
-               enum.o
+OBJS=          tables.o \
+               hbytes.o \
+               enum.o \
+               chop.o \
+               hook.o \
+               parse.o
 
-HDRS=          hbytes.h
+HDRS=          hbytes.h \
+               $(AUTO_HDRS)
+
+AUTO_HDRS=     tables.h
+AUTO_SRCS=     tables.c
+AUTOS=         $(AUTO_HDRS) $(AUTO_SRCS)
 
 TARGETS=       hbytes.so
 
 CFLAGS=        -g -Wall -O
 
-all:           $(TARGETS)
+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 $<