4 # Purpose: Makefile for UFFI examples
5 # Programer: Kevin M. Rosenberg
6 # Date Started: Mar 2002
8 # CVS Id: $Id: Makefile,v 1.3 2002/03/31 23:05:07 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.
16 # These variables are correct for GCC
17 # you'll need to modify these for other compilers
23 # If you are using Solaris, these are the correct values
24 # for creating a shared library
32 # Nothing to configure beyond this point
38 all: $(shared_lib) $(static_lib)
41 $(shared_lib): $(source)
42 $(CC) ${SHARED_CC_OPT} -c $(source) -o $(object)
43 ld ${SHARED_LD_OPT} $(object) -o $(shared_lib)
44 $(AR) r $(static_lib) $(object)
47 $(static_lib): $(source)
48 ${CC} -c $(source) -o $(object)
49 $(AR) r $(static_lib) $(object)
53 rm -f $(object) $(static_lib) $(shared_lib)