
3 May
2001
3 May
'01
2:06 p.m.
Hi,
Attached is a patch that reduces the use of the "parser-smi.tab.c" and "parser-sming.tab.c" into "parser-smi.c" and "parser-sming.c" at the compilation stage.
I have seen on some systems that libtool is not able to handle c-source filenames correctly that have multiple "." in them. This patch reduces the use of those for the compilation stage.
It would be appreciated if it could be embedded in libsmi.
Harrie
--
phone: +39-3474932300
http://www.lisanza.net/
--- lib/Makefile.in-orig Thu May 3 13:56:19 2001
+++ lib/Makefile.in Thu May 3 13:59:33 2001
@@ -112,7 +112,7 @@
man_MANS = libsmi.3 smi_config.3 smi_module.3 smi_macro.3 smi_node.3 smi_type.3
lib_LTLIBRARIES = libsmi.la
-libsmi_la_SOURCES = data.c check.c error.c util.c smi.c parser-smi.tab.c scanner-smi.c parser-sming.tab.c scanner-sming.c
+libsmi_la_SOURCES = data.c check.c error.c util.c smi.c parser-smi.c scanner-smi.c parser-sming.c scanner-sming.c
libsmi_la_LDFLAGS = -version-info @VERSION_LIBTOOL@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
@@ -128,7 +128,7 @@
LIBS = @LIBS@
libsmi_la_LIBADD =
libsmi_la_OBJECTS = data.lo check.lo error.lo util.lo smi.lo \
-parser-smi.tab.lo scanner-smi.lo parser-sming.tab.lo scanner-sming.lo
+parser-smi.lo scanner-smi.lo parser-sming.lo scanner-sming.lo
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
@@ -347,10 +347,10 @@
parser-sming.h
error.lo error.o : error.c ../config.h smi.h error.h data.h \
errormacros.h
-parser-smi.tab.lo parser-smi.tab.o : parser-smi.tab.c ../config.h smi.h \
+parser-smi.lo parser-smi.o : parser-smi.c ../config.h smi.h \
error.h data.h errormacros.h parser-smi.h scanner-smi.h check.h \
util.h
-parser-sming.tab.lo parser-sming.tab.o : parser-sming.tab.c ../config.h \
+parser-sming.lo parser-sming.o : parser-sming.c ../config.h \
smi.h error.h data.h errormacros.h parser-sming.h \
scanner-sming.h check.h util.h parser-smi.h
scanner-smi.lo scanner-smi.o : scanner-smi.c ../config.h error.h data.h \
@@ -447,21 +447,20 @@
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
-parser-smi.tab.c: parser-smi.y scanner-smi.h parser-smi.h
+parser-smi.c: parser-smi.y scanner-smi.h parser-smi.h
@if [ "$(BISON)" ] ; then \
echo "$(BISON)" -v -t -d -psmi parser-smi.y ; \
"$(BISON)" -v -t -d -psmi parser-smi.y ; \
else \
echo "" ; \
- echo "NOTE: we cannot build the new parser-smi.tab.c from parser-smi.y" ; \
+ echo "NOTE: we cannot build the new parser-smi.c from parser-smi.y" ; \
echo "" ; \
fi
# # bison-1.25 has a wrong yyparse() definition for pure reentrant code.
sed -e 's/int yyparse (void);/int yyparse ();/' \
- parser-smi.tab.c > parser-smi.tab.c.tmp && \
- mv parser-smi.tab.c.tmp parser-smi.tab.c
+ parser-smi.tab.c > parser-smi.c
-parser-sming.tab.c: parser-sming.y scanner-sming.h parser-sming.h
+parser-sming.c: parser-sming.y scanner-sming.h parser-sming.h
@if [ "$(BISON)" ] ; then \
echo "$(BISON)" -v -t -d -psming parser-sming.y ; \
"$(BISON)" -v -t -d -psming parser-sming.y ; \
@@ -472,8 +471,7 @@
fi
# # bison-1.25 has a wrong yyparse() definition for pure reentrant code.
sed -e 's/int yyparse (void);/int yyparse ();/' \
- parser-sming.tab.c > parser-sming.tab.c.tmp && \
- mv parser-sming.tab.c.tmp parser-sming.tab.c
+ parser-sming.tab.c > parser-sming.c
scanner-smi.c: scanner-smi.l scanner-smi.h parser-smi.tab.h
@if [ "$(FLEX)" ] ; then \