2004-01-12 23:15:49 +01:00
|
|
|
# Copyright (c) 2002 Novell, Inc. All Rights Reserved.
|
2003-02-01 00:42:26 +01:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2003-01-28 17:49:21 +01:00
|
|
|
|
2004-05-27 01:47:04 +02:00
|
|
|
if HAVE_NETWARE
|
Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
client/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
cmd-line-utils/libedit/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
dbug/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
extra/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
heap/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
isam/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
libmysql/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
libmysql_r/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
libmysqld/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
libmysqld/examples/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
merge/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
myisam/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
myisammrg/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
mysql-test/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
mysys/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
netware/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
regex/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
sql/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
strings/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
tests/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
vio/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
tools/Makefile.am:
Added -I$(top_builddir)/include for searching
generated header files, when builddir != srcdir
2005-07-05 23:24:48 +02:00
|
|
|
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I..
|
2004-06-18 03:22:43 +02:00
|
|
|
LDADD = @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
|
|
|
|
../dbug/libdbug.a ../strings/libmystrings.a
|
2003-02-01 00:42:26 +01:00
|
|
|
bin_PROGRAMS = mysqld_safe mysql_install_db mysql_test_run libmysql
|
|
|
|
mysqld_safe_SOURCES= mysqld_safe.c my_manage.c
|
|
|
|
mysql_install_db_SOURCES= mysql_install_db.c my_manage.c
|
|
|
|
mysql_test_run_SOURCES= mysql_test_run.c my_manage.c
|
|
|
|
libmysql_SOURCES= libmysqlmain.c
|
2006-09-22 17:43:05 +02:00
|
|
|
libmysql_LDADD = ../libmysql/.libs/libmysqlclient.a \
|
|
|
|
@openssl_libs@ @yassl_libs@
|
2003-02-17 01:14:37 +01:00
|
|
|
|
|
|
|
netware_build_files = client/mysql.def client/mysqladmin.def \
|
|
|
|
client/mysqlbinlog.def client/mysqlcheck.def \
|
|
|
|
client/mysqldump.def client/mysqlimport.def \
|
|
|
|
client/mysqlshow.def client/mysqltest.def \
|
2006-12-01 23:28:59 +01:00
|
|
|
client/mysqlslap.def client/mysql_upgrade.def \
|
2006-02-02 15:22:31 +01:00
|
|
|
sql/mysqld.def extra/mysql_waitpid.def \
|
2006-12-02 06:06:31 +01:00
|
|
|
tests/mysql_client_test.def \
|
2006-06-16 22:29:52 +02:00
|
|
|
extra/my_print_defaults.def \
|
2003-02-17 01:14:37 +01:00
|
|
|
extra/perror.def extra/replace.def \
|
2003-03-21 21:43:38 +01:00
|
|
|
extra/resolveip.def extra/comp_err.def \
|
2006-02-02 15:22:31 +01:00
|
|
|
extra/resolve_stack_dump.def \
|
|
|
|
libmysqld/libmysqld.def \
|
|
|
|
storage/myisam/myisamchk.def \
|
|
|
|
storage/myisam/myisamlog.def \
|
|
|
|
storage/myisam/myisampack.def \
|
|
|
|
storage/myisam/myisam_ftdump.def
|
2004-01-12 23:15:49 +01:00
|
|
|
|
2003-02-17 01:14:37 +01:00
|
|
|
link_sources:
|
|
|
|
for f in $(netware_build_files); do \
|
2005-09-24 15:51:45 +02:00
|
|
|
rm -f ../$$f; \
|
2003-02-17 01:14:37 +01:00
|
|
|
org=`echo $$f | sed -e 's/.*\/\(.*\)/\1/g'`; \
|
2005-09-24 15:51:45 +02:00
|
|
|
@LN_CP_F@ $(srcdir)/$$org ../$$f; \
|
|
|
|
done
|
2007-03-27 23:56:48 +02:00
|
|
|
echo timestamp > link_sources
|
|
|
|
|
|
|
|
BUILT_SOURCES = link_sources
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
2004-05-27 01:47:04 +02:00
|
|
|
else
|
2006-09-27 17:11:19 +02:00
|
|
|
|
2007-03-16 20:56:16 +01:00
|
|
|
BUILT_SOURCES = libmysql.imp init_db.sql test_db.sql
|
2007-03-19 15:24:07 +01:00
|
|
|
DISTCLEANFILES = libmysql.imp
|
|
|
|
CLEANFILES = init_db.sql test_db.sql
|
2006-09-27 17:11:19 +02:00
|
|
|
|
|
|
|
# Create the libmysql.imp from libmysql/libmysql.def
|
|
|
|
libmysql.imp: $(top_srcdir)/libmysql/libmysql.def
|
2007-03-20 13:33:17 +01:00
|
|
|
$(AWK) 'BEGIN{x=0;} \
|
2006-09-27 17:11:19 +02:00
|
|
|
END{printf("\n");} \
|
|
|
|
x==1 {printf(" %s",$$1); x++; next} \
|
|
|
|
x>1 {printf(",\n %s", $$1); next} \
|
|
|
|
/EXPORTS/{x=1}' $(top_srcdir)/libmysql/libmysql.def > libmysql.imp
|
|
|
|
|
2007-03-16 20:56:16 +01:00
|
|
|
EXTRA_DIST= $(BUILT_SOURCES) comp_err.def install_test_db.ncf \
|
2006-09-27 17:11:19 +02:00
|
|
|
libmysql.def \
|
2004-05-27 01:47:04 +02:00
|
|
|
libmysqlmain.c my_manage.c my_manage.h \
|
|
|
|
my_print_defaults.def myisam_ftdump.def myisamchk.def \
|
|
|
|
myisamlog.def myisampack.def mysql.def mysql.xdc \
|
2006-06-16 22:29:52 +02:00
|
|
|
mysql_fix_privilege_tables.pl \
|
2004-05-27 01:47:04 +02:00
|
|
|
mysql_install_db.c mysql_install_db.def \
|
|
|
|
mysql_secure_installation.pl mysql_test_run.c \
|
|
|
|
mysql_test_run.def mysql_waitpid.def mysqladmin.def \
|
|
|
|
mysqlbinlog.def mysqlcheck.def mysqld.def \
|
|
|
|
mysqld_safe.c mysqld_safe.def mysqldump.def mysqlimport.def \
|
2006-12-01 23:28:59 +01:00
|
|
|
mysqlshow.def mysqltest.def mysqlslap.def mysql_upgrade.def \
|
|
|
|
perror.def \
|
2006-12-02 06:06:31 +01:00
|
|
|
mysql_client_test.def \
|
2007-03-16 20:56:16 +01:00
|
|
|
replace.def resolve_stack_dump.def resolveip.def \
|
2004-05-27 01:53:00 +02:00
|
|
|
static_init_db.sql \
|
2004-05-27 01:47:04 +02:00
|
|
|
BUILD/apply-patch BUILD/compile-AUTOTOOLS \
|
|
|
|
BUILD/compile-linux-tools BUILD/compile-netware-END \
|
|
|
|
BUILD/compile-netware-START BUILD/compile-netware-all\
|
|
|
|
BUILD/compile-netware-debug BUILD/compile-netware-max \
|
|
|
|
BUILD/compile-netware-max-debug BUILD/compile-netware-src \
|
|
|
|
BUILD/compile-netware-standard BUILD/create-patch \
|
|
|
|
BUILD/cron-build BUILD/crontab BUILD/knetware.imp \
|
|
|
|
BUILD/mwasmnlm BUILD/mwccnlm BUILD/mwenv BUILD/mwldnlm \
|
|
|
|
BUILD/nwbootstrap BUILD/openssl.imp BUILD/save-patch
|
2007-03-16 20:56:16 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Build init_db.sql from the files that contain
|
|
|
|
# the system tables for this version of MySQL plus any commands
|
|
|
|
init_db.sql: $(top_srcdir)/scripts/mysql_system_tables.sql \
|
2007-05-02 14:01:49 +02:00
|
|
|
$(top_srcdir)/scripts/mysql_system_tables_data.sql
|
2007-03-16 20:56:16 +01:00
|
|
|
@echo "Building $@";
|
|
|
|
@echo "CREATE DATABASE mysql;" > $@;
|
|
|
|
@echo "CREATE DATABASE test;" >> $@;
|
|
|
|
@echo "use mysql;" >> $@;
|
|
|
|
@cat $(top_srcdir)/scripts/mysql_system_tables.sql \
|
2007-05-02 14:01:49 +02:00
|
|
|
$(top_srcdir)/scripts/mysql_system_tables_fix.sql >> $@;
|
2007-03-16 20:56:16 +01:00
|
|
|
|
|
|
|
# Build test_db.sql from init_db.sql plus
|
|
|
|
# some test data
|
|
|
|
test_db.sql: init_db.sql $(top_srcdir)/scripts/mysql_test_data_timezone.sql
|
|
|
|
@echo "Building $@";
|
|
|
|
@cat init_db.sql \
|
2007-05-02 14:01:49 +02:00
|
|
|
$(top_srcdir)/scripts/mysql_test_data_timezone.sql >> $@;
|
2007-03-16 20:56:16 +01:00
|
|
|
|
2004-05-27 01:47:04 +02:00
|
|
|
endif
|
2003-01-28 17:49:21 +01:00
|
|
|
|
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|