r10582: Automated commit for Debian build of clsql upstream-version-3.1.17
[clsql/s11.git] / db-mysql / Makefile
blob2b58f2d5338b0688fb1d559401cdf80892174cec
1 # FILE IDENTIFICATION
3 # Name: Makefile
4 # Purpose: Makefile for CLSQL MySQL interface
5 # Programer: Kevin M. Rosenberg
6 # Date Started: Mar 2002
8 # CVS Id: $Id$
10 # This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
12 # CLSQL users are granted the rights to distribute and use this software
13 # as governed by the terms of the Lisp Lesser GNU Public License
14 # (http://opensource.franz.com/preamble.html), also known as the LLGPL.
16 SUBDIRS=
18 include ../Makefile.common
20 base=clsql_mysql
21 source=$(base).c
22 object=$(base).o
23 shared_lib=$(base).so
26 .PHONY: all
27 all: $(shared_lib)
29 $(shared_lib): $(source) Makefile
30 CFLAGS="-I /usr/local/include/mysql -I /usr/include/mysql -I /sw/include/mysql -I /opt/local/include/mysql" LDFLAGS="-L/usr/local/lib64/mysql -L/usr/lib/mysql -L/sw/lib -L/opt/local/lib/mysql -lmysqlclient -lz -lc" BASE=$(base) OBJECT=$(object) SOURCE=$(source) SHARED_LIB=$(shared_lib) sh make.sh
31 rm $(object)
33 .PHONY: distclean
34 distclean: clean
35 rm -f $(base).dylib $(base).dylib $(base).so $(base).o