[elephant-cvs] CVS update: elephant/Makefile

blee at common-lisp.net blee at common-lisp.net
Thu Sep 2 07:03:53 UTC 2004


Update of /project/elephant/cvsroot/elephant
In directory common-lisp.net:/tmp/cvs-serv16450

Modified Files:
	Makefile 
Log Message:
conditionalize
darwin

Date: Thu Sep  2 09:03:53 2004
Author: blee

Index: elephant/Makefile
diff -u elephant/Makefile:1.1 elephant/Makefile:1.2
--- elephant/Makefile:1.1	Sun Aug 29 22:34:10 2004
+++ elephant/Makefile	Thu Sep  2 09:03:51 2004
@@ -1,24 +1,30 @@
 #
-# Makefile for compiling libsleepycat.c
+# GNU Makefile for compiling libsleepycat.c (BSDers use gmake)
 #
 # Contributed by Rafal Strzalinski
 #
 
 SHELL=/bin/sh
+UNAME:=$(shell uname -s)
 
 # *BSD users will probably want
-# DBLIBDIR=/usr/local/lib/db42
-# DBINCDIR=/usr/local/include/db42
+DBLIBDIR=/usr/local/lib/db42
+DBINCDIR=/usr/local/include/db42
 
-DB42DIR=/usr/local/BerkeleyDB.4.2
-
-DBLIBDIR=$(DB42DIR)/lib/
-DBINCDIR=$(DB42DIR)/include/
-
-INSTALLDIR=/usr/local/share/common-lisp/elephant/
+#DB42DIR=/usr/local/BerkeleyDB.4.2
+#DBLIBDIR=$(DB42DIR)/lib/
+#DBINCDIR=$(DB42DIR)/include/
+
+INSTALLDIR=/usr/local/share/common-lisp/elephant-0.1/
+
+ifeq (Darwin,$(UNAME))
+	SHARED=-bundle
+else
+	SHARED=-shared
+endif
 
 libsleepycat.so: src/libsleepycat.c
-	gcc -L$(DBLIBDIR) -I$(DBINCDIR) -fPIC -shared -O3 -o $@ $< -ldb
+	gcc $(SHARED) -L$(DBLIBDIR) -I$(DBINCDIR) -fPIC -O3 -o $@ $< -ldb
 
 install: libsleepycat.so
 	install $< $(INSTALLDIR) 





More information about the Elephant-cvs mailing list