blob: 83b2d60dd4247f4732769b6f6ac0a81904dba2b0 [file] [log] [blame]
Igor Sysoevc0edbcc2004-10-21 15:34:38 +00001
2# Copyright (C) Igor Sysoev
3
4
5# Borland C++ 5.5
6
7# optimizations
8
9# maximize speed
10CFLAGS="$CFLAGS -O2"
11
12case $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 ;;
22esac
23
Igor Sysoev4d656dc2005-03-22 16:02:46 +000024# __stdcall
25#CPU_OPT="$CPU_OPT -ps"
26# __fastcall
27CPU_OPT="$CPU_OPT -pr"
28
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000029CFLAGS="$CFLAGS $CPU_OPT"
30
31# multithreaded
32CFLAGS="$CFLAGS -tWM"
33
34# stop on warning
35CFLAGS="$CFLAGS -w!"
36
37# disable logo
38CFLAGS="$CFLAGS -q"
39
Igor Sysoev1b735832004-11-11 14:07:14 +000040
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000041# precompiled headers
Igor Sysoev2f73f772006-10-19 10:19:19 +000042CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.csm"
43NGX_PCH="$NGX_OBJS/ngx_config.csm"
44NGX_BUILD_PCH="-H=$NGX_OBJS/ngx_config.csm"
45NGX_USE_PCH="-Hu -H=$NGX_OBJS/ngx_config.csm"
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000046
Igor Sysoev1b735832004-11-11 14:07:14 +000047
48# Win32 GUI mode application
49LINK="\$(CC) -laa"
50
51
52# the resource file
Igor Sysoevf6906042004-11-25 16:17:31 +000053NGX_RES="$NGX_OBJS/nginx.res"
54NGX_RCC="brcc32 -fo$NGX_OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC"
Igor Sysoev1b735832004-11-11 14:07:14 +000055# 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
Igor Sysoevf6906042004-11-25 16:17:31 +000057NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\""
Igor Sysoev1b735832004-11-11 14:07:14 +000058
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000059
60ngx_include_opt="-I"
61ngx_objout="-o"
62ngx_binout="-e"
63ngx_objext="obj"
64ngx_binext=".exe"
Igor Sysoev1b735832004-11-11 14:07:14 +000065
Igor Sysoev09c684b2005-11-09 17:25:55 +000066ngx_long_start='@&&|
67 '
68ngx_long_end='|'
69
Igor Sysoev1b735832004-11-11 14:07:14 +000070ngx_regex_dirsep='\\'
71ngx_dirsep="\\"