1
# -*- Mode: Makefile -*-
2
# drizzle-interface: Interface Wrappers for Drizzle
3
# Copyright (C) 2008 Sun Microsystems, Inc.
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
EXTRA_LTLIBRARIES= libswig.la
20
libswig_la_SOURCES= libdrizzle.i
22
phparchdir=${PHP_EXTDIR}
23
nobase_phparch_LTLIBRARIES= drizzle/libdrizzle.la
25
drizzle_libdrizzle_la_SOURCES= libdrizzle.cc
26
drizzle_libdrizzle_la_CXXFLAGS= ${DRIZZLE_CFLAGS} ${PHP_CPPFLAGS}
27
drizzle_libdrizzle_la_LIBADD= ${DRIZZLE_LIBS}
28
drizzle_libdrizzle_la_LDFLAGS= -module -avoid-version
29
drizzle_libdrizzle_la_DEPENDENCIES= libdrizzle.so
31
BUILT_SOURCES= libdrizzle.cc
33
CLEANFILES=core* libdrizzle.cc libdrizzle.so php_libdrizzle.h libdrizzle.php
40
$(SWIG) $(SWIG_OPTS) -MD -MF ${DEPDIR}/$*.Tpo -o $@ $<
41
@mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
43
drizzle/libdrizzle.cc: libdrizzle.i
46
@ln -sf drizzle/.libs/libdrizzle.so libdrizzle.so