r1595: Updated C test functions
[uffi.git] / examples / Makefile
1 # FILE IDENTIFICATION
2
3 #  Name:         Makefile
4 #  Purpose:      Makefile for UFFI examples
5 #  Programer:    Kevin M. Rosenberg
6 #  Date Started: Mar 2002
7 #
8 #  CVS Id:   $Id: Makefile,v 1.2 2002/03/21 02:41:30 kevin Exp $
9 #
10 # This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
11 #
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.
15
16 # These variables are correct for GCC
17 # you'll need to modify these for other compilers
18 CC=gcc
19 SHARED_CC_OPT=-fpic
20 SHARED_LD_OPT=-shared
21
22 # If you are using Solaris, these are the correct values
23 # for creating a shared library
24 #CC=cc
25 #SHARED_CC_OPT=-KPIC
26 #SHARED_LD_OPT=-G
27
28 # Nothing to configure beyond this point
29
30 all: lib 
31
32 lib: c-test-fns.so
33
34 c-test-fns.so: c-test-fns.c 
35         ${CC} ${SHARED_CC_OPT} -c c-test-fns.c -o c-test-fns.o
36         ld ${SHARED_LD_OPT} c-test-fns.o -o c-test-fns.so
37
38 clean:
39         rm -f *.o *.so 
40
41 realclean:
42         rm -f *.o *.so *~