]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/wx-console/Makefile.in
This commit was manufactured by cvs2svn to create tag
[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 wxbconfigfileeditor.cpp wxbhistorytextctrl.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 wxbconfigfileeditor.o wxbhistorytextctrl.o
29
30 win32 = wx-console_private.res
31
32 WIN32RES = $(@WIN32@)
33
34 macosx = wx-console.app
35
36 MACOSXAPP = $(@MACOSX@)
37
38 # these are the objects that are changed by the .configure process
39 EXTRAOBJS = @OBJLIST@
40
41 macosx_cppflags = -DHAVE_MACOSX -DNO_GCC_PRAGMA
42
43 _cppflags = 
44
45 # wx-config generated by configure
46 CONS_CPPFLAGS=-DHAVE_WXCONSOLE @WXCONS_CPPFLAGS@ $(@MACOSX@_cppflags)
47 CONS_LDFLAGS=@WXCONS_LDFLAGS@
48 OPENSSL_INC = @OPENSSL_INC@
49 OPENSSL_LIBS = @OPENSSL_LIBS@
50
51
52 .SUFFIXES:     .cpp .c .o
53 .PHONY:
54 .DONTCARE:
55
56 # inference rules
57 .c.o:
58         $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) \
59  $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
60
61 .cpp.o:
62         $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) \
63  $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
64
65
66 #-------------------------------------------------------------------------
67 all: Makefile wx-console $(MACOSXAPP)
68         @echo "==== Make of wx-console is good ===="
69         @echo " "
70
71 # Mac OS X application bundle
72 # See http://216.239.59.104/search?q=cache:a61SGKgoHSQJ:wiki.wxwidgets.org/wiki.pl%3FWxMac_Issues+wxmac+%22application+bundle%22&hl=fr
73
74 wx-console.app: wx-console
75         -mkdir wx-console.app    
76         -mkdir wx-console.app/Contents
77         -mkdir wx-console.app/Contents/MacOS
78         -mkdir wx-console.app/Contents/Resources
79         -mkdir wx-console.app/Contents/Resources/English.lproj
80         echo -n 'APPL????' > wx-console.app/Contents/PkgInfo
81         mv wx-console wx-console.app/Contents/MacOS/wx-console
82         cp wx-console.conf /Library/Preferences/org.bacula.wxconsole.conf
83
84 wx-console: $(CONSOBJS) @WIN32@ ../lib/libbac.a
85         $(CXX) $(CONSOBJS) $(WIN32RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) \
86  -lbac $(OPENSSL_LIBS)
87
88 win32: wx-console_private.res
89         
90
91 wx-console_private.res: wx-console_private.rc 
92         windres.exe -i wx-console_private.rc -I rc -o wx-console_private.res -O coff 
93
94 clean:
95         @$(RMF) $(CONSOBJS) wx-console $(WIN32RES)
96
97 distclean: clean
98         $(RMF) Makefile
99
100 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
101         cd $(topdir) \
102           && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
103
104 install: all
105         $(INSTALL_PROGRAM) wx-console $(DESTDIR)$(sbindir)/wx-console
106         @srcconf=wx-console.conf; \
107         if  test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
108            destconf=$$srcconf.new; \
109            echo "  ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
110         else \
111            destconf=$$srcconf; \
112         fi; \
113         echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \
114         ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
115
116 uninstall:
117         (cd $(DESTDIR)$(sbindir); $(RMF) wx-console)
118         (cd $(DESTDIR)$(sysconfdir); $(RMF) wx-console.conf wx-console.conf.new)
119
120 # Semi-automatic generation of dependencies:
121 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
122 # and it also includes system headers.
123 # `semi'-automatic since dependencies are generated at distribution time.
124
125 depend:
126         @$(MV) Makefile Makefile.bak
127         @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
128         @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
129         @$(CXX) -S -M $(CPPFLAGS) $(CONS_CPPFLAGS) -I$(srcdir) -I$(basedir) $(OPENSSL_INC) $(CONSSRCS) >> Makefile
130         @if test -f Makefile ; then \
131             $(RMF) Makefile.bak; \
132         else \
133            $(MV) Makefile.bak Makefile; \
134            echo " ===== Something went wrong in make depend ====="; \
135         fi
136
137 # -----------------------------------------------------------------------
138 # DO NOT DELETE: nice dependency list follows