2004-10-21 23:34:38 +08:00
|
|
|
|
|
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
|
|
|
|
|
|
# Borland C++ 5.5
|
|
|
|
|
|
|
|
# optimizations
|
|
|
|
|
|
|
|
# maximize speed
|
|
|
|
CFLAGS="$CFLAGS -O2"
|
|
|
|
|
|
|
|
case $CPU in
|
|
|
|
pentium)
|
|
|
|
# optimize for Pentium and Athlon
|
|
|
|
CPU_OPT="-5"
|
|
|
|
;;
|
|
|
|
|
|
|
|
pentiumpro)
|
|
|
|
# optimize for Pentium Pro, Pentium II and Pentium III
|
|
|
|
CPU_OPT="-6"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2005-03-23 00:02:46 +08:00
|
|
|
# __stdcall
|
|
|
|
#CPU_OPT="$CPU_OPT -ps"
|
|
|
|
# __fastcall
|
|
|
|
CPU_OPT="$CPU_OPT -pr"
|
|
|
|
|
2004-10-21 23:34:38 +08:00
|
|
|
CFLAGS="$CFLAGS $CPU_OPT"
|
|
|
|
|
|
|
|
# multithreaded
|
|
|
|
CFLAGS="$CFLAGS -tWM"
|
|
|
|
|
|
|
|
# stop on warning
|
|
|
|
CFLAGS="$CFLAGS -w!"
|
|
|
|
|
|
|
|
# disable logo
|
|
|
|
CFLAGS="$CFLAGS -q"
|
|
|
|
|
2004-11-11 22:07:14 +08:00
|
|
|
|
2004-10-21 23:34:38 +08:00
|
|
|
# precompiled headers
|
2004-11-26 00:17:31 +08:00
|
|
|
CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.csm"
|
|
|
|
NGX_PCH="$NGX_OBJS/ngx_config.csm"
|
|
|
|
NGX_BUILD_PCH="-H=$NGX_OBJS/ngx_config.csm"
|
|
|
|
NGX_USE_PCH="-Hu -H=$NGX_OBJS/ngx_config.csm"
|
2004-10-21 23:34:38 +08:00
|
|
|
|
2004-11-11 22:07:14 +08:00
|
|
|
|
|
|
|
# Win32 GUI mode application
|
|
|
|
LINK="\$(CC) -laa"
|
|
|
|
|
|
|
|
|
|
|
|
# the resource file
|
2004-11-26 00:17:31 +08:00
|
|
|
NGX_RES="$NGX_OBJS/nginx.res"
|
|
|
|
NGX_RCC="brcc32 -fo$NGX_OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC"
|
2004-11-11 22:07:14 +08:00
|
|
|
# the pragma allows to link the resource file using bcc32 and
|
|
|
|
# to avoid the direct ilink32 calling and the c0w32.obj's WinMain/main problem
|
2004-11-26 00:17:31 +08:00
|
|
|
NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\""
|
2004-11-11 22:07:14 +08:00
|
|
|
|
2004-10-21 23:34:38 +08:00
|
|
|
|
|
|
|
ngx_include_opt="-I"
|
|
|
|
ngx_objout="-o"
|
|
|
|
ngx_binout="-e"
|
|
|
|
ngx_objext="obj"
|
|
|
|
ngx_binext=".exe"
|
2004-11-11 22:07:14 +08:00
|
|
|
|
|
|
|
ngx_regex_dirsep='\\'
|
|
|
|
ngx_dirsep="\\"
|