1 # -*- Mode: Makefile -*-
2 ###########################################################################
6 # Purpose: Makefile for the CLSQL UFFI helper package
7 # Programer: Kevin M. Rosenberg
8 # Date Started: Mar 2002
10 # CVS Id: $Id: Makefile,v 1.3 2002/04/01 17:33:48 kevin Exp $
12 # This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
14 # CLSQL users are granted the rights to distribute and use this software
15 # as governed by the terms of the Lisp Lesser GNU Public License
16 # (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ###########################################################################
21 # These variables are correct for GCC
22 # you'll need to modify these for other compilers
26 SHARED_LD_OPT=-shared # For Linux
27 #SHARED_LD_OPT=-r # For FreeBSD and Solaris
29 # If you are using Solaris, these are the correct values
30 # for creating a shared library
35 # Nothing to configure beyond this point
43 all: $(SHARED) $(STATIC)
46 $(CC) $(SHARED_CC_OPT) -c $(SRC) -o $(OBJECT)
47 ld $(SHARED_LD_OPT) $(OBJECT) -o $(SHARED)
51 $(CC) -c $(SRC) -o $(OBJECT)
52 $(AR) r $(STATIC) $(OBJECT)
56 rm -f $(SHARED) $(STATIC)