#*****************************************************************************
#FILE:               Makefile
#LANGUAGE:           make
#SYSTEM:             posix
#USER-INTERFACE:     none
#DESCRIPTION
#
#    This makefile compiles additionnal code for the clisp specific packages.
#
#AUTHORS
#    <PJB> Pascal Bourguignon
#MODIFICATIONS
#    2010-06-27 <PJB> Factorized out into ../implementations.mk
#    2003-05-04 <PJB> Added this header.
#BUGS
#LEGAL
#    GPL
#
#    Copyright Pascal Bourguignon 2003 - 2010
#    mailto:pjb@informatimago.com
#
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of the GNU General Public License
#    as published by the Free Software Foundation; either version
#    2 of the License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be
#    useful, but WITHOUT ANY WARRANTY; without even the implied
#    warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#    PURPOSE.  See the GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public
#    License along with this program; if not, write to the Free
#    Software Foundation, Inc., 59 Temple Place, Suite 330,
#    Boston, MA 02111-1307 USA
#*****************************************************************************
PREFIX = /usr/local

all:: libraw-memory.so

# Libraries are loaded at run-time, so they must be installed
# in some public place, or distributed along with the applications.
# There would be no point to keeping them in asdf-binary-location places.

raw-memory-lib.o:raw-memory-lib.c
	$(CC) -shared -fPIC -g -O3 -c -o $@ $<

libraw-memory.so:raw-memory-lib.o
	if [ $(shell uname) = Darwin ] ;\
	then $(LD) -dynamic                -o $@ $< ;\
	else $(LD) -shared -fPIC -g        -o $@ $< ;\
	fi

install::
	-mkdir $(PREFIX)/lib
	install -m 644 libraw-memory.so  $(PREFIX)/lib/libraw-memory.so

#### THE END ####
ViewGit