4 # Purpose: Makefile for UFFI examples
5 # Programer: Kevin M. Rosenberg
6 # Date Started: Mar 2002
8 # CVS Id: $Id: Makefile,v 1.9 2002/04/03 06:10:05 kevin Exp $
10 # This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
12 # UFFI 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.
17 # These variables are correct for GCC
19 SHARED_CC_OPT=-fPIC -DPIC
21 #SHARED_LD_OPT=-r # For FreeBSD and Solaris (CMUCL)
22 SHARED_LD_OPT=-Bshareable -Bdynamic # For Linux (ALL) and FreeBSD (ACL)
24 # Use these for Sun's C compiler and Solaris (ACL)
30 # Nothing to configure beyond this point
39 $(shared_lib): $(source) Makefile
40 $(CC) ${SHARED_CC_OPT} -c $(source) -o $(object)
41 ld ${SHARED_LD_OPT} $(object) -o $(shared_lib)
45 rm -f $(object) $(shared_lib)