]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/findlib/Makefile.in
be830fe1c18d07afc6f584adab31cf4252a71924
[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 FINDSRCS = testfind.c
27 FINDOBJS = testfind.o
28
29 .SUFFIXES:      .c .o
30 .PHONY:
31 .DONTCARE:
32
33 # inference rules
34 .c.o:
35         $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
36 #-------------------------------------------------------------------------
37 all: Makefile libfind.a ../lib/libbac.a
38         @echo "==== Make of findlib is good ===="
39         @echo " "
40
41 libfind.a: $(LIBOBJS) 
42         $(RMF) libfind.a
43         $(AR) cru $@ $(LIBOBJS)
44         $(RANLIB) $@
45
46 testfind: libfind.a $(FINDOBJS)
47         $(CC) -g $(LDFLAGS) -L. -L../lib -o $@ $(FINDOBJS) $(LIBS) $(DLIB) -lfind -lbac -lm
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 testfind 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 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         @$(CC) -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