]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/wx-console/Makefile.in
Fix some trivial errors and implemented the restore of IRIX xattrs.
[bacula/bacula] / bacula / src / wx-console / Makefile.in
index 9873b3637427d9e1752616677891ab8076533926..78fae6fba4b872d510e386299f74a313c035f789 100644 (file)
@@ -22,78 +22,98 @@ dummy:
 #
 CONSSRCS = main.cpp console_thread.cpp authenticate.c console_conf.c wxbrestorepanel.cpp \
             wxbmainframe.cpp wxbtableparser.cpp wxbtreectrl.cpp wxblistctrl.cpp wxbutils.cpp \
-            wxbconfigpanel.cpp
+            wxbconfigpanel.cpp wxbconfigfileeditor.cpp wxbhistorytextctrl.cpp
 CONSOBJS = main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o \
             wxbmainframe.o wxbtableparser.o wxbtreectrl.o wxblistctrl.o wxbutils.o \
-            wxbconfigpanel.o
+            wxbconfigpanel.o wxbconfigfileeditor.o wxbhistorytextctrl.o
 
-win32 = wx-console_private.res
+win32 = bwx-console_private.res
 
 WIN32RES = $(@WIN32@)
 
+macosx = bwx-console.app
+
+MACOSXAPP = $(@MACOSX@)
+
 # these are the objects that are changed by the .configure process
 EXTRAOBJS = @OBJLIST@
 
+macosx_cppflags = -DHAVE_MACOSX -DNO_GCC_PRAGMA
+
+_cppflags = 
+
 # wx-config generated by configure
-CONS_CPPFLAGS=@WXCONS_CPPFLAGS@
+CONS_CPPFLAGS=-DHAVE_WXCONSOLE @WXCONS_CPPFLAGS@ $(@MACOSX@_cppflags)
 CONS_LDFLAGS=@WXCONS_LDFLAGS@
 
+
 .SUFFIXES:     .cpp .c .o
 .PHONY:
 .DONTCARE:
 
 # inference rules
 .c.o:
-       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
-          -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
+       @echo "Compiling $<"
+       $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) \
+ -I$(srcdir) -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
 
 .cpp.o:
-       $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) -I$(srcdir) \
-          -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
+       @echo "Compiling $<"
+       $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_CPPFLAGS) $(CONS_INC) \
+ -I$(srcdir) -I$(basedir) $(DINCLUDE) $(WCFLAGS) $(CFLAGS) $<
 
 
 #-------------------------------------------------------------------------
-all: Makefile wx-console
+all: Makefile bwx-console $(MACOSXAPP)
        @echo "==== Make of wx-console is good ===="
        @echo " "
 
 # Mac OS X application bundle
 # See http://216.239.59.104/search?q=cache:a61SGKgoHSQJ:wiki.wxwidgets.org/wiki.pl%3FWxMac_Issues+wxmac+%22application+bundle%22&hl=fr
 
-wx-console.app: wx-console
-       -mkdir wx-console.app    
-       -mkdir wx-console.app/Contents
-       -mkdir wx-console.app/Contents/MacOS
-       -mkdir wx-console.app/Contents/Resources
-       -mkdir wx-console.app/Contents/Resources/English.lproj
-       echo -n 'APPL????' > wx-console.app/Contents/PkgInfo
-       mv wx-console wx-console.app/Contents/MacOS/wx-console
-       -mkdir /Library/Preferences/org.bacula.wxconsole
-       cp wx-console.conf /Library/Preferences/org.bacula.wxconsole/wx-console.conf
-
-wx-console: $(CONSOBJS) @WIN32@ ../lib/libbac.a
-       $(CXX) $(CONSOBJS) $(WIN32RES) -o $@ $(LIBS) -L../lib $(CONS_LDFLAGS) -lbac
-
-win32: wx-console_private.res
+bwx-console.app: bwx-console
+       -mkdir bwx-console.app    
+       -mkdir bwx-console.app/Contents
+       -mkdir bwx-console.app/Contents/MacOS
+       -mkdir bwx-console.app/Contents/Resources
+       -mkdir bwx-console.app/Contents/Resources/English.lproj
+       echo -n 'APPL????' > bwx-console.app/Contents/PkgInfo
+       mv bwx-console bwx-console.app/Contents/MacOS/bwx-console
+       cp bwx-console.conf /Library/Preferences/org.bacula.wxconsole.conf
+
+bwx-console: Makefile $(CONSOBJS) @WIN32@ ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
+       $(LIBTOOL_LINK) $(CXX) $(CONSOBJS) $(WIN32RES) -o $@ -L../lib $(CONS_LDFLAGS) \
+         -lbaccfg -lbac $(LIBS) $(OPENSSL_LIBS)
+
+win32: bwx-console_private.res
        
 
-wx-console_private.res: wx-console_private.rc 
-       windres.exe -i wx-console_private.rc -I rc -o wx-console_private.res -O coff 
+bwx-console_private.res: bwx-console_private.rc 
+       windres.exe -i bwx-console_private.rc -I rc -o bwx-console_private.res -O coff 
+
+libtool-clean:
+       @$(RMF) -r .libs _libs
 
-clean:
-       @$(RMF) $(CONSOBJS) wx-console $(WIN32RES)
+clean: libtool-clean
+       @$(RMF) $(CONSOBJS) bwx-console $(WIN32RES)
 
 distclean: clean
        $(RMF) Makefile
-       $(RMF) -r CVS
 
 Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
        cd $(topdir) \
          && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
 install: all
-       $(INSTALL_PROGRAM) wx-console $(DESTDIR)$(sbindir)/wx-console
-       @srcconf=wx-console.conf; \
+       @if test -f ${DESTDIR}${sbindir}/wx-console; then \
+          echo " "; \
+          echo "Warning!!!  ${DESTDIR}${sbindir}/wx-console found."; \
+          echo " wx-console has been renamed bwx-console, so wx-console"; \
+          echo " is no longer used, and you might want to delete it."; \
+          echo " "; \
+       fi
+       $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bwx-console $(DESTDIR)$(sbindir)/bwx-console
+       @srcconf=bwx-console.conf; \
        if  test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \
           destconf=$$srcconf.new; \
           echo "  ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
@@ -104,8 +124,8 @@ install: all
        ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf
 
 uninstall:
-       (cd $(DESTDIR)$(sbindir); $(RMF) wx-console)
-       (cd $(DESTDIR)$(sysconfdir); $(RMF) wx-console.conf wx-console.conf.new)
+       (cd $(DESTDIR)$(sbindir); $(RMF) bwx-console)
+       (cd $(DESTDIR)$(sysconfdir); $(RMF) bwx-console.conf bwx-console.conf.new)
 
 # Semi-automatic generation of dependencies:
 # Use gcc -MM because X11 `makedepend' doesn't work on all systems
@@ -116,12 +136,12 @@ depend:
        @$(MV) Makefile Makefile.bak
        @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
        @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
-       @$(CC) -S -M $(CPPFLAGS) $(CONS_CPPFLAGS) -I$(srcdir) -I$(basedir) $(CONSSRCS) >> Makefile
+       @$(CXX) -S -M $(CPPFLAGS) $(CONS_CPPFLAGS) -I$(srcdir) -I$(basedir) $(CONSSRCS) >> Makefile
        @if test -f Makefile ; then \
            $(RMF) Makefile.bak; \
        else \
           $(MV) Makefile.bak Makefile; \
-          echo -e "Something went wrong\n\a"; \
+          echo " ===== Something went wrong in make depend ====="; \
        fi
 
 # -----------------------------------------------------------------------