]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/wx-console/Makefile.in
added wxbconfigpanel.cpp
[bacula/bacula] / bacula / src / wx-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/wx-console
16
17 DEBUG=@DEBUG@
18
19 first_rule: all
20 dummy:
21
22 #
23 CONSSRCS = main.cpp console_thread.cpp authenticate.c console_conf.c wxbrestorepanel.cpp \
24              wxbmainframe.cpp wxbtableparser.cpp wxbtreectrl.cpp wxblistctrl.cpp wxbutils.cpp \
25              wxbconfigpanel.cpp
26 CONSOBJS = main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o \
27              wxbmainframe.o wxbtableparser.o wxbtreectrl.o wxblistctrl.o wxbutils.o \
28              wxbconfigpanel.o
29
30 win32 = wx-console_private.res
31
32 WIN32RES = $(@WIN32@)
33
34 # these are the objects that are changed by the .configure process
35 EXTRAOBJS = @OBJLIST@
36
37 # wx-config generated by configure
38 CONS_CPPFLAGS=@WXCONS_CPPFLAGS@
39 CONS_LDFLAGS=@WXCONS_LDFLAGS@
40
41 .SUFFIXES:     .cpp .c .o
42 .PHONY:
43 .DONTCARE:
44
45 # inference rules
46 .c.o:
47         $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
48            -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
49
50 .cpp.o:
51         $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
52            -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
53
54
55 #-------------------------------------------------------------------------
56 all: Makefile wx-console
57         @echo "==== Make of wx-console is good ===="
58         @echo " "
59
60
61 wx-console: $(CONSOBJS) @WIN32@ ../lib/libbac.a
62         $(CXX) $(CONSOBJS) $(WIN32RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) -lbac
63
64 win32: wx-console_private.res
65         
66
67 wx-console_private.res: wx-console_private.rc 
68         windres.exe -i wx-console_private.rc -I rc -o wx-console_private.res -O coff 
69
70 clean:
71         @$(RMF) $(CONSOBJS) wx-console $(WIN32RES)
72
73 distclean: clean
74         $(RMF) Makefile
75         $(RMF) -r CVS
76
77 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
78         cd $(topdir) \
79           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
80
81 install: all
82         $(INSTALL_PROGRAM) wx-console $(DESTDIR)$(sbindir)/wx-console
83         @srcconf=wx-console.conf; \
84         if  test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
85            destconf=$$srcconf.new; \
86            echo "  ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
87         else \
88            destconf=$$srcconf; \
89         fi; \
90         echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
91         ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
92
93 uninstall:
94         (cd $(DESTDIR)$(sbindir); $(RMF) wx-console)
95         (cd $(DESTDIR)$(sysconfdir); $(RMF) wx-console.conf wx-console.conf.new)
96
97 # Semi-automatic generation of dependencies:
98 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
99 # and it also includes system headers.
100 # `semi'-automatic since dependencies are generated at distribution time.
101
102 depend:
103         @$(MV) Makefile Makefile.bak
104         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
105         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
106         @$(CC) -S -M $(CPPFLAGS) $(CONS_CPPFLAGS) -I$(srcdir) -I$(basedir) $(CONSSRCS) >> Makefile
107         @if test -f Makefile ; then \
108             $(RMF) Makefile.bak; \
109         else \
110            $(MV) Makefile.bak Makefile; \
111            echo -e "Something went wrong\n\a"; \
112         fi
113
114 # -----------------------------------------------------------------------
115 # DO NOT DELETE: nice dependency list follows