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