4 # Purpose: Makefile for UFFI examples
5 # Programer: Kevin M. Rosenberg
6 # Date Started: Mar 2002
8 # CVS Id: $Id: Makefile,v 1.22 2003/08/27 20:12:02 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
32 linux: $(source) Makefile
33 gcc -fPIC -DPIC -c $(source) -o $(object)
34 gcc -shared $(object) -o $(shared_lib)
35 #gcc -shared -Wl,-soname,uffi-c-test-lib $(object) -o $(shared_lib)
39 gcc -bundle -c $(source) -o $(base).bundle
40 ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress /usr/lib/libz.dylib -o z.bundle
43 cc -dynamic -c $(source) -o $(object)
44 ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress -o $(base).dylib $(object)
45 ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress /usr/lib/libz.dylib -o z.dylib
48 cc -KPIC -c $(source) -o $(object)
49 cc -G $(object) -o $(shared_lib)
52 gcc -c -D_BSD -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void $(source)
53 make_shared -o $(shared_lib) $(object)