init 745 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright (C) Igor Sysoev
  2. # Copyright (C) Nginx, Inc.
  3. NGX_MAKEFILE=$NGX_OBJS/Makefile
  4. NGX_MODULES_C=$NGX_OBJS/ngx_modules.c
  5. NGX_AUTO_HEADERS_H=$NGX_OBJS/ngx_auto_headers.h
  6. NGX_AUTO_CONFIG_H=$NGX_OBJS/ngx_auto_config.h
  7. NGX_AUTOTEST=$NGX_OBJS/autotest
  8. NGX_AUTOCONF_ERR=$NGX_OBJS/autoconf.err
  9. # STUBs
  10. NGX_ERR=$NGX_OBJS/autoconf.err
  11. MAKEFILE=$NGX_OBJS/Makefile
  12. NGX_PCH=
  13. NGX_USE_PCH=
  14. # check the echo's "-n" option and "\c" capability
  15. if echo "test\c" | grep c >/dev/null; then
  16. if echo -n test | grep n >/dev/null; then
  17. ngx_n=
  18. ngx_c=
  19. else
  20. ngx_n=-n
  21. ngx_c=
  22. fi
  23. else
  24. ngx_n=
  25. ngx_c='\c'
  26. fi
  27. # create Makefile
  28. cat << END > Makefile
  29. default: build
  30. clean:
  31. rm -rf Makefile $NGX_OBJS
  32. END