]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/findlib/Makefile.in
Fix Win32 crash
[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 get_priv.c makepath.c save-cwd.c
25 LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \
26           bfile.o get_priv.o makepath.o save-cwd.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 install:
65
66
67 uninstall:
68
69
70
71 # Semi-automatic generation of dependencies:
72 # Use gcc -M  because X11 `makedepend' doesn't work on all systems
73 # and it also includes system headers.
74 # `semi'-automatic since dependencies are generated at distribution time.
75
76 depend:
77         @$(MV) Makefile Makefile.bak
78         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
79         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
80         @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
81         @if test -f Makefile ; then \
82             $(RMF) Makefile.bak; \
83         else \
84            $(MV) Makefile.bak Makefile; \
85            echo -e "Something went wrong\n\a"; \
86         fi
87
88 # -----------------------------------------------------------------------
89 # DO NOT DELETE: nice dependency list follows