1
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
#called from the top level Makefile
19
CFLAGS = $(ORBIT_CFLAGS) -g
20
LFLAGS = $(ORBIT_LIBS)
21
orbit_idl = @orbit_idl@
22
orbit_includes = @orbit_includes@
23
orbit_libs = @orbit_libs@
25
DISTCLEANFILES = CorbaFS-common.* CorbaFS-stubs.* CorbaFS-skels.* CorbaFS.h
27
MYSQLDATAdir = $(localstatedir)
28
MYSQLSHAREdir = $(pkgdatadir)
29
MYSQLBASEdir= $(prefix)
30
INCLUDES = @MT_INCLUDES@ -I$(srcdir)/../include \
31
-I$(srcdir)/../regex \
32
-I$(srcdir) -I../include -I.. -I. \
33
-I$(srcdir) -I../include -I.. -I. \
36
libexec_PROGRAMS = mysqlcorbafsd
37
noinst_PROGRAMS =mysqlfs_test
38
LDADD = ../libmysql/libmysqlclient.la $(orbit_libs)
39
mysqlcorbafsd_LDADD = $(LDADD) $(CXXLDFLAGS)
41
mysqlfs_test_SOURCES = mysqlcorbafs_test.c CorbaFS-common.c CorbaFS-stubs.c libmysqlfs.c
42
mysqlcorbafsd_SOURCES = mysqlcorbafs.c CorbaFS-skels.c database.c CorbaFS-common.c libmysqlfs.c
44
DEFS = -DMYSQL_SERVER \
45
-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
46
-DDATADIR="\"$(MYSQLDATAdir)\"" \
47
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
49
# Don't put lex_hash.h in BUILT_SOURCES as this will give infinite recursion
50
BUILT_SOURCES = CorbaFS-common.c CorbaFS-stubs.c CorbaFS-skels.c CorbaFS.h
51
EXTRA_DIST = $(BUILT_SOURCES)
54
OMIT_DEPENDENCIES = pthread.h stdio.h __stdio.h stdlib.h __stdlib.h math.h\
55
__math.h time.h __time.h unistd.h __unistd.h types.h \
56
xtypes.h ac-types.h posix.h string.h __string.h \
57
errno.h socket.h inet.h dirent.h netdb.h \
58
cleanup.h cond.h debug_out.h fd.h kernel.h mutex.h \
59
prio_queue.h pthread_attr.h pthread_once.h queue.h\
60
sleep.h specific.h version.h pwd.h timers.h uio.h \
61
cdefs.h machdep.h signal.h __signal.h util.h lex.h \
65
rm -f mini_client_errors.c
66
@LN_CP_F@ ../libmysql/errmsg.c mini_client_errors.c
69
# Don't update the files from bitkeeper
72
idltargets : CorbaFS.idl
73
$(ORBIT_IDL) CorbaFS.idl
74
$(orbit_idl) CorbaFS.idl
78
CorbaFS-stubs.c : CorbaFS.idl
79
$(orbit_idl) CorbaFS.idl
81
CorbaFS-common.c : CorbaFS.idl
82
$(orbit_idl) CorbaFS.idl
84
CorbaFS-skels.c : CorbaFS.idl
85
$(orbit_idl) CorbaFS.idl
87
#CorbaFS-client.c : CorbaFS.h
89
#CorbaFS-server.c : CorbaFS.h
91
CorbaFS.h : CorbaFS.idl
92
$(orbit_idl) CorbaFS.idl