1# Copyright (C) 2004-2006 MySQL AB
2# Use is subject to license terms
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; version 2 of the License.
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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16
17SUBDIRS = src tools . include @ndb_opt_subdirs@
18DIST_SUBDIRS = src tools include test docs
19EXTRA_DIST = config ndbapi-examples plug.in
20DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
21
22include $(top_srcdir)/storage/ndb/config/common.mk.am
23
24dist-hook:
25	-rm -rf `find $(distdir) -type d -name SCCS`
26	-rm -rf `find $(distdir)/ndbapi-examples -name '*.o'`
27	list='$(SUBDIRS)'; for subdir in $$list; do \
28	  if test "$$subdir" != "." -a "$$subdir" != "include"; then \
29	    files="`find $$subdir -name '*\.h'` `find $$subdir -name '*\.hpp'`"; \
30	    for f in $$files; do \
31	      if test -d "$(distdir)/`dirname $$f`" -a ! -e "$(distdir)/$$f"; then \
32	        cp $$f $(distdir)/$$f; \
33	      fi; \
34	    done; \
35	  fi; \
36	done
37
38windoze:
39	for i in `find . -name 'Makefile.am' -print`; \
40	do make -C `dirname $$i` windoze-dsp; done
41
42windoze-dsp:
43
44all-windoze-dsp: windoze
45	find . -name '*.dsp' | grep -v SCCS | xargs unix2dos
46	$(top_srcdir)/storage/ndb/config/make-win-dsw.sh | unix2dos > ndb.dsw
47	tar cvfz ndb-win-dsp.tar.gz ndb.dsw `find . -name '*.dsp' | grep -v SCCS`
48