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