1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
# -*- Mode: Makefile -*-
###########################################################################
# FILE IDENTIFICATION
#
# Name: Makefile.msvc
# Purpose: Makefile for the CLSQL UFFI helper package (MSVC)
# Author: Kevin M. Rosenberg
# Created: Mar 2002
#
# This file, part of CLSQL, is Copyright (c) 2002-2010 by Kevin M. Rosenberg
#
# CLSQL users are granted the rights to distribute and use this software
# as governed by the terms of the Lisp Lesser GNU Public License
# (http://opensource.franz.com/preamble.html), also known as the LLGPL.
###########################################################################
BASE=clsql_mysql
# Set to the directory where you have installed mysql's library
MYSQL_DIR=c:/Program Files/MySQL/MySQL Server 5.1/
MYSQL_LIB_FILE=$(MYSQL_DIR)lib\opt\mysqlclient.lib
MYSQL_INCLUDE=$(MYSQL_DIR)include
# Nothing to configure beyond here
SRC=$(BASE).c
OBJ=$(BASE).obj
DLL=$(BASE).dll
LIB=$(BASE).lib
$(DLL): $(SRC) $(MYSQL_LIB_FILE)
echo "LD"
echo $(MYSQL_LIB_FILE)
cl /MD /LD -D_MT /DWIN32=1 /D__LCC__=1 /I"$(MYSQL_INCLUDE)" $(SRC) $(MYSQL_LIB_FILE)
del $(OBJ) $(BASE).exp
clean:
del /q $(DLL)
|