1 2# Copyright (C) Igor Sysoev 3# Copyright (C) Nginx, Inc. 4 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 25# __stdcall 26#CPU_OPT="$CPU_OPT -ps" 27# __fastcall 28#CPU_OPT="$CPU_OPT -pr" 29 30CFLAGS="$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 41 42# precompiled headers 43CORE_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" 47 48 49# Win32 GUI mode application 50#LINK="\$(CC) -laa" 51 52 53# the resource file 54NGX_RES="$NGX_OBJS/nginx.res" 55NGX_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 58NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\"" 59 60 61ngx_include_opt="-I" 62ngx_objout="-o" 63ngx_binout="-e" 64ngx_objext="obj" 65 66ngx_long_start='@&&| 67 ' 68ngx_long_end='|' 69 70ngx_regex_dirsep='\\' 71ngx_dirsep="\\" 72