autoconf stuff from Carl

This commit is contained in:
brianb 2000-03-19 13:26:41 +00:00
parent 99a5e99dd4
commit f009565993
11 changed files with 107 additions and 7 deletions

View File

@ -22,7 +22,7 @@ ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
RM = @RM@
subdirs = libmdb util extras
all:
@ -31,9 +31,21 @@ all:
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
clean:
cd extras; make clean
cd util; make clean
cd libmdb; make clean
@for dir in ${subdirs} include; do \
(cd $$dir && $(MAKE) clean && rm -f Makefile) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
rm -f config.log config.status Makefile config.cache; \
done && test -z "$$fail"
install:
@for dir in ${subdirs} include; do \
(cd $$dir && $(MAKE) install) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
uninstall:
@for dir in ${subdirs} include; do \
(cd $$dir && $(MAKE) uninstall) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
# automatic re-running of configure if the configure.in file has changed
${srcdir}/configure: configure.in

4
src/configure vendored
View File

@ -1310,7 +1310,7 @@ done
ac_given_srcdir=$srcdir
trap 'rm -fr `echo "util/Makefile extras/Makefile Makefile libmdb/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
trap 'rm -fr `echo "util/Makefile extras/Makefile Makefile libmdb/Makefile include/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
@ -1386,7 +1386,7 @@ EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"util/Makefile extras/Makefile Makefile libmdb/Makefile"}
CONFIG_FILES=\${CONFIG_FILES-"util/Makefile extras/Makefile Makefile libmdb/Makefile include/Makefile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then

View File

@ -21,4 +21,4 @@ AC_TYPE_SIZE_T
dnl Checks for library functions.
AC_OUTPUT(util/Makefile extras/Makefile Makefile libmdb/Makefile)
AC_OUTPUT(util/Makefile extras/Makefile Makefile libmdb/Makefile include/Makefile)

View File

@ -31,3 +31,15 @@ mdb-dump: dump.o
.c.o:
$(CC) -g -c $<
install:
@for prog in $(PROGS); do \
echo " copying $$prog to $(bindir)"; \
cp $$prog $(bindir); \
done
uninstall:
@for prog in $(PROGS); do \
echo " removing $$prog from $(bindir)"; \
rm -f $(bindir)/$$prog; \
done

1
src/extras/config.h.in Normal file
View File

@ -0,0 +1 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */

47
src/include/Makefile.in Normal file
View File

@ -0,0 +1,47 @@
SHELL = /bin/sh
VPATH = @srcdir@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
infodir = $(exec_prefix)/info
libdir = $(exec_prefix)/lib
includedir = $(exec_prefix)/include
mandir = $(exec_prefix)/man/man1
CC = @CC@
CPPFLAGS = @CPPFLAGS@
CFLAGS = $(CPPFLAG) @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL= @INSTALL@
HEADERS = mdbtools.h
OBJS = dump.o
all: $(PROGS)
clean:
rm -f core *.o $(PROGS) Makefile
mdb-dump: dump.o
$(CC) -g -o $@ $<
.c.o:
$(CC) -g -c $<
install:
mkdir -p $(includedir)
@for header in $(HEADERS); do \
echo " copying $$header to $(includedir)"; \
cp $$header $(includedir); \
done
uninstall:
@for header in $(HEADERS); do \
echo " removing $$header from $(includedir)"; \
rm -f $(includedir)/$$header; \
done

1
src/include/config.h.in Normal file
View File

@ -0,0 +1 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */

View File

@ -17,6 +17,7 @@ CFLAGS = $(CPPFLAG) @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL= @INSTALL@
LIBLIST = libmdb.a
INC = -I ../include `glib-config --cflags`
OBJS = catalog.o mem.o file.o kkd.o table.o data.o dump.o
@ -31,3 +32,15 @@ clean:
.c.o:
$(CC) -g -c $< $(INC)
install:
@for lib in $(LIBLIST); do \
echo " copying $$lib to $(libdir)"; \
cp $$lib $(libdir); \
done
uninstall:
@for lib in $(LIBLIST); do \
echo " copying $$lib to $(libdir)"; \
rm -f $(libdir)/$$lib; \
done

1
src/libmdb/config.h.in Normal file
View File

@ -0,0 +1 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */

View File

@ -69,3 +69,15 @@ clean:
.c.o:
$(CC) -g -c $< $(INC)
install:
@for prog in $(PROGS); do \
echo " copying $$prog to $(bindir)"; \
cp $$prog $(bindir); \
done
uninstall:
@for prog in $(PROGS); do \
echo " removing $$prog from $(bindir)"; \
rm -f $(bindir)/$$prog; \
done

1
src/util/config.h.in Normal file
View File

@ -0,0 +1 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */