14 # this dir relative to top dir
15 thisdir = src/tray-monitor
23 MONITORSRCS = tray-monitor.c tray_conf.c authenticate.c
24 MONITOROBJS = tray-monitor.o tray_conf.o authenticate.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@ @X_LIBS@ -lX11
39 $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(MONITOR_CPPFLAGS) \
40 -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
41 #-------------------------------------------------------------------------
42 all: Makefile bacula-tray-monitor
43 @echo "==== Make of bacula-tray-monitor is good ===="
46 bacula-tray-monitor: Makefile $(MONITOROBJS) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
47 $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) $(MONITOR_LDFLAGS) -L../lib -o $@ \
48 $(MONITOROBJS) $(DLIB) -lbaccfg -lbac -lm $(LIBS) $(OPENSSL_LIBS)
50 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
52 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
57 clean: @LIBTOOL_CLEAN_TARGET@
58 @$(RMF) bacula-tray-monitor core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
61 @$(RMF) tags tray-monitor.conf
64 if test $(srcdir) = .; then $(MAKE) realclean; fi
65 (cd $(srcdir); $(RMF) Makefile)
68 if test $(srcdir) = .; then $(MAKE) realclean; fi
69 (cd $(srcdir); $(RMF) Makefile)
72 $(LIBTOOL_INSTALL) $(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"; \
80 echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
81 ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
84 (cd $(DESTDIR)$(sbindir); $(RMF) bacula-tray-monitor)
85 (cd $(DESTDIR)$(sysconfdir); $(RMF) tray-monitor.conf)
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.
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; \
102 $(MV) Makefile.bak Makefile; \
103 echo -e "Something went wrong\n\a"; \
106 # -----------------------------------------------------------------------
107 # DO NOT DELETE: nice dependency list follows