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