]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/console/Makefile.in
ebl move Errors count up to be more easy to parse with Bweb
[bacula/bacula] / bacula / src / console / Makefile.in
1 #
2 #  Version $Id$
3 #
4 @MCOMMON@
5
6 srcdir =        .
7 VPATH =         .
8 .PATH:          .
9
10 # one up
11 basedir = ..
12 # top dir
13 topdir = ../..
14 # this dir relative to top dir
15 thisdir = src/console
16
17 DEBUG=@DEBUG@
18
19 first_rule: all
20 dummy:
21
22 #
23 CONSSRCS = console.c console_conf.c authenticate.c @CONS_SRC@ 
24 CONSOBJS = console.o console_conf.o authenticate.o @CONS_OBJ@
25
26 # these are the objects that are changed by the .configure process
27 EXTRAOBJS = @OBJLIST@
28
29 GETTEXT_LIBS = @LIBINTL@
30
31 CONS_INC=@CONS_INC@
32 CONS_LIBS=@CONS_LIBS@
33 CONS_LDFLAGS=@CONS_LDFLAGS@
34
35 .SUFFIXES:      .c .o
36 .PHONY:
37 .DONTCARE:
38
39 # inference rules
40 .c.o:
41         @echo "Compiling $<"
42         $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
43 #-------------------------------------------------------------------------
44 all: Makefile bconsole @STATIC_CONS@
45         @echo "==== Make of console is good ===="
46         @echo " "
47
48
49 bconsole: $(CONSOBJS) ../lib/libbac.a
50         $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
51               $(DLIB) $(CONS_LIBS)  -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
52               $(OPENSSL_LIBS)
53
54 static-bconsole: $(CONSOBJS) ../lib/libbac.a
55         $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
56               $(DLIB) $(CONS_LIBS)  -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
57               $(OPENSSL_LIBS)
58         strip $@
59
60
61 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
62         cd $(topdir) \
63           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
64
65 clean:
66         @$(RMF) console bconsole core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
67         @$(RMF) static-console static-bconsole gmon.out
68
69 realclean: clean
70         @$(RMF) tags console.conf bconsole.conf
71
72 distclean: realclean
73         if test $(srcdir) = .; then $(MAKE) realclean; fi
74         (cd $(srcdir); $(RMF) Makefile)
75
76 devclean: realclean
77         if test $(srcdir) = .; then $(MAKE) realclean; fi
78         (cd $(srcdir); $(RMF) Makefile)
79
80 install: all
81         @if test -f ${DESTDIR}${sbindir}/console; then \
82            echo " "; \
83            echo "Warning!!!  ${DESTDIR}${sbindir}console found."; \
84            echo " console has been renamed bconsole, so console"; \
85            echo " is no longer used, and you might want to delete it."; \
86            echo " "; \
87         fi
88         $(INSTALL_PROGRAM) bconsole $(DESTDIR)$(sbindir)/bconsole
89         @srcconf=bconsole.conf; \
90         if  test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
91            destconf=$$srcconf.new; \
92            echo "  ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
93         else \
94            destconf=$$srcconf; \
95            if  test -f ${DESTDIR}${sysconfdir}/console.conf; then \
96               echo "Existing console.conf moved to bconsole.conf"; \
97               @$(MV) ${DESTDIR}${sysconfdir}/console.conf ${DESTDIR}${sysconfdir}/bconsole.conf; \
98               destconf=$$srcconf.new; \
99            fi; \
100         fi; \
101         echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
102         ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
103         if test -f static-bconsole; then \
104            $(INSTALL_PROGRAM) static-bconsole $(DESTDIR)$(sbindir)/static-bconsole; \
105         fi
106
107 uninstall:
108         (cd $(DESTDIR)$(sbindir); $(RMF) bconsole static-bconsole)
109         (cd $(DESTDIR)$(sysconfdir); $(RMF) console.conf bconsole.conf bconsole.conf.new)
110
111
112
113 # Semi-automatic generation of dependencies:
114 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
115 # and it also includes system headers.
116 # `semi'-automatic since dependencies are generated at distribution time.
117
118 depend:
119         @$(MV) Makefile Makefile.bak
120         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
121         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
122         @$(CXX) -S -M $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) *.c >> Makefile
123         @if test -f Makefile ; then \
124             $(RMF) Makefile.bak; \
125         else \
126            $(MV) Makefile.bak Makefile; \
127            echo " ===== Something went wrong in make depend ====="; \
128         fi
129
130 # -----------------------------------------------------------------------
131 # DO NOT DELETE: nice dependency list follows