From 1f7697a02bcce13c515e544b05418cb18a3dfd73 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Wed, 3 Mar 2010 18:37:37 +0100 Subject: [PATCH] Lets generate ingres code by calling esqlcc and not esqlc as we want c++ code. Replaced some strncpy by bstrncpy calls. Add dependency in Makefile of generated code on it source file. --- bacula/src/cats/Makefile.in | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bacula/src/cats/Makefile.in b/bacula/src/cats/Makefile.in index 3840f20ef9..f12ea35950 100644 --- a/bacula/src/cats/Makefile.in +++ b/bacula/src/cats/Makefile.in @@ -56,10 +56,15 @@ all: Makefile libbacsql$(DEFAULT_ARCHIVE_TYPE) @echo "==== Make of sqllib is good ====" @echo " " -# SRE: embeddedSQL precompiler run -esql: - $(II_SYSTEM)/ingres/bin/esqlc -omyingres.c myingres.sc - $(II_SYSTEM)/ingres/bin/esqlc -omyingres.h myingres.sh +myingres.c: myingres.sc + @echo "Generating $@ from $<" + $(NO_ECHO)$(II_SYSTEM)/ingres/bin/esqlcc -extension=c $< + +myingres.h: myingres.sh + @echo "Generating $@ from $<" + $(NO_ECHO)$(II_SYSTEM)/ingres/bin/esqlcc -extension=h $< + +esql: myingres.c myingres.h libbacsql.a: $(LIBBACSQL_OBJS) @echo "Making $@ ..." -- 2.39.5