blob: ec82e60fb139eb6b5a270750b46589a28644420d [file] [log] [blame]
Igor Sysoevc0edbcc2004-10-21 15:34:38 +00001
2# Copyright (C) Igor Sysoev
Maxim Konovalovf8d59e32012-01-18 15:07:43 +00003# Copyright (C) Nginx, Inc.
Igor Sysoevc0edbcc2004-10-21 15:34:38 +00004
5
6# Borland C++ 5.5
7
8# optimizations
9
10# maximize speed
11CFLAGS="$CFLAGS -O2"
12
13case $CPU in
14 pentium)
15 # optimize for Pentium and Athlon
16 CPU_OPT="-5"
17 ;;
18
19 pentiumpro)
20 # optimize for Pentium Pro, Pentium II and Pentium III
21 CPU_OPT="-6"
22 ;;
23esac
24
Igor Sysoev4d656dc2005-03-22 16:02:46 +000025# __stdcall
26#CPU_OPT="$CPU_OPT -ps"
27# __fastcall
Igor Sysoev60798fb2009-04-15 19:46:24 +000028#CPU_OPT="$CPU_OPT -pr"
Igor Sysoev4d656dc2005-03-22 16:02:46 +000029
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000030CFLAGS="$CFLAGS $CPU_OPT"
31
32# multithreaded
33CFLAGS="$CFLAGS -tWM"
34
35# stop on warning
36CFLAGS="$CFLAGS -w!"
37
38# disable logo
39CFLAGS="$CFLAGS -q"
40
Igor Sysoev1b735832004-11-11 14:07:14 +000041
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000042# precompiled headers
Igor Sysoev2f73f772006-10-19 10:19:19 +000043CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.csm"
44NGX_PCH="$NGX_OBJS/ngx_config.csm"
45NGX_BUILD_PCH="-H=$NGX_OBJS/ngx_config.csm"
46NGX_USE_PCH="-Hu -H=$NGX_OBJS/ngx_config.csm"
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000047
Igor Sysoev1b735832004-11-11 14:07:14 +000048
49# Win32 GUI mode application
Igor Sysoevbd919992009-04-20 06:08:47 +000050#LINK="\$(CC) -laa"
Igor Sysoev1b735832004-11-11 14:07:14 +000051
52
53# the resource file
Igor Sysoevf6906042004-11-25 16:17:31 +000054NGX_RES="$NGX_OBJS/nginx.res"
55NGX_RCC="brcc32 -fo$NGX_OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC"
Igor Sysoev1b735832004-11-11 14:07:14 +000056# 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
Igor Sysoevf6906042004-11-25 16:17:31 +000058NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\""
Igor Sysoev1b735832004-11-11 14:07:14 +000059
Igor Sysoevc0edbcc2004-10-21 15:34:38 +000060
61ngx_include_opt="-I"
62ngx_objout="-o"
63ngx_binout="-e"
64ngx_objext="obj"
65ngx_binext=".exe"
Igor Sysoev1b735832004-11-11 14:07:14 +000066
Igor Sysoev09c684b2005-11-09 17:25:55 +000067ngx_long_start='@&&|
68 '
69ngx_long_end='|'
70
Igor Sysoev1b735832004-11-11 14:07:14 +000071ngx_regex_dirsep='\\'
72ngx_dirsep="\\"