Files
harbour-core/harbour/contrib/hbpgsql/make_vc.bat
Viktor Szakats 67c8fbb275 2008-06-21 17:58 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/Makefile
   - contrib/hbgf/gtk
   - contrib/hbgf/os2pm
   - contrib/hbgf/win32
   + contrib/hbgf/hbgfw32
   + contrib/hbgf/hbgfos2
   + contrib/hbgf/hbgfgtk
   + contrib/hbgf/Makefile
   * contrib/hbgf/hbgfos2/Makefile
     + Decentralized GNU make for these contribs.
     * Renamed according to stds.
     ! Fix to be built under Linux/Win32.
       (if they don't work they should be fixed/disabled locally)

   * contrib/Makefile
   * contrib/hbodbc/Makefile
   * contrib/hbw32/Makefile
   * contrib/rddado/Makefile
     * Further decentralization of contrib building decisions.
     + Added all existing contribs to the list. Separated into 
       two sections: standalone contribs, and ones with external 
       dependencies.
     ; TODO: Refine this by some clever commenting.
             This is a multiplatform issue, so we need to 
             work together.

   * contrib/examples/Makefile
     ! Fixed to include newly added examples.

   * contrib/hbapollo/make_b32.bat
   * contrib/hbapollo/make_vc.bat
   * contrib/hbcurl/make_b32.bat
   * contrib/hbcurl/make_vc.bat
   * contrib/hbfbird/make_b32.bat
   * contrib/hbfbird/make_vc.bat
   * contrib/hbfimage/make_b32.bat
   * contrib/hbfimage/make_vc.bat
   * contrib/hbgd/make_b32.bat
   * contrib/hbgd/make_vc.bat
   * contrib/hbhpdf/make_b32.bat
   * contrib/hbhpdf/make_vc.bat
   * contrib/hbmysql/make_b32.bat
   * contrib/hbmysql/make_vc.bat
   * contrib/hbpgsql/make_b32.bat
   * contrib/hbpgsql/make_vc.bat
   * contrib/rddads/make_b32.bat
   * contrib/rddads/make_vc.bat
     + Some steps made to make it possible to disable 
       any messings with .dlls. This is not yet complete, 
       and the goal is to be able to use HB_INC_* to 
       specify include dirs for external packages on 
       all make systems (GNU, non-GNU .bat, non-GNU .sh)
       [TOMERGE 1.0.0RC1]
2008-06-21 16:00:23 +00:00

68 lines
2.2 KiB
Batchfile

@echo off
rem
rem $Id$
rem
if not "%HB_DIR_PGSQL%" == "" goto DIR_OK
echo ---------------------------------------------------------------
echo IMPORTANT: You'll need PostreSQL package and this envvar
echo to be set to successfully build this library:
echo set HB_DIR_PGSQL=C:\pgsql
echo ---------------------------------------------------------------
goto POST_EXIT
:DIR_OK
if "%HB_INC_PGSQL%" == "" set HB_INC_PGSQL=%HB_DIR_PGSQL%\include
set CFLAGS=-I"%HB_INC_PGSQL%"
set _HB_DLL_NAME=libpq
set _HB_DLL_DIR=%HB_DIR_PGSQL%\lib
rem ---------------------------------------------------------------
call ..\mtpl_vc.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
rem ---------------------------------------------------------------
if "_HB_DLL_DIR" == "" goto POST_EXIT
set _HB_INSTALL_PREFIX=%HB_INSTALL_PREFIX%
if "%_HB_INSTALL_PREFIX%" == "" set _HB_INSTALL_PREFIX=..\..
set _HB_LIB_INSTALL=%HB_LIB_INSTALL%
if "%_HB_LIB_INSTALL%" == "" set _HB_LIB_INSTALL=%_HB_INSTALL_PREFIX%\lib
if "%1" == "clean" goto POST_CLEAN
if "%1" == "Clean" goto POST_CLEAN
if "%1" == "CLEAN" goto POST_CLEAN
if "%1" == "install" goto POST_INSTALL
if "%1" == "Install" goto POST_INSTALL
if "%1" == "INSTALL" goto POST_INSTALL
:POST_BUILD
rem Use supplied .lib file.
if not exist ..\..\lib\%_HB_CC_NAME%\%_HB_DLL_NAME%.lib copy "%_HB_DLL_DIR%\%_HB_DLL_NAME%.lib" ..\..\lib\%_HB_CC_NAME%\%_HB_DLL_NAME%.lib > nul
goto POST_EXIT
:POST_CLEAN
if exist ..\..\lib\%_HB_CC_NAME%\%_HB_DLL_NAME%.lib del ..\..\lib\%_HB_CC_NAME%\%_HB_DLL_NAME%.lib > nul
if exist ..\..\lib\%_HB_CC_NAME%\%_HB_DLL_NAME%.exp del ..\..\lib\%_HB_CC_NAME%\%_HB_DLL_NAME%.exp > nul
if exist %_HB_LIB_INSTALL%\%_HB_DLL_NAME%.lib del %_HB_LIB_INSTALL%\%_HB_DLL_NAME%.lib > nul
goto POST_EXIT
:POST_INSTALL
if exist %_HB_LIB_INSTALL%\%_HB_DLL_NAME%.lib del %_HB_LIB_INSTALL%\%_HB_DLL_NAME%.lib
if exist ..\..\lib\%_HB_CC_NAME%\%_HB_DLL_NAME%.lib copy ..\..\lib\%_HB_CC_NAME%\%_HB_DLL_NAME%.lib %_HB_LIB_INSTALL%
goto POST_EXIT
:POST_EXIT
set CFLAGS=
set _HB_DLL_NAME=
set _HB_DLL_DIR=
set _HB_INSTALL_PREFIX=
set _HB_LIB_INSTALL=