4 # Purpose: Makefile for UFFI examples
5 # Programer: Kevin M. Rosenberg
6 # Date Started: Mar 2002
8 # CVS Id: $Id: Makefile,v 1.5 2002/04/01 20:33:45 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.
18 # These variables are correct for GCC
22 SHARED_LD_OPT=-shared # For Linux
23 #SHARED_LD_OPT=-r # For FreeBSD and Solaris
25 # If you are using Solaris with Sun's CC, these are the correct values
26 # for creating a shared library
34 # Nothing to configure beyond this point
42 $(shared_lib): $(source)
43 $(CC) ${SHARED_CC_OPT} -c $(source) -o $(object)
44 ld ${SHARED_LD_OPT} $(object) -o $(shared_lib)
45 $(AR) r $(static_lib) $(object)
48 $(static_lib): $(source)
49 ${CC} -c $(source) -o $(object)
50 $(AR) r $(static_lib) $(object)
54 rm -f $(object) $(static_lib) $(shared_lib)