Change to using the compiler for makedepend instead. This works for GCC;
I don't know about other compilers. May need an autoconf test instead in
future.
DBTYPE = @DBTYPE@
#
LIBS = @LIBS@
DBTYPE = @DBTYPE@
#
LIBS = @LIBS@
+#MAKEDEPEND = makedepend -f- --
+MAKEDEPEND = $(CC) -MM
prefix ?= @prefix@
exec_prefix ?= @exec_prefix@
prefix ?= @prefix@
exec_prefix ?= @exec_prefix@
.depend: $(SRCS)
rm -f .depend
.depend: $(SRCS)
rm -f .depend
- makedepend -f- -- $(CFLAGS) -- $(SRCS) > .depend
+ $(MAKEDEPEND) $(CFLAGS) $(SRCS) > .depend