4 # Purpose: Makefile for UFFI examples
5 # Programer: Kevin M. Rosenberg
6 # Date Started: Mar 2002
10 # This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg
15 include ../Makefile.common
29 linux: $(source) Makefile
30 gcc -fPIC -DPIC -c $(source) -o $(object)
31 gcc -shared $(object) -o $(shared_lib)
35 cc -dynamic -c $(source) -o $(object)
36 ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress -o $(base).dylib $(object)
37 ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress /usr/lib/libz.dylib -o z.dylib
40 cc -KPIC -c $(source) -o $(object)
41 cc -G $(object) -o $(shared_lib)
44 gcc -c -D_BSD -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void $(source)
45 make_shared -o $(shared_lib) $(object)