4 # Purpose: Makefile for UFFI examples
5 # Programer: Kevin M. Rosenberg
6 # Date Started: Mar 2002
8 # This file, part of UFFI, is Copyright (c) 2002-2010 by Kevin M. Rosenberg
13 include ../Makefile.common
27 linux: $(source) Makefile
28 gcc -fPIC -DPIC -c $(source) -o $(object)
29 gcc -shared $(object) -o $(shared_lib)
33 cc -dynamic -c $(source) -o $(object)
34 ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress -o $(base).dylib $(object)
35 ld -bundle /usr/lib/bundle1.o -flat_namespace -undefined suppress /usr/lib/libz.dylib -o z.dylib
38 cc -KPIC -c $(source) -o $(object)
39 cc -G $(object) -o $(shared_lib)
42 gcc -c -D_BSD -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void $(source)
43 make_shared -o $(shared_lib) $(object)