4 # Purpose: Makefile for UFFI examples
5 # Programer: Kevin M. Rosenberg
6 # Date Started: Mar 2002
8 # CVS Id: $Id: Makefile,v 1.15 2002/09/20 04:51:14 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 include ../Makefile.common
25 SHARED_CC_OPT=-fPIC -DPIC
27 SHARED_LD_OPT=-shared # For Linux (ALL) and FreeBSD (ACL)
30 # cc -dynamic -c c-test-fns.c -o foo.o
31 # ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress -o
32 # c-test-fns.dylib foo.o
34 # Use these for Sun's C compiler and Solaris (ACL)
40 # Nothing to configure beyond this point
50 $(shared_lib): $(source) Makefile
51 $(CC) ${SHARED_CC_OPT} -c $(source) -o $(object)
52 gcc ${SHARED_LD_OPT} $(object) -o $(shared_lib)