]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/console/Makefile.in
Initial revision
[bacula/bacula] / bacula / src / console / 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/console
13
14 DEBUG=@DEBUG@
15
16 first_rule: all
17 dummy:
18
19 #
20 CONSSRCS = console.c console_conf.c authenticate.c
21 CONSOBJS = console.o console_conf.o authenticate.o
22
23 # these are the objects that are changed by the .configure process
24 EXTRAOBJS = @OBJLIST@
25
26 CONS_INC=@CONS_INC@
27 CONS_LIBS=@CONS_LIBS@
28 CONS_LDFLAGS=@CONS_LDFLAGS@
29
30 .SUFFIXES:      .c .o
31 .PHONY:
32 .DONTCARE:
33
34 # inference rules
35 .c.o:
36         $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
37 #-------------------------------------------------------------------------
38 all: Makefile console
39         @echo "==== Make of console is good ===="
40         @echo " "
41
42
43 console: $(CONSOBJS) ../lib/libbac.a ../cats/libsql.a
44         $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
45               $(LIBS) $(DLIB) $(CONS_LIBS) -lbac -lsql -lm -ltermcap
46
47 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
48         cd $(topdir) \
49           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
50
51 clean:
52         $(RMF) console core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
53
54 realclean: clean
55         $(RMF) tags console.conf
56
57 distclean: realclean
58         if test $(srcdir) = .; then $(MAKE) realclean; fi
59         (cd $(srcdir); $(RMF) Makefile)
60
61 install: all
62         $(INSTALL_SCRIPT) console $(DESTDIR)$(sbindir)/console
63         @srcconf=console.conf; \
64         if  test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
65            destconf=$$srcconf.new; \
66            echo "  ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
67         else \
68            destconf=$$srcconf; \
69         fi; \
70         echo "${INSTALL_DATA} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
71         ${INSTALL_DATA} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
72
73 uninstall:
74         (cd $(DESTDIR)$(sbindir); $(RMF) console)
75         (cd $(DESTDIR)$(sysconfdir); $(RMF) console.conf
76
77
78
79 # Semi-automatic generation of dependencies:
80 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
81 # and it also includes system headers.
82 # `semi'-automatic since dependencies are generated at distribution time.
83
84 depend:
85         @$(MV) Makefile Makefile.bak
86         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
87         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
88         @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile
89         @if test -f Makefile ; then \
90             $(RMF) Makefile.bak; \
91         else \
92            $(MV) Makefile.bak Makefile; \
93            echo -e "Something went wrong\n\a"; \
94         fi
95
96 # -----------------------------------------------------------------------
97 # DO NOT DELETE: nice dependency list follows