]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/findlib/Makefile.in
Update Makefiles for Irix and kernstodo
[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) crs $@ $(LIBOBJS)
41
42 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
43         cd $(topdir) \
44           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
45
46 install:
47
48 uninstall:
49
50
51 clean:
52         $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3
53
54 realclean: clean
55         $(RMF) tags
56
57 distclean: realclean
58         if test $(srcdir) = .; then $(MAKE) realclean; fi
59         (cd $(srcdir); $(RMF) Makefile)
60
61 install:
62
63
64 uninstall:
65
66
67
68 # Semi-automatic generation of dependencies:
69 # Use gcc -M  because X11 `makedepend' doesn't work on all systems
70 # and it also includes system headers.
71 # `semi'-automatic since dependencies are generated at distribution time.
72
73 depend:
74         @$(MV) Makefile Makefile.bak
75         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
76         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
77         @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
78         @if test -f Makefile ; then \
79             $(RMF) Makefile.bak; \
80         else \
81            $(MV) Makefile.bak Makefile; \
82            echo -e "Something went wrong\n\a"; \
83         fi
84
85 # -----------------------------------------------------------------------
86 # DO NOT DELETE: nice dependency list follows