upstream nginx-0.7.43
[nginx.git] / nginx / auto / cc / bcc
1
2 # Copyright (C) Igor Sysoev
3
4
5 # Borland C++ 5.5
6
7 # optimizations
8
9 # maximize speed
10 CFLAGS="$CFLAGS -O2"
11
12 case $CPU in
13     pentium)
14         # optimize for Pentium and Athlon
15         CPU_OPT="-5"
16     ;;
17
18     pentiumpro)
19         # optimize for Pentium Pro, Pentium II and Pentium III
20         CPU_OPT="-6"
21     ;;
22 esac
23
24 # __stdcall
25 #CPU_OPT="$CPU_OPT -ps"
26 # __fastcall
27 CPU_OPT="$CPU_OPT -pr"
28
29 CFLAGS="$CFLAGS $CPU_OPT"
30
31 # multithreaded
32 CFLAGS="$CFLAGS -tWM"
33
34 # stop on warning
35 CFLAGS="$CFLAGS -w!"
36
37 # disable logo
38 CFLAGS="$CFLAGS -q"
39
40
41 # precompiled headers
42 CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.csm"
43 NGX_PCH="$NGX_OBJS/ngx_config.csm"
44 NGX_BUILD_PCH="-H=$NGX_OBJS/ngx_config.csm"
45 NGX_USE_PCH="-Hu -H=$NGX_OBJS/ngx_config.csm"
46
47
48 # Win32 GUI mode application
49 LINK="\$(CC) -laa"
50
51
52 # the resource file
53 NGX_RES="$NGX_OBJS/nginx.res"
54 NGX_RCC="brcc32 -fo$NGX_OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC"
55 # the pragma allows to link the resource file using bcc32 and
56 # to avoid the direct ilink32 calling and the c0w32.obj's WinMain/main problem
57 NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\""
58
59
60 ngx_include_opt="-I"
61 ngx_objout="-o"
62 ngx_binout="-e"
63 ngx_objext="obj"
64 ngx_binext=".exe"
65
66 ngx_long_start='@&&|
67         '
68 ngx_long_end='|'
69
70 ngx_regex_dirsep='\\'
71 ngx_dirsep="\\"