]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/gnome2-console/Makefile.in
This commit was manufactured by cvs2svn to create tag
[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_GNOME_CONS@
53         @echo "==== Make of gnome-console is good ===="
54         @echo " "
55
56 support.o:   support.c
57         rm -f support.c.orig
58         mv support.c support.c.orig
59         sed "s%parent = g_object_get_data%parent = \(GtkWidget \*\)g_object_get_data%" support.c.orig >support.c
60         $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
61
62 gnome-console: $(CONSOBJS) ../lib/libbac.a ../cats/libsql.a
63         $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
64               $(LIBS) $(DLIB) $(CONS_LIBS) -lbac -lsql -lm
65
66 static-console: static-gnome-console
67
68 static-gnome-console: $(CONSOBJS) ../lib/libbac.a ../cats/libsql.a
69         $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
70               $(LIBS) $(DLIB) $(CONS_LIBS) -lbac -lsql -lm 
71         strip $@
72
73 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
74         cd $(topdir) \
75           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
76
77 clean:
78         @$(RMF) gnome-console core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
79         @$(RMF) static-gnome-console gmon.out
80
81 realclean: clean
82         @$(RMF) tags
83         @$(RM) -rf .deps gnome-console.conf
84
85 distclean: realclean
86         if test $(srcdir) = .; then $(MAKE) realclean; fi
87         (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS)
88
89 install: all
90         $(INSTALL_SCRIPT) gnome-console $(DESTDIR)$(sbindir)/gnome-console
91         @srcconf=gnome-console.conf; \
92         if  test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
93            destconf=$$srcconf.new; \
94            echo "  ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
95         else \
96            destconf=$$srcconf; \
97         fi; \
98         echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
99         ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
100
101 uninstall:
102         (cd $(DESTDIR)$(sbindir); $(RMF) gnome-console)
103         (cd $(DESTDIR)$(sysconfdir); $(RMF) gnome-console.conf gnome-console.conf.new)
104
105
106
107 # Semi-automatic generation of dependencies:
108 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
109 # and it also includes system headers.
110 # `semi'-automatic since dependencies are generated at distribution time.
111
112 depend:
113         @$(MV) Makefile Makefile.bak
114         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
115         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
116         @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(GNOME_INCLUDEDIR) $(SQL_INC) *.c >> Makefile
117         @if test -f Makefile ; then \
118             $(RMF) Makefile.bak; \
119         else \
120            $(MV) Makefile.bak Makefile; \
121            echo -e "Something went wrong\n\a"; \
122         fi
123
124 # -----------------------------------------------------------------------
125 # DO NOT DELETE: nice dependency list follows