3 base_name=`basename $0`
4 base_path=`echo $0 | sed s,$base_name,,`
6 db_dist="${base_path}../db/dist"
10 # XXX edit CFLAGS= ... out of invocation args ???
11 ARGS="`echo $* | sed -e 's% [^ ]*CFLAGS=[^ ]*%%' -e 's% -[^-][^ ]*%%g' -e 's% --param=[^ ]*%%g' -e 's%--cache-file=.*$%%'`"
13 CC="$CC" CFLAGS="$CFLAGS" $db_dist/configure $ARGS \
14 --enable-shared --enable-static \
15 --with-uniquename=_rpmdb --srcdir=$db_dist
17 mv Makefile Makefile.orig
18 cat Makefile.orig | sed -e '/^install[:-]/c\
21 \ @echo $(OBJS) $(C_OBJS) \
23 distdir install check installcheck:\
25 db4_install: all install_setip' \
26 -e '/^uninstall[:-]/c\
33 # Generate manifest for rpmdb.
34 make -s listobjs > db3lobjs