]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/gnome2-console/Makefile.in
kes Implement --without-qwt
[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            restore.c
31 CONSOBJS = console.o console_conf.o authenticate.o support.o interface.o callbacks.o \
32            restore.o
33
34 # these are the objects that are changed by the .configure process
35 EXTRAOBJS = @OBJLIST@
36
37 #CONS_INC=@CONS_INC@ $(GNOME_INCLUDEDIR)
38 #CONS_LIBS=@CONS_LIBS@ $(GNOME_LIBS)
39 #CONS_LDFLAGS=@CONS_LDFLAGS@ $(GNOME_LIBDIR) $(GNOMEUI_LIBS)
40
41 CONS_INC=$(GNOME_INCLUDEDIR)
42 CONS_LIBS=$(GNOME_LIBS) $(OPENSSL_LIBS)
43 CONS_LDFLAGS=$(GNOME_LIBDIR) $(GNOMEUI_LIBS)
44
45
46 .SUFFIXES:      .c .o
47 .PHONY:
48 .DONTCARE:
49
50 # inference rules
51 .c.o:
52         @echo "Compiling $<"
53         $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
54 #-------------------------------------------------------------------------
55 all: Makefile bgnome-console @STATIC_GNOME_CONS@
56         @echo "==== Make of bgnome-console is good ===="
57         @echo " "
58
59 support.o:   support.c
60         rm -f support.c.orig
61         mv support.c support.c.orig
62         sed "s%parent = g_object_get_data%parent = \(GtkWidget \*\)g_object_get_data%" support.c.orig >support.c
63         $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
64
65 bgnome-console: $(CONSOBJS) ../lib/libbac.a 
66         $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -o $@ $(CONSOBJS) \
67               $(LIBS) $(DLIB) $(CONS_LIBS) -lbac -lm
68
69 static-console: static-bgnome-console
70
71 static-bgnome-console: $(CONSOBJS) ../lib/libbac.a 
72         $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -o $@ $(CONSOBJS) \
73               $(LIBS) $(DLIB) $(CONS_LIBS) -lbac -lm 
74         strip $@
75
76 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
77         cd $(topdir) \
78           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
79
80 clean:
81         @$(RMF) bgnome-console core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
82         @$(RMF) static-bgnome-console gmon.out Makefile.am
83
84 realclean: clean
85         @$(RMF) tags
86         @$(RM) -rf .deps bgnome-console.conf
87
88 distclean: realclean
89         if test $(srcdir) = .; then $(MAKE) realclean; fi
90         (cd $(srcdir); $(RMF) Makefile)
91
92 devclean: realclean
93         if test $(srcdir) = .; then $(MAKE) realclean; fi
94         (cd $(srcdir); $(RMF) Makefile)
95
96 install: all
97         @if test -f ${DESTDIR}${sbindir}/gnome-console; then \
98            echo " "; \
99            echo "Warning!!!  ${DESTDIR}${sbindir}gnome-console found."; \
100            echo " gnome-console has been renamed bgnome-console, so gnome-console"; \
101            echo " is no longer used, and you might want to delete it."; \
102            echo " "; \
103         fi
104         $(INSTALL_PROGRAM) bgnome-console $(DESTDIR)$(sbindir)/bgnome-console
105         @srcconf=bgnome-console.conf; \
106         if  test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
107            destconf=$$srcconf.new; \
108            echo "  ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
109         else \
110            destconf=$$srcconf; \
111         fi; \
112         echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
113         ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
114         if test -f static-bgnome-console; then \
115            $(INSTALL_PROGRAM) static-bgnome-console $(DESTDIR)$(sbindir)/static-bgnome-console; \
116         fi 
117
118 uninstall:
119         (cd $(DESTDIR)$(sbindir); $(RMF) bgnome-console static-bgnome-console)
120         (cd $(DESTDIR)$(sysconfdir); $(RMF) bgnome-console.conf bgnome-console.conf.new)
121         (cd $(DESTDIR)$(sbindir); $(RMF) gnome-console static-gnome-console)
122         (cd $(DESTDIR)$(sysconfdir); $(RMF) gnome-console.conf gnome-console.conf.new)
123
124
125
126
127 # Semi-automatic generation of dependencies:
128 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
129 # and it also includes system headers.
130 # `semi'-automatic since dependencies are generated at distribution time.
131
132 depend:
133         @$(MV) Makefile Makefile.bak
134         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
135         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
136         @$(CXX) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(GNOME_INCLUDEDIR) $(SQL_INC) *.c >> Makefile
137         @if test -f Makefile ; then \
138             $(RMF) Makefile.bak; \
139         else \
140            $(MV) Makefile.bak Makefile; \
141            echo -e "Something went wrong\n\a"; \
142         fi
143
144 # -----------------------------------------------------------------------
145 # DO NOT DELETE: nice dependency list follows