2 # Find files library Makefile
5 # autoconf/Make.common.in -*- Makefile -*-
6 # release date (man), LSM date, version number/name, current maintainer
10 VERNAME=bacula-$(VERSION)#
12 MAINTEMAIL=<kern@sibbald.com>#
18 #-------------------------------------------------------------------------
22 # Installation target directories & other installation stuff
28 sysconfdir = /etc/bacula
29 scriptdir = /etc/bacula
30 mandir = ${prefix}/man/man1
33 # Tools & program stuff
48 INSTALL = /usr/bin/install -c
49 # add the -s to the following in PRODUCTION mode
50 INSTALL_PROGRAM = /usr/bin/install -c -m 754
51 INSTALL_DATA = /usr/bin/install -c -m 644
52 INSTALL_SCRIPT = /usr/bin/install -c -m 754
53 INSTALL_CONFIG = /usr/bin/install -c -m 640
60 DEFS = -DHAVE_WIN32 -DHAVE_MINGW
66 # Windows (cygwin) flags
73 # extra libraries needed by X on some systems, X library location
74 #XLIB = @XPM_LIBS@ -lX11
76 # End of common section of the Makefile
77 #-------------------------------------------------------------------------
87 # this dir relative to top dir
96 LIBSRCS = find.c match.c find_one.c attibs.c create_file.c \
97 bfile.c enable_priv.c makepath.c save-cwd.c winapi.c
98 LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \
99 bfile.o enable_priv.o makepath.o save-cwd.o winapi.o
107 $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) -I../win32/compat $(DINCLUDE) $(CFLAGS) $<
108 #-------------------------------------------------------------------------
110 @echo "==== Make of findlib is good ===="
113 libfind.a: $(LIBOBJS)
115 $(AR) cr $@ $(LIBOBJS)
124 $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
130 if test $(srcdir) = .; then $(MAKE) realclean; fi
131 (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
134 if test $(srcdir) = .; then $(MAKE) realclean; fi
135 (cd $(srcdir); $(RMF) Makefile)
144 # Semi-automatic generation of dependencies:
145 # Use gcc -M because X11 `makedepend' doesn't work on all systems
146 # and it also includes system headers.
147 # `semi'-automatic since dependencies are generated at distribution time.
150 @$(MV) Makefile Makefile.bak
151 @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
152 @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
153 @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
154 @if test -f Makefile ; then \
155 $(RMF) Makefile.bak; \
157 $(MV) Makefile.bak Makefile; \
158 echo -e "Something went wrong\n\a"; \
161 # -----------------------------------------------------------------------
162 # DO NOT DELETE: nice dependency list follows