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