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