]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/tools/Makefile.in
Rebuild configure for Win32
[bacula/bacula] / bacula / src / tools / Makefile.in
1 @MCOMMON@
2
3 srcdir =        .
4 VPATH =         .
5 .PATH:          .
6
7 # one up
8 basedir = ..
9 # top dir
10 topdir = ../..
11 # this dir relative to top dir
12 thisdir = src/tools
13
14 DEBUG=@DEBUG@
15
16 first_rule: all
17 dummy:
18
19 #
20
21 FINDOBJS = testfind.o
22
23 # these are the objects that are changed by the .configure process
24 EXTRAOBJS = @OBJLIST@
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 smtp dbcheck
35         @echo "==== Make of tools is good ===="
36         @echo " "
37
38 smtp:   smtp.o ../lib/libbac.a        
39         $(CXX) $(LDFLAGS) -L../lib -o $@ smtp.o -lbac -lm $(LIBS) $(DLIB)
40
41 dbcheck: dbcheck.o ../lib/libbac.a ../cats/libsql.a
42         $(CXX) $(LDFLAGS) -L../lib -L../cats -o $@ dbcheck.o -lbac -lsql -lm $(LIBS) $(DB_LIBS)
43
44 testfind: ../findlib/libfind.a ../lib/libbac.a $(FINDOBJS)
45         $(CC) -g $(LDFLAGS) -L. -L../lib -L../findlib -o $@ $(FINDOBJS) \
46           $(LIBS) $(DLIB) -lfind -lbac -lm
47  
48
49 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
50         cd $(topdir) \
51           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
52
53 clean:
54         @$(RMF) smtp core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
55         @$(RMF) testfind dbcheck
56
57 realclean: clean
58         @$(RMF) tags Makefile
59
60 distclean: realclean
61         if test $(srcdir) = .; then $(MAKE) realclean; fi
62         (cd $(srcdir); $(RMF) Makefile)
63
64 install: smtp
65         $(INSTALL_PROGRAM) smtp $(DESTDIR)$(sbindir)/smtp      
66
67 uninstall:
68         (cd $(DESTDIR)$(sbindir); $(RMF) smtp)
69
70
71
72 # Semi-automatic generation of dependencies:
73 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
74 # and it also includes system headers.
75 # `semi'-automatic since dependencies are generated at distribution time.
76
77 depend:
78         @$(MV) Makefile Makefile.bak
79         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
80         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
81         @$(CC) -S -M $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
82         @if test -f Makefile ; then \
83             $(RMF) Makefile.bak; \
84         else \
85            $(MV) Makefile.bak Makefile; \
86            echo -e "Something went wrong\n\a"; \
87         fi
88
89 # -----------------------------------------------------------------------
90 # DO NOT DELETE: nice dependency list follows