bcc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Copyright (C) Igor Sysoev
  2. # Copyright (C) Nginx, Inc.
  3. # Borland C++ 5.5
  4. # optimizations
  5. # maximize speed
  6. CFLAGS="$CFLAGS -O2"
  7. case $CPU in
  8. pentium)
  9. # optimize for Pentium and Athlon
  10. CPU_OPT="-5"
  11. ;;
  12. pentiumpro)
  13. # optimize for Pentium Pro, Pentium II and Pentium III
  14. CPU_OPT="-6"
  15. ;;
  16. esac
  17. # __stdcall
  18. #CPU_OPT="$CPU_OPT -ps"
  19. # __fastcall
  20. #CPU_OPT="$CPU_OPT -pr"
  21. CFLAGS="$CFLAGS $CPU_OPT"
  22. # multithreaded
  23. CFLAGS="$CFLAGS -tWM"
  24. # stop on warning
  25. CFLAGS="$CFLAGS -w!"
  26. # disable logo
  27. CFLAGS="$CFLAGS -q"
  28. # precompiled headers
  29. CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.csm"
  30. NGX_PCH="$NGX_OBJS/ngx_config.csm"
  31. NGX_BUILD_PCH="-H=$NGX_OBJS/ngx_config.csm"
  32. NGX_USE_PCH="-Hu -H=$NGX_OBJS/ngx_config.csm"
  33. # Win32 GUI mode application
  34. #LINK="\$(CC) -laa"
  35. # the resource file
  36. NGX_RES="$NGX_OBJS/nginx.res"
  37. NGX_RCC="brcc32 -fo$NGX_OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC"
  38. # the pragma allows to link the resource file using bcc32 and
  39. # to avoid the direct ilink32 calling and the c0w32.obj's WinMain/main problem
  40. NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\""
  41. ngx_include_opt="-I"
  42. ngx_objout="-o"
  43. ngx_binout="-e"
  44. ngx_objext="obj"
  45. ngx_long_start='@&&|
  46. '
  47. ngx_long_end='|'
  48. ngx_regex_dirsep='\\'
  49. ngx_dirsep="\\"