1 # -*- Mode: Makefile -*-
2 ###########################################################################
6 # Purpose: Makefile for the CLSQL UFFI helper package
7 # Programer: Kevin M. Rosenberg
8 # Date Started: Mar 2002
10 # CVS Id: $Id: Makefile,v 1.2 2002/04/01 05:27:55 kevin Exp $
12 # This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
14 # CLSQL users are granted the rights to distribute and use this software
15 # as governed by the terms of the Lisp Lesser GNU Public License
16 # (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ###########################################################################
21 # These variables are correct for GCC
22 # you'll need to modify these for other compilers
27 # If you are using Solaris, these are the correct values
28 # for creating a shared library
33 # Set to the directory where you have installed mysql's library
37 MYSQL_LIB=$(MYSQL_DIR)/lib/mysql
38 MYSQL_LIB_FILE=$(MYSQL_LIB)/libmysqlclient.so
39 MYSQL_INCLUDE=$(MYSQL_DIR)/include/mysql
41 # Nothing to configure beyond this point
49 all: $(SHARED) $(STATIC)
51 $(SHARED): $(SRC) $(MYSQL_LIB_FILE)
52 $(CC) $(SHARED_CC_OPT) -I $(MYSQL_INCLUDE) -c $(SRC) -o $(OBJECT)
53 ld $(SHARED_LD_OPT) $(OBJECT) $(MYSQL_LIB_FILE) -o $(SHARED)
56 $(STATIC): $(SRC) $(MYSQL_LIB_FILE)
57 $(CC) -I $(MYSQL_INCLUDE) -c $(SRC) -o $(OBJECT)
58 $(AR) r $(STATIC) $(OBJECT)
62 rm -f $(SHARED) $(STATIC)