chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Table-generated stuff. Now need parsing funcs.
[chiark-tcl.git]
/
base
/
troglodyte-Makefile
diff --git
a/base/troglodyte-Makefile
b/base/troglodyte-Makefile
index 765d5e45997366f09822f31b3f8e60aa728d88ba..985975c014629f5c2651eea95708e14c13cdda56 100644
(file)
--- a/
base/troglodyte-Makefile
+++ b/
base/troglodyte-Makefile
@@
-1,17
+1,29
@@
-OBJS= hbytes.o \
+OBJS= tables.o \
+ hbytes.o \
enum.o
enum.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
TARGETS= hbytes.so
CFLAGS= -g -Wall -O
-all: $(TARGETS)
+all: $(TARGETS)
$(AUTOS)
hbytes.so: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)
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 $<
%.o: %.c $(HDRS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<