changeset 9:b35af87b0459

Fixed Makefile to build foreign library
author samer
date Sat, 12 Apr 2014 18:09:32 +0100
parents 42c3d1f5c03b
children cda9dbcd319d
files Makefile pack/Makefile pack/pack.pl release/plosc-0.4.1.tgz release/plosc-0.4.2.tgz
diffstat 5 files changed, 29 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Apr 12 17:56:36 2014 +0100
+++ b/Makefile	Sat Apr 12 18:09:32 2014 +0100
@@ -19,7 +19,7 @@
 # use '-bp' under Linux
 export INSTALL_FLAGS='-bCS'
 
-VER=0.4.1
+VER=0.4.2
 # ---------------- end of configuration ---------------
 export PACKNAME=plosc
 PACKFILE=release/$(PACKNAME)-$(VER).tgz
@@ -29,9 +29,10 @@
 
 packfile:
 	mkdir -p $(PACKNAME) $(PACKNAME)/c $(PACKNAME)/prolog $(PACKNAME)/example
-	sed -e 's/<VER>/$(VER)/' pack.pl > $(PACKNAME)/pack.pl
+	sed -e 's/<VER>/$(VER)/' pack/pack.pl > $(PACKNAME)/pack.pl
 	cp -p c/*.c $(PACKNAME)/c
 	cp -p c/Makefile $(PACKNAME)/c
+	cp -p pack/Makefile $(PACKNAME)/Makefile
 	cp -p prolog/*.pl $(PACKNAME)/prolog
 	cp -p README $(PACKNAME)
 	cp -p CHANGES $(PACKNAME)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pack/Makefile	Sat Apr 12 18:09:32 2014 +0100
@@ -0,0 +1,19 @@
+# ---------------- configuration ----------------------
+export PLLD=$(SWIHOME)/bin/$(SWIARCH)/swipl-ld
+
+# set this to the prefix directory of your liblo installation
+export LIBLO=/opt/local
+# ---------------- end of configuration ---------------
+
+all: 
+	make -C c
+
+check:
+	echo "No checks defined."
+
+clean:
+	make -C c clean
+
+install: all
+	install -d $(PACKSODIR)
+	install -bCS c/plosc.$(SOEXT) $(PACKSODIR)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pack/pack.pl	Sat Apr 12 18:09:32 2014 +0100
@@ -0,0 +1,7 @@
+name(plosc).
+version('<VER>').
+author('Samer Abdallah','s.abdallah@ucl.ac.uk').
+title('OSC input/output via liblo').
+keywords([midi,osx]).
+download('http://code.soundsoftware.ac.uk/projects/plosc/repository/raw/release/plosc-<VER>.tgz').
+
Binary file release/plosc-0.4.1.tgz has changed
Binary file release/plosc-0.4.2.tgz has changed