aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2010-11-30 15:36:42 -0600
committerPeter Seebach <peter.seebach@windriver.com>2010-11-30 16:29:48 -0600
commit00d0ce665b4b25ba60f67317c4840b357f84ed15 (patch)
tree06ecf64b51fb5e8eb3423b14bf8236555b89b73f /Makefile.in
parentca54fdb785b17fb251c28b28f51d0e666b1f2e22 (diff)
downloadpseudo-00d0ce665b4b25ba60f67317c4840b357f84ed15.tar.gz
pseudo-00d0ce665b4b25ba60f67317c4840b357f84ed15.tar.bz2
pseudo-00d0ce665b4b25ba60f67317c4840b357f84ed15.zip
Major shift: All the id_t types have been reworked so that they
are generated from text files and templates, making it now (we hope) impossible for the list of strings to get out of sync with the enum.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in17
1 files changed, 13 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index e931faa..a0609a2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -47,7 +47,7 @@ GUTS=$(filter-out "$(GLOB_PATTERN)",$(wildcard $(GLOB_PATTERN)))
DBLDFLAGS=-lsqlite3
USE_64=wrapfuncs64.in
-SHOBJS=pseudo_table.o pseudo_util.o
+SHOBJS=pseudo_tables.o pseudo_util.o
DBOBJS=pseudo_db.o -ldl -lpthread
WRAPOBJS=pseudo_wrappers.o
@@ -57,6 +57,7 @@ PSEUDOLOG=$(BIN)/pseudolog
LIBPSEUDO=$(LIB)/libpseudo.so
TEMPLATES=templates/guts templates/wrapfuncs.c templates/wrapfuncs.h templates/wrapper_table
+TABLES=table_templates/pseudo_tables.c table_templates/pseudo_tables.h
all: $(LIBPSEUDO) $(PSEUDO) $(PSEUDODB) $(PSEUDOLOG)
@@ -115,15 +116,23 @@ pseudo_client.o: pseudo_client.h
pseudo_server.o: pseudo_server.h
+tables: enums/*.in maketables templatefile.py $(TABLES)
+ ./maketables enums/*.in
+
wrappers: wrapfuncs.in $(USE_64) makewrappers templatefile.py $(TEMPLATES)
./makewrappers wrapfuncs.in $(USE_64)
-.SECONDARY: wrappers
+.SECONDARY: tables wrappers
pseudo_wrapfuncs.c pseudo_wrapfuncs.h: wrappers
+pseudo_tables.c pseudo_tables.h: tables
+
+pseudo_tables.o: pseudo_tables.c
+ $(CC) $(CFLAGS) $(CFLAGS_PSEUDO) -c -o pseudo_tables.o pseudo_tables.c
+
# no-strict-aliasing is needed for the function pointer trickery.
-pseudo_wrappers.o: $(GUTS) pseudo_wrappers.c pseudo_wrapfuncs.c pseudo_wrapfuncs.h
+pseudo_wrappers.o: $(GUTS) pseudo_wrappers.c pseudo_wrapfuncs.c pseudo_wrapfuncs.h pseudo_tables.h
$(CC) -fno-strict-aliasing $(CFLAGS) $(CFLAGS_PSEUDO) -D_GNU_SOURCE -c -o pseudo_wrappers.o pseudo_wrappers.c
offsets32:
@@ -136,7 +145,7 @@ clean:
rm -f *.o *.so $(PSEUDO) $(PSEUDODB) $(PSEUDOLOG) \
pseudo_wrapfuncs.h pseudo_wrapfuncs.c \
pseudo_wrapper_table.c \
- pseudo_wrapfuncs.c.old pseudo_wrapfuncs.h.old \
+ pseudo_tables.c pseudo_tables.h \
offsets32 offsets64
distclean: clean