mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / netware / Makefile.am
blob5e6f17c9ce14b9f37ac197a5774d5b9e0d436b3f
1 #  Copyright (c) 2002 Novell, Inc. All Rights Reserved.
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. 
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. 
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., 51 Franklin Street, Fifth Floor, Boston, 
16 #  MA 02110-1301, USA
18 if HAVE_NETWARE
19 INCLUDES =                      -I$(top_builddir)/include -I$(top_srcdir)/include -I..
20 LDADD =                         @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
21                                 ../dbug/libdbug.a ../strings/libmystrings.a
22 bin_PROGRAMS =                  mysqld_safe mysql_install_db mysql_test_run libmysql
23 mysqld_safe_SOURCES=            mysqld_safe.c my_manage.c
24 mysql_install_db_SOURCES=       mysql_install_db.c my_manage.c
25 mysql_test_run_SOURCES=         mysql_test_run.c my_manage.c
26 libmysql_SOURCES=               libmysqlmain.c
27 libmysql_LDADD =                ../libmysql/.libs/libmysqlclient.a \
28                                 @openssl_libs@ @yassl_libs@
30 netware_build_files =           client/mysql.def client/mysqladmin.def \
31                                 client/mysqlbinlog.def client/mysqlcheck.def \
32                                 client/mysqldump.def client/mysqlimport.def \
33                                 client/mysqlshow.def client/mysqltest.def \
34                                 client/mysqlslap.def client/mysql_upgrade.def \
35                                 sql/mysqld.def extra/mysql_waitpid.def \
36                                 tests/mysql_client_test.def \
37                                 extra/my_print_defaults.def \
38                                 extra/perror.def extra/replace.def \
39                                 extra/resolveip.def extra/comp_err.def \
40                                 extra/resolve_stack_dump.def \
41                                 libmysqld/libmysqld.def \
42                                 storage/myisam/myisamchk.def \
43                                 storage/myisam/myisamlog.def \
44                                 storage/myisam/myisampack.def \
45                                 storage/myisam/myisam_ftdump.def
47 BUILT_SOURCES =                 link_sources init_db.sql test_db.sql
48 CLEANFILES =                    $(BUILT_SOURCES)
50 all: $(BUILT_SOURCES)
52 link_sources:
53         for f in $(netware_build_files); do \
54           rm -f ../$$f; \
55           org=`basename $$f`; \
56           @LN_CP_F@ $(srcdir)/$$org ../$$f; \
57         done
58         echo timestamp > link_sources
60 else
62 BUILT_SOURCES =                 libmysql.imp init_db.sql test_db.sql
63 DISTCLEANFILES =                libmysql.imp
64 CLEANFILES =                    init_db.sql test_db.sql
66 # Create the libmysql.imp from libmysql/libmysql.def
67 libmysql.imp: $(top_srcdir)/libmysql/libmysql.def
68         $(AWK) 'BEGIN{x=0;} \
69              END{printf("\n");} \
70              x==1 {printf(" %s",$$1); x++; next} \
71              x>1 {printf(",\n %s", $$1); next} \
72              /EXPORTS/{x=1}' $(top_srcdir)/libmysql/libmysql.def > libmysql.imp
74 EXTRA_DIST=     $(BUILT_SOURCES) comp_err.def install_test_db.ncf \
75                 libmysql.def \
76                 libmysqlmain.c my_manage.c my_manage.h \
77                 my_print_defaults.def myisam_ftdump.def myisamchk.def \
78                 myisamlog.def myisampack.def mysql.def mysql.xdc \
79                 mysql_fix_privilege_tables.pl \
80                 mysql_install_db.c mysql_install_db.def \
81                 mysql_secure_installation.pl mysql_test_run.c \
82                 mysql_test_run.def mysql_waitpid.def mysqladmin.def \
83                 mysqlbinlog.def mysqlcheck.def mysqld.def \
84                 mysqld_safe.c mysqld_safe.def mysqldump.def mysqlimport.def \
85                 mysqlshow.def mysqltest.def mysqlslap.def mysql_upgrade.def \
86                 perror.def \
87                 mysql_client_test.def \
88                 replace.def resolve_stack_dump.def resolveip.def \
89                 static_init_db.sql init_db.sql test_db.sql \
90                 BUILD/apply-patch BUILD/compile-AUTOTOOLS \
91                 BUILD/compile-linux-tools BUILD/compile-netware-END \
92                 BUILD/compile-netware-START BUILD/compile-netware-all\
93                 BUILD/compile-netware-debug BUILD/compile-netware-max \
94                 BUILD/compile-netware-max-debug BUILD/compile-netware-src \
95                 BUILD/compile-netware-standard BUILD/create-patch \
96                 BUILD/cron-build BUILD/crontab BUILD/knetware.imp \
97                 BUILD/mwasmnlm BUILD/mwccnlm BUILD/mwenv BUILD/mwldnlm \
98                 BUILD/nwbuild BUILD/openssl.imp BUILD/save-patch
100 endif
103 # Build init_db.sql from the files that contain
104 # the system tables for this version of MySQL plus any commands
105 init_db.sql: $(top_srcdir)/scripts/mysql_system_tables.sql \
106              $(top_srcdir)/scripts/mysql_system_tables_data.sql
107         @echo "Building $@";
108         @echo "CREATE DATABASE mysql;" > $@;
109         @echo "CREATE DATABASE test;" >> $@;
110         @echo "use mysql;" >> $@;
111         @cat $(top_srcdir)/scripts/mysql_system_tables.sql >> $@;
113 # Build test_db.sql from init_db.sql plus
114 # some test data
115 test_db.sql: init_db.sql $(top_srcdir)/scripts/mysql_test_data_timezone.sql
116         @echo "Building $@";
117         @cat init_db.sql \
118              $(top_srcdir)/scripts/mysql_test_data_timezone.sql  > $@;
120 # Don't update the files from bitkeeper
121 %::SCCS/s.%