File: Build.bat

package info (click to toggle)
myodbc 3.51.15r409-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,980 kB
  • ctags: 1,592
  • sloc: ansic: 24,288; sh: 9,162; cpp: 1,848; makefile: 932; perl: 43
file content (52 lines) | stat: -rw-r--r-- 1,555 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@ECHO OFF
REM ########################################################
REM 
REM \brief  Build myodbc.
REM
REM         This exists for those working with the Windows source
REM         distribution.
REM 
REM \sa     README.win
REM
REM #########################################################

ECHO "+-----------------------------------------------------+"
ECHO "| BUILD                                               |"
ECHO "+-----------------------------------------------------+"
REM ****
REM * Removing libraries and executables to force relink...
REM * We do not want to del all in lib as some may be 
REM * additional libs for distro building.
REM ****
IF EXIST lib ( 
    rem rmdir /Q /S lib
    del /Q lib\myodbc*
)
IF EXIST bin ( 
    rmdir /Q /S bin
)

REM Invoke qmake - without relying upon its mechanism to dive into sub dirs.
CALL CreateMakefiles.bat

REM ****
REM * Making the libraries and executables...
REM ****
ECHO Make...
nmake

goto doSuccess

:doSuccess
ECHO "+-----------------------------------------------------+"
ECHO "| BUILD DONE                                          |"
ECHO "+-----------------------------------------------------+"
ECHO "|                                                     |"
ECHO "| Hopefully things went well and you have results in  |"
ECHO "| lib and bin sub-dirs. Consider running Install.bat  |"
ECHO "| next.                                               |"
ECHO "|                                                     |"
ECHO "+-----------------------------------------------------+"
EXIT /B 0