]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/Makefile.in
Remove more vestiges of Python
[bacula/bacula] / bacula / src / filed / Makefile.in
1 #
2 # Bacula Makefile for the File daemon
3 #
4 #
5
6 @MCOMMON@
7
8 srcdir =        .
9 VPATH =         .
10 .PATH:          .
11
12 fd_group=@fd_group@
13
14 # one up
15 basedir = ..
16 # top dir
17 topdir = ../..
18 # this dir relative to top dir
19 thisdir = src/filed
20
21 DEBUG=@DEBUG@
22
23 GETTEXT_LIBS = @LIBINTL@
24
25 AFS_CFLAGS = @AFS_CFLAGS@
26 AFS_LIBS = @AFS_LIBS@
27
28 first_rule: all
29 dummy:
30
31 #
32 SVRSRCS = filed.c authenticate.c acl.c backup.c estimate.c \
33           fd_plugins.c accurate.c \
34           filed_conf.c heartbeat.c job.c \
35           restore.c status.c verify.c verify_vol.c xattr.c
36 SVROBJS = $(SVRSRCS:.c=.o)
37
38 # these are the objects that are changed by the .configure process
39 EXTRAOBJS = @OBJLIST@
40
41 CAP_LIBS = @CAP_LIBS@
42 FDLIBS = @FDLIBS@                 # extra libs for File daemon
43 ZLIBS = @ZLIBS@
44 LZO_LIBS = @LZO_LIBS@
45 LZO_INC= @LZO_INC@
46
47 .SUFFIXES:      .c .o
48 .PHONY:
49 .DONTCARE:
50
51 # inference rules
52 .c.o:
53         @echo "Compiling $<"
54         $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(LZO_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
55 #-------------------------------------------------------------------------
56 all: Makefile bacula-fd @STATIC_FD@
57         @echo "==== Make of filed is good ===="
58         @echo " "
59
60 acl.o: acl.c
61         @echo "Compiling $<"
62         $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(LZO_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $(AFS_CFLAGS) $<
63
64 win32/winlib.a:
65         @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
66            (cd win32; $(GMAKE) DESTDIR=$(DESTDIR)); \
67         fi
68         @rm -f bacula-fd.exe
69
70 win32/winmain.o:
71         @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
72            (cd win32; $(GMAKE) DESTDIR=$(DESTDIR)); \
73         fi
74         @rm -f bacula-fd.exe
75
76 win32/winres.res:
77         @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
78            (cd win32; $(GMAKE) DESTDIR=$(DESTDIR)); \
79         fi
80         @rm -f bacula-fd.exe
81
82 # win32 libraries if needed
83 win32:  $(WIN32OBJS)
84         @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
85            (cd win32; $(GMAKE) DESTDIR=$(DESTDIR)); \
86         fi
87         @rm -f bacula-fd.exe
88
89 bacula-fd:  Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
90         @echo "Linking $@ ..."
91         $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
92           $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
93           $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
94
95 static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
96         $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
97            $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
98            $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
99         strip $@
100
101 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
102         cd $(topdir) \
103           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
104
105 libtool-clean:
106         @$(RMF) -r .libs _libs
107
108 clean:  libtool-clean
109         @$(RMF) bacula-fd filed core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
110         @$(RMF) static-bacula-fd
111         @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
112            (cd win32; $(GMAKE) clean); \
113         fi
114
115 realclean: clean
116         @$(RMF) tags bacula-fd.conf
117
118 distclean: realclean
119         if test $(srcdir) = .; then $(MAKE) realclean; fi
120         (cd $(srcdir); $(RMF) Makefile)
121         @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
122            (cd win32; $(GMAKE) distclean); \
123         fi
124
125 devclean: realclean
126         if test $(srcdir) = .; then $(MAKE) realclean; fi
127         (cd $(srcdir); $(RMF) Makefile)
128         @if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
129            (cd win32; $(GMAKE) devclean); \
130         fi
131
132 install: all
133         $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bacula-fd $(DESTDIR)$(sbindir)/bacula-fd 
134         @srcconf=bacula-fd.conf; \
135         if  test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
136            destconf=$$srcconf.new; \
137            echo "  ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
138         else \
139            destconf=$$srcconf; \
140         fi; \
141         echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
142         ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
143         @if test "x${fd_group}" != "x"; then \
144            chgrp -f ${fd_group} ${DESTDIR}${sysconfdir}/$$destconf ; \
145         fi
146         @if test -f static-bacula-fd; then \
147            $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) static-bacula-fd $(DESTDIR)$(sbindir)/static-bacula-fd; \
148         fi
149
150 uninstall:
151         (cd $(DESTDIR)$(sbindir); $(RMF) bacula-fd)
152         (cd $(DESTDIR)$(sysconfdir); $(RMF) bacula-fd.conf)
153         (cd $(DESTDIR)$(sysconfdir); $(RMF) bacula-fd.conf.new)
154
155 # Semi-automatic generation of dependencies:
156 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
157 # and it also includes system headers.
158 # `semi'-automatic since dependencies are generated at distribution time.
159
160 depend:
161         @$(MV) Makefile Makefile.bak
162         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
163         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
164         @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(LZO_INC) -I$(srcdir) -I$(basedir) *.c >> Makefile
165         @if test -f Makefile ; then \
166             $(RMF) Makefile.bak; \
167         else \
168            $(MV) Makefile.bak Makefile; \
169            echo " ===== Something went wrong in make depend ====="; \
170         fi
171
172 # -----------------------------------------------------------------------
173 # DO NOT DELETE: nice dependency list follows