VPATH=@srcdir@ SRCDIR=@srcdir@ CC=@CC@ CFLAGS+=@CFLAGS@ -I. -I$(SRCDIR) AR=@AR@ LDFLAGS=@LDFLAGS@ LDSHARED=@LDSHARED@ LD=@LD@ NOOPTFLAGS=@NOOPTFLAGS@ -I. -I$(SRCDIR) CONFIGOPTS=@ac_configure_args@ SO_VERSION=.1 default : libmird.a libmird.@SOVER@ .c.o: $(CC) $(CFLAGS) -c $< -o $@ @CCFILTER@ testsuite.o: testsuite.c $(CC) $(NOOPTFLAGS) -c $< -o $@ @CCFILTER@ OBJS=blocks.o errors.o frags.o database.o freelist.o \ journal.o debug.o transaction.o cells.o hashtrie.o \ tables.o usage.o skeys.o dmalloc.o libmird.a : $(OBJS) Makefile rm -f libmird.a $(AR) cq libmird.a $(OBJS) libmird.@SOVER@ : libmird.a $(OBJS) $(LD) $(OBJS) $(LDSHARED) -o libmird.@SOVER@ testsuite : testsuite.o libmird.@SOVER@ $(CC) $(CFLAGS) $(LDFLAGS) -L. -o testsuite testsuite.o -lmird test : test.o libmird.@SOVER@ $(CC) $(CFLAGS) $(LDFLAGS) -L. -o test test.o -lmird make_old_database : make_old_database.o libmird.a $(CC) $(CFLAGS) $(LDFLAGS) -L. -o make_old_database make_old_database.o libmird.a verify: testsuite cp $(SRCDIR)/test-database.mird old-database.mird LD_LIBRARY_PATH=. ./testsuite aspodk : echo $(MAKEFLAGS) mird.h : mird.h.in configure @echo mird.h is old $(MAKE) reconfigure config.h : config.h.in configure @echo config.h is old $(MAKE) reconfigure @touch config.h Makefile : Makefile.in config.status @if test ! -econfig.status; then \ echo "*** Need a reconfigure (miss config.status)"; \ echo "*** Please run configure manually"; \ exit 1; \ fi ./config.status reconfigure : config.status @if test ! -econfig.status; then \ echo "*** Need a reconfigure (miss config.status)"; \ echo "*** Please run configure manually"; \ exit 1; \ fi ./config.status configure : configure.in (cd $(SRCDIR);autoconf;exit 0) config.h.in : configure.in acconfig.h (cd $(SRCDIR);rm config.h.in;autoheader;exit 0) config.status : configure @if test ! -econfig.status; then \ echo "*** Need a reconfigure (miss config.status)"; \ echo "*** Please run configure manually"; \ exit 1; \ fi @echo `head -10 config.status | grep /configure | sed 's/^# //'` @`head -10 config.status | grep /configure | sed 's/^# //'` clean : rm -f *.o *.a old-database.mird test.mird || true superclean : clean rm mird.h config.h config.cache config.log superduperclean : superclean rm configure config.h.in Makefile config.status missing_errors: sed '1,/switch/d' $(SRCDIR)/errors.c | grep 'case MIRDE' | sed 's+:++' | awk '{ print $$2 }' | sort | uniq >2 grep '#define MIRDE' $(SRCDIR)/mird.h.in | awk '{ print $$2 }' | sort | uniq >1 grep MIRDE $(SRCDIR)/*.c | grep -v '$(SRCDIR)/errors.c' | sed 's/.*\(MIRDE[_A-Z0-9]*\).*/\1/g' | sort | uniq >3 @echo --- missing erros in $(SRCDIR)/errors.c: @(diff 1 2 | grep '^< '; diff 3 2 | grep '^< ') | sed 's/< //' | sort | uniq @echo --- overflow erros in $(SRCDIR)/errors.c: @diff 1 2 | grep '^> ' | sed 's/> //' @echo --- missing erros in $(SRCDIR)/mird.h.in: @diff 3 1 | grep '^< ' | sed 's/< //' @echo --- overflow erros in $(SRCDIR)/mird.h.in: @diff 3 2 | grep '^> ' | sed 's/> //' | grep -v MIRDE_RESOURCE_ERR; true @echo --- @rm 1 2 3 old_database: make_old_database @rm old-database.mird || true ./make_old_database @ls -l old-database.mird blocks.o: blocks.c internal.h mird.h config.h physical.h dmalloc.h cells.o: cells.c internal.h mird.h config.h physical.h database.o: database.c internal.h mird.h config.h physical.h dmalloc.h debug.o: debug.c internal.h mird.h config.h physical.h dmalloc.h dmalloc.o: dmalloc.h internal.h config.h dmalloc.c errors.o: errors.c internal.h mird.h config.h physical.h dmalloc.h frags.o: frags.c internal.h mird.h config.h physical.h freelist.o: freelist.c internal.h mird.h config.h physical.h hashtrie.o: hashtrie.c internal.h mird.h config.h physical.h journal.o: journal.c internal.h mird.h config.h physical.h dmalloc.h skeys.o: skeys.c internal.h mird.h config.h physical.h dmalloc.h tables.o: tables.c internal.h mird.h config.h physical.h dmalloc.h testsuite.o: testsuite.c mird.h transaction.o: transaction.c internal.h mird.h config.h physical.h dmalloc.h usage.o: usage.c internal.h mird.h config.h physical.h dmalloc.h make_old_database.o: make_old_database.c mird.h