r1639: Initial revision
[clsql.git] / interfaces / mysql / Makefile.msvc
1 # -*- Mode: Makefile -*-
2 ###########################################################################
3 # FILE IDENTIFICATION
4
5 #  Name:         Makefile.msvc
6 #  Purpose:      Makefile for the CLSQL UFFI helper package (MSVC)
7 #  Programer:    Kevin M. Rosenberg
8 #  Date Started: Mar 2002
9 #
10 #  CVS Id:   $Id: Makefile.msvc,v 1.1 2002/03/23 14:04:52 kevin Exp $
11 #
12 # This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
13 #
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 ###########################################################################
18
19
20 BASE=clsql-mysql
21
22 # Set to the directory where you have installed mysql's library
23 MYSQL_DIR=c:/mysql
24
25 MYSQL_LIB_DIR=$(MYSQL_DIR)/lib/opt
26 MYSQL_LIB_FILE=$(MYSQL_LIB_DIR)/Libmysql.lib
27 MYSQL_INCLUDE=$(MYSQL_DIR)/include
28
29 # Nothing to configure beyond here
30
31 SRC=$(BASE).c
32 OBJ=$(BASE).obj
33 DLL=$(BASE).dll
34
35 $(DLL): $(SRC) $(MYSQL_LIB_FILE)
36         cl /MD /LD -D_MT /DWIN32=1 /D__LCC__=1 /I$(MYSQL_INCLUDE) $(SRC) $(MYSQL_LIB_FILE)
37         del $(OBJ) $(BASE).exp
38
39 clean:
40         del /q $(DLL)
41
42