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