You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
5.1 KiB

19 years ago
  1. # Copyright (c) 2002 Novell, Inc. All Rights Reserved.
  2. #
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 2 of the License, or
  6. # (at your option) any later version.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. if HAVE_NETWARE
  17. INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I..
  18. LDADD = @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
  19. ../dbug/libdbug.a ../strings/libmystrings.a
  20. bin_PROGRAMS = mysqld_safe mysql_install_db mysql_test_run libmysql
  21. mysqld_safe_SOURCES= mysqld_safe.c my_manage.c
  22. mysql_install_db_SOURCES= mysql_install_db.c my_manage.c
  23. mysql_test_run_SOURCES= mysql_test_run.c my_manage.c
  24. libmysql_SOURCES= libmysqlmain.c
  25. libmysql_LDADD = ../libmysql/.libs/libmysqlclient.a \
  26. @openssl_libs@ @yassl_libs@
  27. netware_build_files = client/mysql.def client/mysqladmin.def \
  28. client/mysqlbinlog.def client/mysqlcheck.def \
  29. client/mysqldump.def client/mysqlimport.def \
  30. client/mysqlshow.def client/mysqltest.def \
  31. client/mysqlslap.def client/mysql_upgrade.def \
  32. sql/mysqld.def extra/mysql_waitpid.def \
  33. tests/mysql_client_test.def \
  34. extra/my_print_defaults.def \
  35. extra/perror.def extra/replace.def \
  36. extra/resolveip.def extra/comp_err.def \
  37. extra/resolve_stack_dump.def \
  38. libmysqld/libmysqld.def \
  39. storage/myisam/myisamchk.def \
  40. storage/myisam/myisamlog.def \
  41. storage/myisam/myisampack.def \
  42. storage/myisam/myisam_ftdump.def
  43. link_sources:
  44. for f in $(netware_build_files); do \
  45. rm -f ../$$f; \
  46. org=`echo $$f | sed -e 's/.*\/\(.*\)/\1/g'`; \
  47. @LN_CP_F@ $(srcdir)/$$org ../$$f; \
  48. done
  49. echo timestamp > link_sources
  50. BUILT_SOURCES = link_sources
  51. CLEANFILES = $(BUILT_SOURCES)
  52. else
  53. BUILT_SOURCES = libmysql.imp init_db.sql test_db.sql
  54. DISTCLEANFILES = libmysql.imp
  55. CLEANFILES = init_db.sql test_db.sql
  56. # Create the libmysql.imp from libmysql/libmysql.def
  57. libmysql.imp: $(top_srcdir)/libmysql/libmysql.def
  58. $(AWK) 'BEGIN{x=0;} \
  59. END{printf("\n");} \
  60. x==1 {printf(" %s",$$1); x++; next} \
  61. x>1 {printf(",\n %s", $$1); next} \
  62. /EXPORTS/{x=1}' $(top_srcdir)/libmysql/libmysql.def > libmysql.imp
  63. EXTRA_DIST= $(BUILT_SOURCES) comp_err.def install_test_db.ncf \
  64. libmysql.def \
  65. libmysqlmain.c my_manage.c my_manage.h \
  66. my_print_defaults.def myisam_ftdump.def myisamchk.def \
  67. myisamlog.def myisampack.def mysql.def mysql.xdc \
  68. mysql_fix_privilege_tables.pl \
  69. mysql_install_db.c mysql_install_db.def \
  70. mysql_secure_installation.pl mysql_test_run.c \
  71. mysql_test_run.def mysql_waitpid.def mysqladmin.def \
  72. mysqlbinlog.def mysqlcheck.def mysqld.def \
  73. mysqld_safe.c mysqld_safe.def mysqldump.def mysqlimport.def \
  74. mysqlshow.def mysqltest.def mysqlslap.def mysql_upgrade.def \
  75. perror.def \
  76. mysql_client_test.def \
  77. replace.def resolve_stack_dump.def resolveip.def \
  78. static_init_db.sql \
  79. BUILD/apply-patch BUILD/compile-AUTOTOOLS \
  80. BUILD/compile-linux-tools BUILD/compile-netware-END \
  81. BUILD/compile-netware-START BUILD/compile-netware-all\
  82. BUILD/compile-netware-debug BUILD/compile-netware-max \
  83. BUILD/compile-netware-max-debug BUILD/compile-netware-src \
  84. BUILD/compile-netware-standard BUILD/create-patch \
  85. BUILD/cron-build BUILD/crontab BUILD/knetware.imp \
  86. BUILD/mwasmnlm BUILD/mwccnlm BUILD/mwenv BUILD/mwldnlm \
  87. BUILD/nwbootstrap BUILD/openssl.imp BUILD/save-patch
  88. # Build init_db.sql from the files that contain
  89. # the system tables for this version of MySQL plus any commands
  90. init_db.sql: $(top_srcdir)/scripts/mysql_system_tables.sql \
  91. $(top_srcdir)/scripts/mysql_system_tables_data.sql
  92. @echo "Building $@";
  93. @echo "CREATE DATABASE mysql;" > $@;
  94. @echo "CREATE DATABASE test;" >> $@;
  95. @echo "use mysql;" >> $@;
  96. @cat $(top_srcdir)/scripts/mysql_system_tables.sql \
  97. $(top_srcdir)/scripts/mysql_system_tables_fix.sql >> $@;
  98. # Build test_db.sql from init_db.sql plus
  99. # some test data
  100. test_db.sql: init_db.sql $(top_srcdir)/scripts/mysql_test_data_timezone.sql
  101. @echo "Building $@";
  102. @cat init_db.sql \
  103. $(top_srcdir)/scripts/mysql_test_data_timezone.sql >> $@;
  104. endif
  105. # Don't update the files from bitkeeper
  106. %::SCCS/s.%