14 # this dir relative to top dir
15 thisdir = src/tray-monitor
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
26 # these are the objects that are changed by the .configure process
29 MONITOR_CPPFLAGS=@TRAY_MONITOR_CPPFLAGS@
30 MONITOR_LDFLAGS=@TRAY_MONITOR_LDFLAGS@
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 ===="
44 bacula-tray-monitor: $(MONITOROBJS) ../lib/libbac.a
45 $(CXX) $(LDFLAGS) $(MONITOR_LDFLAGS) -L../lib -L../cats -o $@ $(MONITOROBJS) \
46 $(DLIB) -lbac -lm $(LIBS)
49 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
51 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
54 @$(RMF) bacula-tray-monitor core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
57 @$(RMF) tags tray-monitor.conf
60 if test $(srcdir) = .; then $(MAKE) realclean; fi
61 (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
64 if test $(srcdir) = .; then $(MAKE) realclean; fi
65 (cd $(srcdir); $(RMF) Makefile)
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"; \
76 echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
77 ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
80 (cd $(DESTDIR)$(sbindir); $(RMF) bacula-tray-monitor)
81 (cd $(DESTDIR)$(sysconfdir); $(RMF) tray-monitor.conf)
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.
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 @$(CXX) -S -M $(CPPFLAGS) $(MONITOR_CPPFLAGS) -I$(srcdir) -I$(basedir) *.c >> Makefile
95 @if test -f Makefile ; then \
96 $(RMF) Makefile.bak; \
98 $(MV) Makefile.bak Makefile; \
99 echo -e "Something went wrong\n\a"; \
102 # -----------------------------------------------------------------------
103 # DO NOT DELETE: nice dependency list follows