Den Wed, 6 May 2009 15:56:20 +0200
skrev "Masopust, Christian" <christian.masopust AT siemens DOT com>:
> Hello Anders,
>
> try the attached src/check_bacula/Makefile.in, I've modified it to
> work with bacula-3.0.x
>
> christian
>
>
>
>
> # cat Makefile.in
>
> #
> # Version $Id: Makefile.in,v 1.4 2004/09/25 10:19:59 nboichat Exp $
> #
> @MCOMMON@
>
> srcdir = .
> VPATH = .
> .PATH: .
>
> # one up
> basedir = ..
> # top dir
> topdir = ../..
> # this dir relative to top dir
> thisdir = src/check_bacula
>
> DEBUG=@DEBUG@
>
> first_rule: all
> dummy:
>
> #
> CHECKSRCS = check_bacula.c authenticate.c
> CHECKOBJS = check_bacula.o authenticate.o
>
> # these are the objects that are changed by the .configure process
> EXTRAOBJS = @OBJLIST@
>
> CHECK_CPPFLAGS=
> CHECK_LDFLAGS=
>
> .SUFFIXES: .c .o
> .PHONY:
> .DONTCARE:
>
> # inference rules
> .c.o:
> @echo "Compiling $<"
> $(NO_ECHO) $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS)
> $(CHECK_CPPFLAGS) \ -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
> #-------------------------------------------------------------------------
> all: Makefile check_bacula
> @echo "==== Make of check_bacula is good ===="
> @echo " "
>
> check_bacula: Makefile
> $(CHECKOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) $(LIBTOOL_LINK)
> $(CXX) $(LDFLAGS) $(CHECK_LDFLAGS) -L../lib -o $@ \ $(CHECKOBJS)
> $(DLIB) -lbac -lm $(LIBS) $(OPENSSL_LIBS)
>
>
> Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
> cd $(topdir) \
> && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS=
> $(SHELL) ./config.status
>
> libtool-clean:
> $(RMF) -r .libs _libs
>
> clean:
> @$(RMF) check_bacula core core.* a.out *.o *.bak *~ *.intpro
> *.extpro 1 2 3
>
> realclean: clean
> @$(RMF) tags
>
> distclean: realclean
> if test $(srcdir) = .; then $(MAKE) realclean; fi
> (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
>
> devclean: realclean
> if test $(srcdir) = .; then $(MAKE) realclean; fi
> (cd $(srcdir); $(RMF) Makefile)
>
> install: all
> $(INSTALL_PROGRAM) check_bacula
> $(DESTDIR)$(sbindir)/check_bacula
>
> uninstall:
> (cd $(DESTDIR)$(sbindir); $(RMF) check_bacula)
>
>
>
> # Semi-automatic generation of dependencies:
> # Use gcc -MM because X11 `makedepend' doesn't work on all systems
> # and it also includes system headers.
> # `semi'-automatic since dependencies are generated at distribution
> time.
>
> depend:
> @$(MV) Makefile Makefile.bak
> @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
> @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >>
> Makefile @$(CXX) -S -M $(CPPFLAGS) $(CHECK_CPPFLAGS) -I$(srcdir)
> -I$(basedir) *.c >> Makefile @if test -f Makefile ; then \
> $(RMF) Makefile.bak; \
> else \
> $(MV) Makefile.bak Makefile; \
> echo -e "Something went wrong\n\a"; \
> fi
>
> #
OK, now I got this!
make -C
/usr/ports/net-mgmt/nagios-check_bacula/work/bacula-3.0.0/src/check_bacula
"Makefile", line 144: Need an operator
"Makefile", line 146: Missing dependency operator
"Makefile", line 149: Need an operator
"Makefile", line 150: Need an operator
"Makefile", line 154: Need an operator
"Makefile", line 159: Need an operator
"Makefile", line 162: Need an operator
"Makefile", line 165: Need an operator
"Makefile", line 168: Need an operator
"Makefile", line 171: Need an operator
"Makefile", line 172: Missing dependency operator
"Makefile", line 175: Need an operator
"Makefile", line 176: Missing dependency operator
"Makefile", line 179: Need an operator
"Makefile", line 182: Missing dependency operator
"Makefile", line 192: Need an operator
"Makefile", line 193: Need an operator
"Makefile", line 194: Need an operator
"Makefile", line 195: Need an operator
"Makefile", line 201: Need an operator
make: fatal errors encountered -- cannot continue
*** Error code 1
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|