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