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.4 2002/04/03 04:06:05 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 ###########################################################################
20 # These variables are correct for GCC
22 SHARED_CC_OPT=-fPIC -DPIC
24 #SHARED_LD_OPT=-r # For FreeBSD and Solaris (CMUCL)
25 SHARED_LD_OPT=-Bshareable -Bdynamic # For Linux (ALL) and FreeBSD (ACL)
27 # Use these for Sun's C compiler and Solaris (ACL)
33 # Nothing to configure beyond this point
42 $(shared_lib): $(source) Makefile
43 $(CC) ${SHARED_CC_OPT} -c $(source) -o $(object)
44 ld ${SHARED_LD_OPT} $(object) -o $(shared_lib)
48 rm -f $(object) $(shared_lib)