# inference rules
.c.o:
- $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(SQL_INC) $(DINCLUDE) $(CFLAGS) $<
+ $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(SQL_INC) $(DINCLUDE) $(CFLAGS) $<
#-------------------------------------------------------------------------
all: Makefile libsql.a
@echo "==== Make of cats is good ===="
@echo " "
libsql.a: $(LIBOBJS)
- $(AR) rcs $@ $(LIBOBJS)
+ $(AR) rc $@ $(LIBOBJS)
$(RANLIB) $@
cats: $(SVROBJS) ../findlib/libfind.a
- $(CC) $(LDFLAGS) -L../findlib -L../lib -o $@ $(SVROBJS) $(LIBS) $(DLIB) -lfind -lbac
+ $(CC) $(WLDFLAGS) $(LDFLAGS) -L../findlib -L../lib -o $@ $(SVROBJS) $(LIBS) $(DB_LIBS) -lfind -lbac
Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
cd $(topdir) \
$(RMF) tags
$(RMF) make_mysql_tables grant_mysql_privileges drop_mysql_tables
$(RMF) create_mysql_database make_sqlite_tables sqlite
+ $(RMF) create_bdb_database drop_bdb_tables make_dbd_tables
+ $(RMF) make_catalog_backup delete_catalog_backup
+ $(RMF) update_mysql_tables update_sqlite_tables create_sqlite_database
+ $(RMF) drop_bacula_tables drop_sqlite_tables make_bacula_tables
+ $(RMF) update_bacula_tables
+ $(RMF) drop_bdb_tables make_bdb_tables mysql
distclean: realclean
if test $(srcdir) = .; then $(MAKE) realclean; fi
- (cd $(srcdir); $(RMF) Makefile)
+ (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
install:
- $(INSTALL_SCRIPT) create_mysql_database $(DESTDIR)$(sysconfdir)/create_mysql_database
- $(INSTALL_SCRIPT) drop_mysql_tables $(DESTDIR)$(sysconfdir)/drop_mysql_tables
- $(INSTALL_SCRIPT) make_mysql_tables $(DESTDIR)$(sysconfdir)/make_mysql_tables
+ $(INSTALL_SCRIPT) create_@DB_NAME@_database $(DESTDIR)$(scriptdir)/create_@DB_NAME@_database
+ $(INSTALL_SCRIPT) drop_@DB_NAME@_tables $(DESTDIR)$(scriptdir)/drop_@DB_NAME@_tables
+ $(INSTALL_SCRIPT) make_@DB_NAME@_tables $(DESTDIR)$(scriptdir)/make_@DB_NAME@_tables
+ $(INSTALL_SCRIPT) update_@DB_NAME@_tables $(DESTDIR)$(scriptdir)/update_@DB_NAME@_tables
+ $(INSTALL_SCRIPT) drop_bacula_tables $(DESTDIR)$(scriptdir)/drop_bacula_tables
+ $(INSTALL_SCRIPT) make_bacula_tables $(DESTDIR)$(scriptdir)/make_bacula_tables
+ $(INSTALL_SCRIPT) update_bacula_tables $(DESTDIR)$(scriptdir)/update_bacula_tables
+ $(INSTALL_SCRIPT) make_catalog_backup $(DESTDIR)$(scriptdir)/make_catalog_backup
+ $(INSTALL_SCRIPT) delete_catalog_backup $(DESTDIR)$(scriptdir)/delete_catalog_backup
+ $(INSTALL_SCRIPT) grant_mysql_privileges $(DESTDIR)$(scriptdir)/grant_mysql_privileges
uninstall:
- (cd $(DESTDIR)$(sysconfdir); $(RMF) create_mysql_database)
- (cd $(DESTDIR)$(sysconfdir); $(RMF) drop_mysql_tables)
- (cd $(DESTDIR)$(sysconfdir); $(RMF) make_mysql_tables)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) create_@DB_NAME@_database)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) drop_@DB_NAME@_tables)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) make_@DB_NAME@_tables)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) update_@DB_NAME@_tables)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) drop_bacula_tables)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) make_bacula_tables)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) update_bacula_tables)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) make_catalog_backup)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) delete_catalog_backup)
+ (cd $(DESTDIR)$(scriptdir); $(RMF) grant_mysql_privileges)
# Semi-automatic generation of dependencies: