+#ifdef INGRES
+#define sqlrule() @@\
+.SUFFIXES: .sc .dc @@\
+.dc.sc: @@\
+ $(AWK) -f $(SRCTOP)/util/imake.includes/ingres.awk < $< > $*.sc @@\
+ @@\
+.sc.c: @@\
+ /usr/ingres/bin/esqlc -p $*
+#define sqlfile(file) @@\
+concat(file,.sc): concat(file,.dc) @@\
+concat(file,.c): concat(file,.sc) @@\
+clean:: @@\
+ $(RM) concat(file,.sc) concat(file,.c)
+#endif
+#ifdef INFORMIX
+#define sqlrule() @@\
+.SUFFIXES: .ec .dc @@\
+.dc.ec: @@\
+ $(AWK) -f $(SRCTOP)/util/imake.includes/informix.awk < $< > $*.ec @@\
+ @@\
+.ec.c: @@\
+ /usr/informix/bin/esql -e $*.ec
+#define sqlfile(file) @@\
+concat(file,.ec): concat(file,.dc) @@\
+concat(file,.c): concat(file,.ec) @@\
+clean:: @@\
+ $(RM) concat(file,.ec) concat(file,.c)
+#endif
+#ifdef ORACLE
+/* have to undef these to keep the ORADEFS line from being attacked */
+#undef HESIOD
+#undef ZEPHYR
+#undef GDSS
+#undef ATHENA
+ORADEFS= DEFINE=HESIOD DEFINE=ZEPHYR DEFINE=GDSS DEFINE=ATHENA
+#define sqlrule() @@\
+.SUFFIXES: .pc .dc @@\
+.dc.pc: @@\
+ $(AWK) -f $(SRCTOP)/util/imake.includes/oracle.awk < $< > $*.pc @@\
+ @@\
+.pc.c: @@\
+ /usr/oracle/bin/proc INAME=$*.pc INCLUDE=$(BUILDTOP)/include INCLUDE=$(BUILDTOP)/lib INCLUDE=$(INCLDIR) $(ORADEFS)
+#define sqlfile(file) @@\
+concat(file,.pc): concat(file,.dc) @@\
+concat(file,.c): concat(file,.pc) @@\
+clean:: @@\
+ $(RM) concat(file,.pc) concat(file,.c)
+#endif