39688967868ee7afd9c9fdbed5d8f3f20f1fdc28
[clsql.git] / uffi / Makefile
1 # FILE IDENTIFICATION
2 #
3 #  Name:         Makefile
4 #  Purpose:      Makefile for CLSQL UFFI interface
5 #  Programer:    Kevin M. Rosenberg
6 #  Date Started: Mar 2002
7 #
8 #  CVS Id:   $Id$
9 #
10 # This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
11 #
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.
15
16 SUBDIRS=
17
18 include ../Makefile.common
19
20 base=clsql_uffi
21 source=$(base).c
22 object=$(base).o
23 shared_lib=$(base).so
24
25 .PHONY: all
26 all: $(shared_lib)
27
28 $(shared_lib): $(source) Makefile
29         BASE=$(base) OBJECT=$(object) SOURCE=$(source) SHARED_LIB=$(shared_lib) LDFLAGS="-lc" sh make.sh
30         rm $(object)
31
32 .PHONY: distclean
33 distclean: clean
34         rm -f $(base).dylib $(base).dylib $(base).so $(base).o