]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/findlib/Makefile.in
25Jun06
[bacula/bacula] / bacula / src / findlib / Makefile.in
1 #
2 #  Find files library Makefile
3 #
4 @MCOMMON@
5
6 python = @PYTHON_INCDIR@
7
8 srcdir =        .
9 VPATH =         .
10 .PATH:          .
11
12 # one up
13 basedir = ..
14 # top dir
15 topdir = ../..
16 # this dir relative to top dir
17 thisdir = src/findlib
18
19 DEBUG=@DEBUG@
20
21 first_rule: all
22 dummy:
23
24 #
25 LIBSRCS = find.c match.c find_one.c attibs.c create_file.c \
26           bfile.c enable_priv.c fstype.c makepath.c save-cwd.c
27 LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \
28           bfile.o enable_priv.o fstype.o makepath.o save-cwd.o
29
30 .SUFFIXES:      .c .o
31 .PHONY:
32 .DONTCARE:
33
34 # inference rules
35 .c.o:
36         @echo "Compiling $<"
37         $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(OPENSSL_INC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
38 #-------------------------------------------------------------------------
39 all: Makefile libfind.a ../lib/libbac.a
40         @echo "==== Make of findlib is good ===="
41         @echo " "
42
43 libfind.a: $(LIBOBJS) 
44         @echo "Making $@ ..."
45         @$(RMF) $@
46         $(AR) cr $@ $(LIBOBJS)
47         $(RANLIB) $@
48
49 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
50         cd $(topdir) \
51           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
52
53 install:
54
55 uninstall:
56
57
58 clean:
59         $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
60
61 realclean: clean
62         $(RMF) tags
63
64 distclean: realclean
65         if test $(srcdir) = .; then $(MAKE) realclean; fi
66         (cd $(srcdir); $(RMF) Makefile)
67
68 devclean: realclean
69         if test $(srcdir) = .; then $(MAKE) realclean; fi
70         (cd $(srcdir); $(RMF) Makefile)
71
72 install:
73
74
75 uninstall:
76
77
78
79 # Semi-automatic generation of dependencies:
80 # Use gcc -M  because X11 `makedepend' doesn't work on all systems
81 # and it also includes system headers.
82 # `semi'-automatic since dependencies are generated at distribution time.
83
84 depend:
85         @$(MV) Makefile Makefile.bak
86         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
87         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
88         @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
89         @if test -f Makefile ; then \
90             $(RMF) Makefile.bak; \
91         else \
92            $(MV) Makefile.bak Makefile; \
93            echo " ===== Something went wrong in make depend ====="; \
94         fi
95
96 # -----------------------------------------------------------------------
97 # DO NOT DELETE: nice dependency list follows