]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/findlib/Makefile.in
c4b46994d1f7eb3c2029ea7796e9e978330f3caf
[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         $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
37 #-------------------------------------------------------------------------
38 all: Makefile libfind.a ../lib/libbac.a
39         @echo "==== Make of findlib is good ===="
40         @echo " "
41
42 libfind.a: $(LIBOBJS) 
43         $(RMF) $@
44         $(AR) cr $@ $(LIBOBJS)
45         $(RANLIB) $@
46
47 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
48         cd $(topdir) \
49           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
50
51 install:
52
53 uninstall:
54
55
56 clean:
57         $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
58
59 realclean: clean
60         $(RMF) tags
61
62 distclean: realclean
63         if test $(srcdir) = .; then $(MAKE) realclean; fi
64         (cd $(srcdir); $(RMF) Makefile)
65
66 devclean: realclean
67         if test $(srcdir) = .; then $(MAKE) realclean; fi
68         (cd $(srcdir); $(RMF) Makefile)
69
70 install:
71
72
73 uninstall:
74
75
76
77 # Semi-automatic generation of dependencies:
78 # Use gcc -M  because X11 `makedepend' doesn't work on all systems
79 # and it also includes system headers.
80 # `semi'-automatic since dependencies are generated at distribution time.
81
82 depend:
83         @$(MV) Makefile Makefile.bak
84         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
85         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
86         @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
87         @if test -f Makefile ; then \
88             $(RMF) Makefile.bak; \
89         else \
90            $(MV) Makefile.bak Makefile; \
91            echo " ===== Something went wrong in make depend ====="; \
92         fi
93
94 # -----------------------------------------------------------------------
95 # DO NOT DELETE: nice dependency list follows