config.flags.in
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 2k
Category:

MySQL

Development Platform:

Visual C++

  1. # Since the real configure script runs from the config subdirectory,
  2. # compensate here...
  3. srctop= @srctop@
  4. srcfoo= $(srctop)
  5. prefix= @prefix@
  6. exec_prefix= @exec_prefix@
  7. cpu = @target_cpu@
  8. os = @target_os@
  9. MISSING_SYSCALLS = @missing_syscalls@
  10. AVAILABLE_SYSCALLS = @available_syscalls@
  11. SYSCALL_EXCEPTIONS = @SYSCALL_EXCEPTIONS@
  12. HAVE_SYSCALL_TEMPLATE = @HAVE_SYSCALL_TEMPLATE@
  13. CC = @CC@
  14. CXX = @CXX@
  15. CPP = @CPP@
  16. SHELL = /bin/sh
  17. RANLIB = @RANLIB@
  18. # Should use autoconf to find these.  Currently our makefiles are inconsistent.
  19. #AR = ar
  20. #AS = gas
  21. #LD = gld
  22. install-dirs:
  23. for d in $(INSTALL_PATH) $(BINDIR) $(LIBDIR) $(INCDIR) ; do 
  24.   test -d $(DESTDIR)$$d || mkdir $(DESTDIR)$$d || exit 1 ; 
  25. done
  26. config.status: @srcdir@/configure
  27. cd ${.CURDIR} && $(SHELL) config.status --recheck
  28. config.flags: config.status @srcdir@/config.flags.in
  29. cd ${.CURDIR} && $(SHELL) config.status
  30. realclean: clean
  31. cd tests && $(MAKE) realclean && cd ..
  32. rm -f $(LINKS) config.status config.flags config.cache 
  33. Makefile GNUmakefile
  34. types=$(.CURDIR)/include/pthread/ac-types.h
  35. $(types) : config.h
  36. echo '#ifndef pthread_size_t' >  $(types).new
  37. egrep '^#define pthread_' $(.CURDIR)/config.h >> $(types).new
  38. echo '#endif' >> $(types).new
  39. mv -f $(types).new $(types)
  40. config=$(.CURDIR)/include/pthread/config.h
  41. $(config) : config.h
  42. echo '#ifndef _SYS___CONFIG_H_'              >  $(config).new
  43. echo '#define _SYS___CONFIG_H_'              >>  $(config).new
  44. -egrep '^#define _OS_HAS' $(.CURDIR)/config.h >> $(config).new
  45. echo '#endif'                                >>  $(config).new
  46. mv -f $(config).new $(config)
  47. paths=$(.CURDIR)/include/pthread/paths.h
  48. $(paths) : config.h
  49. echo '#ifndef _SYS___PATHS_H_' >  $(paths).new
  50. echo '#define _SYS___PATHS_H_' >>  $(paths).new
  51. egrep '^#define _PATH' $(.CURDIR)/config.h >> $(paths).new
  52. echo '#endif' >> $(paths).new
  53. mv -f $(paths).new $(paths)
  54. all-tests: all-lib
  55. cd ${.CURDIR}/tests && $(MAKE) all
  56. check: all-lib
  57. cd ${.CURDIR}/tests && $(MAKE) check
  58. all : all-lib all-bin
  59. install-bin: all-bin install-dirs
  60. for x in $(SCRIPTS) ; do 
  61.   install $$x $(DESTDIR)$(BINDIR); 
  62. done
  63. install-include: install-dirs
  64. (cd ${srcdir}/include && tar chf - .)|(cd $(DESTDIR)$(INCDIR) && tar xf -)
  65. if [ -d config ]; then true; else 
  66. (cd ${.CURDIR}/include && tar chf - .)|(cd $(DESTDIR)$(INCDIR) && tar xf -); fi
  67. (cd $(DESTDIR)$(INCDIR) && find . ( -name CVS -o -name *~ ) -print | xargs rm -rf)