echo "Doing make of dependencies"
${MAKE:-make} depend
+pushd src/lib/tokyocabinet > /dev/null
+tcdbm_opt=
+if test x$largefile_support = xyes; then
+ tcdbm_opt=--enable-off64
+fi
+./configure $tcdbm_opt
+popd > /dev/null
+
cd scripts
chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
chmod 755 dvd-handler dvd-simulator
echo "Doing make of dependencies"
${MAKE:-make} depend
+pushd src/lib/tokyocabinet
+tcdbm_opt=
+if test x$largefile_support = xyes; then
+ tcdbm_opt=--enable-off64
+fi
+./configure $tcdbm_opt
+popd > /dev/null
+
cd scripts
chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
chmod 755 dvd-handler dvd-simulator
EXTRAOBJS = @OBJLIST@
-
.SUFFIXES: .c .o .ch .dvi .pdf .tex .view .w .1
.PHONY:
.DONTCARE:
$(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
#-------------------------------------------------------------------------
-all: Makefile libbac.a
+all: Makefile libbac.a libtokyocabinet.a
@echo "==== Make of lib is good ===="
@echo " "
+libtokyocabinet.a:
+ @(cd tokyocabinet ; echo "==>Entering directory `pwd`"; \
+ $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+ echo ""; echo "";));
+ @cp tokyocabinet/tcadb.h tokyocabinet/tcbdb.h tokyocabinet/tchdb.h .
+ @cp tokyocabinet/libtokyocabinet.a .
+
libbac.a: $(LIBOBJS)
@echo "Making $@ ..."
$(AR) rc $@ $(LIBOBJS)
@echo "Compiling $<"
$(NO_ECHO)$(CXX) -fPIC $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
-
+
install:
uninstall:
clean:
$(RMF) *.a core a.out *.o *.bak *.tex *.pdf *~ *.intpro *.extpro 1 2 3
$(RMF) rwlock_test md5sum sha1sum
+ (cd tokyocabinet ; make clean)
realclean: clean
$(RMF) tags