]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/findlib/Makefile.in
Merge branch 'master' into bat_slot
[bacula/bacula] / bacula / src / findlib / Makefile.in
1 #
2 #  Find files library Makefile
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/findlib
16
17 DEBUG=@DEBUG@
18
19 first_rule: all
20 dummy:
21
22 #
23 # include files installed when using libtool
24 #
25 INCLUDE_FILES = bfile.h find.h protos.h savecwd.h
26
27 #
28 LIBSRCS = find.c match.c find_one.c attribs.c create_file.c \
29           bfile.c drivetype.c enable_priv.c fstype.c mkpath.c \
30           savecwd.c
31 LIBOBJS = $(LIBSRCS:.c=$(DEFAULT_OBJECT_TYPE))
32
33 LIBBACFIND_LT_CURRENT = 1
34 LIBBACFIND_LT_REVISION = 0
35 LIBBACFIND_LT_AGE = 0
36
37 .SUFFIXES:      .c .o .lo
38 .PHONY:
39 .DONTCARE:
40
41 # inference rules
42 .c.o:
43         @echo "Compiling $<"
44         $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
45
46 .c.lo:
47         @echo "Compiling $<"
48         $(NO_ECHO)$(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
49 #-------------------------------------------------------------------------
50 all: Makefile libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
51         @echo "==== Make of findlib is good ===="
52         @echo " "
53
54 libbacfind.a: $(LIBOBJS) 
55         @echo "Making $@ ..."
56         $(AR) rc  $@ $(LIBOBJS)
57         $(RANLIB) $@
58
59 libbacfind.la: Makefile $(LIBOBJS) 
60         @echo "Making $@ ..."
61         $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBOBJS) -export-dynamic -rpath $(libdir) -version-info $(LIBBACFIND_LT_CURRENT):$(LIBBACFIND_LT_REVISION):$(LIBBACFIND_LT_AGE)
62
63 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
64         cd $(topdir) \
65           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
66
67 install-includes:
68         $(MKDIR) $(DESTDIR)/$(includedir)/bacula/findlib
69         for I in $(INCLUDE_FILES); do \
70            $(INSTALL_DATA) $$I $(DESTDIR)$(includedir)/bacula/findlib/`basename $$I`; \
71         done
72
73 uninstall-includes:
74         for I in $(INCLUDE_FILES); do \
75            $(RMF) $(DESTDIR)$(includedir)/bacula/findlib/`basename $$I`; \
76         done
77
78 libtool-install: all
79         $(MKDIR) $(DESTDIR)$(libdir)
80         $(LIBTOOL_INSTALL_FINISH) $(INSTALL_PROGRAM) libbacfind$(DEFAULT_ARCHIVE_TYPE) $(DESTDIR)$(libdir)
81
82 libtool-uninstall:
83         $(LIBTOOL_UNINSTALL) $(RMF) $(DESTDIR)$(libdir)/libbacfind.la
84
85 install: @LIBTOOL_INSTALL_TARGET@ @INCLUDE_INSTALL_TARGET@
86
87 uninstall: @LIBTOOL_UNINSTALL_TARGET@ @INCLUDE_UNINSTALL_TARGET@
88
89 libtool-clean:
90         @find . -name '*.lo' -print | xargs $(LIBTOOL_CLEAN) $(RMF)
91         @$(RMF) *.la
92         @$(RMF) -r .libs _libs
93
94 clean:  libtool-clean
95         @$(RMF) find core a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
96
97 realclean: clean
98         @$(RMF) tags
99
100 distclean: realclean
101         if test $(srcdir) = .; then $(MAKE) realclean; fi
102         (cd $(srcdir); $(RMF) Makefile)
103
104 devclean: realclean
105         if test $(srcdir) = .; then $(MAKE) realclean; fi
106         (cd $(srcdir); $(RMF) Makefile)
107
108 # Semi-automatic generation of dependencies:
109 # Use gcc -M  because X11 `makedepend' doesn't work on all systems
110 # and it also includes system headers.
111 # `semi'-automatic since dependencies are generated at distribution time.
112
113 depend:
114         @$(MV) Makefile Makefile.bak
115         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
116         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
117         @for src in $(LIBSRCS); do \
118             $(CXX) -S -M -MT `basename $$src .c`$(DEFAULT_OBJECT_TYPE) $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) $$src >> Makefile; \
119         done
120         @if test -f Makefile ; then \
121             $(RMF) Makefile.bak; \
122         else \
123            $(MV) Makefile.bak Makefile; \
124            echo " ===== Something went wrong in make depend ====="; \
125         fi
126
127 # -----------------------------------------------------------------------
128 # DO NOT DELETE: nice dependency list follows