]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/tray-monitor/Makefile.in
Fix bug # 746 - Windows FD crashes when job canceled
[bacula/bacula] / bacula / src / tray-monitor / 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/tray-monitor
16
17 DEBUG=@DEBUG@
18
19 first_rule: all
20 dummy:
21
22 #
23 MONITORSRCS = tray-monitor.c tray_conf.c authenticate.c eggmarshalers.c eggstatusicon.c eggtrayicon.c
24 MONITOROBJS = tray-monitor.o tray_conf.o authenticate.o eggmarshalers.o eggstatusicon.o eggtrayicon.o
25
26 # these are the objects that are changed by the .configure process
27 EXTRAOBJS = @OBJLIST@
28
29 MONITOR_CPPFLAGS=@TRAY_MONITOR_CPPFLAGS@
30 MONITOR_LDFLAGS=@TRAY_MONITOR_LDFLAGS@ @X_LIBS@ -lX11
31
32 OPENSSL_INC = @OPENSSL_INC@
33 OPENSSL_LIBS = @OPENSSL_LIBS@
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) $(MONITOR_CPPFLAGS) \
43  $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
44 #-------------------------------------------------------------------------
45 all: Makefile bacula-tray-monitor
46         @echo "==== Make of bacula-tray-monitor is good ===="
47         @echo " "
48
49 bacula-tray-monitor: $(MONITOROBJS) ../lib/libbac.a
50         $(CXX) $(LDFLAGS) $(MONITOR_LDFLAGS) -L../lib -L../cats -o $@ \
51  $(MONITOROBJS) $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
52
53
54 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
55         cd $(topdir) \
56           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
57
58 clean:
59         @$(RMF) bacula-tray-monitor core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
60
61 realclean: clean
62         @$(RMF) tags tray-monitor.conf
63
64 distclean: realclean
65         if test $(srcdir) = .; then $(MAKE) realclean; fi
66         (cd $(srcdir); $(RMF) Makefile)
67
68 devclean: realclean
69         if test $(srcdir) = .; then $(MAKE) realclean; fi
70         (cd $(srcdir); $(RMF) Makefile)
71
72 install: all
73         $(INSTALL_PROGRAM) bacula-tray-monitor $(DESTDIR)$(sbindir)/bacula-tray-monitor
74         @srcconf=tray-monitor.conf; \
75         if  test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
76            destconf=$$srcconf.new; \
77            echo "  ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
78         else \
79            destconf=$$srcconf; \
80         fi; \
81         echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
82         ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
83
84 uninstall:
85         (cd $(DESTDIR)$(sbindir); $(RMF) bacula-tray-monitor)
86         (cd $(DESTDIR)$(sysconfdir); $(RMF) tray-monitor.conf)
87
88
89
90 # Semi-automatic generation of dependencies:
91 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
92 # and it also includes system headers.
93 # `semi'-automatic since dependencies are generated at distribution time.
94
95 depend:
96         @$(MV) Makefile Makefile.bak
97         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
98         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
99         @$(CXX) -S -M $(CPPFLAGS) $(MONITOR_CPPFLAGS) -I$(srcdir) -I$(basedir) *.c >> Makefile
100         @if test -f Makefile ; then \
101             $(RMF) Makefile.bak; \
102         else \
103            $(MV) Makefile.bak Makefile; \
104            echo -e "Something went wrong\n\a"; \
105         fi
106
107 # -----------------------------------------------------------------------
108 # DO NOT DELETE: nice dependency list follows