]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/Makefile.in
grant sqlite privileges
[bacula/bacula] / bacula / src / cats / Makefile.in
index 348cd8e0bec88e174f568cd981ad74a3d9056340..3c920ac9e9263953025af8ea8bfaeeb45fdec58d 100644 (file)
@@ -12,6 +12,7 @@ topdir = ../..
 thisdir = src/cats
 
 DEBUG=@DEBUG@
+MKDIR=$(topdir)/autoconf/mkinstalldirs
 
 SQL_INC=@SQL_INCLUDE@
 
@@ -25,11 +26,13 @@ SVROBJS = cats.o sql.o
 LIBSRCS = mysql.c bdb.c bdb_create.c bdb_get.c bdb_update.c \
          bdb_delete.c bdb_find.c bdb_list.c \
          sql.c sql_create.c sql_delete.c sql_find.c \
-         sql_get.c sql_list.c sql_update.c sqlite.c 
+         sql_get.c sql_list.c sql_update.c sqlite.c \
+         postgresql.c
 LIBOBJS = mysql.o bdb.o bdb_create.o bdb_get.o bdb_update.o \
          bdb_delete.o bdb_find.o bdb_list.o \
          sql.o sql_create.o sql_delete.o sql_find.o \
-         sql_get.o sql_list.o sql_update.o sqlite.o
+         sql_get.o sql_list.o sql_update.o sqlite.o \
+         postgresql.o
 
 .SUFFIXES:     .c .o
 .PHONY:
@@ -37,7 +40,7 @@ LIBOBJS = mysql.o bdb.o bdb_create.o bdb_get.o bdb_update.o \
 
 # 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 ===="
@@ -48,7 +51,7 @@ libsql.a: $(LIBOBJS)
        $(RANLIB) $@
 
 cats: $(SVROBJS) ../findlib/libfind.a
-       $(CC) $(LDFLAGS) -L../findlib -L../lib -o $@ $(SVROBJS) $(LIBS) $(DB_LIBS) -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) \
@@ -61,26 +64,49 @@ clean:
 realclean: clean
        $(RMF) tags
        $(RMF) make_mysql_tables grant_mysql_privileges drop_mysql_tables
-       $(RMF) create_mysql_database make_sqlite_tables sqlite
+       $(RMF) make_postgresql_tables grant_postgresql_privileges drop_postgresql_tables
+       $(RMF) create_mysql_database create_postgresql_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) create_bacula_database grant_bacula_privileges
+       $(RMF) update_bacula_tables
+       $(RMF) drop_bdb_tables make_bdb_tables mysql postgresql
 
 distclean: realclean
        if test $(srcdir) = .; then $(MAKE) realclean; fi
-       (cd $(srcdir); $(RMF) Makefile)
+       (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
 
 install:
-       $(INSTALL_SCRIPT) create_@DB_NAME@_database $(DESTDIR)$(sysconfdir)/create_@DB_NAME@_database
-       $(INSTALL_SCRIPT) drop_@DB_NAME@_tables $(DESTDIR)$(sysconfdir)/drop_@DB_NAME@_tables
-       $(INSTALL_SCRIPT) make_@DB_NAME@_tables $(DESTDIR)$(sysconfdir)/make_@DB_NAME@_tables
-       $(INSTALL_SCRIPT) drop_bacula_tables $(DESTDIR)$(sysconfdir)/drop_bacula_tables
-       $(INSTALL_SCRIPT) make_bacula_tables $(DESTDIR)$(sysconfdir)/make_bacula_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) create_bacula_database $(DESTDIR)$(scriptdir)/create_bacula_database
+       $(INSTALL_SCRIPT) grant_bacula_privileges $(DESTDIR)$(scriptdir)/grant_bacula_privileges
+       $(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  
+       $(INSTALL_SCRIPT) grant_postgresql_privileges $(DESTDIR)$(scriptdir)/grant_postgresql_privileges        
 
 uninstall:
-       (cd $(DESTDIR)$(sysconfdir); $(RMF) create_@DB_NAME@_database)
-       (cd $(DESTDIR)$(sysconfdir); $(RMF) drop_@DB_NAME@_tables)
-       (cd $(DESTDIR)$(sysconfdir); $(RMF) make_@DB_NAME@_tables)
-       (cd $(DESTDIR)$(sysconfdir); $(RMF) drop_bacula_tables)
-       (cd $(DESTDIR)$(sysconfdir); $(RMF) make_bacula_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) create_bacula_database)
+       (cd $(DESTDIR)$(scriptdir); $(RMF) grant_bacula_privileges)
+       (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)
+       (cd $(DESTDIR)$(scriptdir); $(RMF) grant_postgresql_privileges)
 
 
 # Semi-automatic generation of dependencies: