aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2002-09-23 16:35:36 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2002-09-23 16:35:36 +0000
commitb0b8ab86075be43264169a35f548a86d04bd5fef (patch)
tree737fd5ee5ab027ecc234258c7a17a3b91f63ca67
parentfdb2eabfa6ee4d0c89aa6201a9e647ac8c2c1bdd (diff)
This commit was generated by cvs2svn to compensate for changes in r141,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/olafmatt/; revision=142
-rw-r--r--clone/hand-clone.pd37
-rw-r--r--clone/makefile84
-rw-r--r--clone/readme.pdfbin0 -> 7908 bytes
3 files changed, 121 insertions, 0 deletions
diff --git a/clone/hand-clone.pd b/clone/hand-clone.pd
new file mode 100644
index 0000000..02427a1
--- /dev/null
+++ b/clone/hand-clone.pd
@@ -0,0 +1,37 @@
+#N canvas 269 180 515 460 12;
+#X obj 42 287 abstraction 1;
+#X obj 42 260 route 1 2;
+#X obj 75 314 abstraction 2;
+#X msg 141 338 1 \$1;
+#X obj 141 414 print handcode;
+#X text 41 19 this is - in short - the hand coded alternative to using
+[clone abstraction 2]. It looks rather easy but imagine this for 256
+instances of the abstraction...;
+#X floatatom 42 93 5 0 0;
+#X msg 42 207 \$1 \$2;
+#X floatatom 54 126 5 0 0;
+#X obj 54 153 t b f;
+#X obj 42 180 pack f f;
+#X text 107 124 input data;
+#X text 36 236 -----------------------------------------------;
+#X text 36 386 -----------------------------------------------;
+#X text 206 283 all this is inside clone;
+#X obj 42 409 dac~;
+#X text 98 93 number of instance;
+#X msg 174 361 2 \$1;
+#X connect 0 0 15 0;
+#X connect 0 0 15 1;
+#X connect 0 1 3 0;
+#X connect 1 0 0 0;
+#X connect 1 1 2 0;
+#X connect 2 0 15 0;
+#X connect 2 0 15 1;
+#X connect 2 1 17 0;
+#X connect 3 0 4 0;
+#X connect 6 0 10 0;
+#X connect 7 0 1 0;
+#X connect 8 0 9 0;
+#X connect 9 0 10 0;
+#X connect 9 1 10 1;
+#X connect 10 0 7 0;
+#X connect 17 0 4 0;
diff --git a/clone/makefile b/clone/makefile
new file mode 100644
index 0000000..5c16fed
--- /dev/null
+++ b/clone/makefile
@@ -0,0 +1,84 @@
+NAME=clone
+CSYM=clone
+
+current: pd_nt pd_linux pd_darwin
+
+# ----------------------- NT -----------------------
+
+pd_nt: $(NAME).dll
+
+.SUFFIXES: .dll
+
+PDNTCFLAGS = /W3 /WX /O2 /G6 /DNT /DPD /nologo
+
+# where is VC++ ???
+VC="C:\Programme\Microsoft Visual Studio\VC98"
+
+# where is your m_pd.h ???
+PDNTINCLUDE = /I. /Ic:\pd\tcl\include /Ic:\pd\src /I$(VC)\include
+
+PDNTOBJ = clone_connective.obj clone_signal.obj
+
+PDNTLDIR = $(VC)\Lib
+PDNTLIB = $(PDNTLDIR)\libc.lib \
+ $(PDNTLDIR)\oldnames.lib \
+ $(PDNTLDIR)\kernel32.lib \
+ $(PDNTLDIR)\user32.lib \
+ $(PDNTLDIR)\uuid.lib \
+ c:\pd\bin\pd.lib
+
+.c.dll:
+ cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c clone_connective.c
+ cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c clone_signal.c
+ cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c
+ link /dll /export:$(CSYM)_setup $*.obj $(PDNTOBJ) $(PDNTLIB)
+
+# ----------------------- MAX OS X -----------------------
+
+pd_darwin: $(NAME).pd_darwin
+
+.SUFFIXES: .pd_darwin
+
+DARWINCFLAGS = -DPD -DUNIX -O2 -DMACOSX \
+ -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+DARWININCLUDE = -I../../src
+DARWINOBJ = clone_connective.o clone_signal.o
+
+.c.pd_darwin:
+ cc $(DARWINCFLAGS) $(DARWININCLUDE) -o clone_connective.o -c clone_connective.c
+ cc $(DARWINCFLAGS) $(DARWININCLUDE) -o clone_signal.o -c clone_signal.c
+ cc $(DARWINCFLAGS) $(DARWININCLUDE) -o $*.o -c $*.c
+ cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o $(DARWINOBJ)
+ rm -f $*.o ../$*.pd_darwin
+ ln -s $*/$*.pd_darwin ..
+
+# ----------------------- LINUX i386 -----------------------
+
+pd_linux: $(NAME).pd_linux
+
+.SUFFIXES: .pd_linux
+
+LINUXCFLAGS = -DPD -DUNIX -O2 -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes -Werror \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+# where is your m_pd.h ???
+LINUXINCLUDE = -I../../src
+LINUXOBJ = clone_connective.o clone_signal.o
+
+.c.pd_linux:
+ cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c clone_connective.c
+ cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c clone_signal.c
+ cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c $*.c
+ ld -export_dynamic -shared -o $*.pd_linux $*.o $(LINUXOBJ) -lc
+ strip --strip-unneeded $*.pd_linux
+
+# ----------------------------------------------------------
+
+install:
+ cp *.pd ../../doc/5.reference
+
+clean:
+ rm -f *.o *.pd_* so_locations
diff --git a/clone/readme.pdf b/clone/readme.pdf
new file mode 100644
index 0000000..076a349
--- /dev/null
+++ b/clone/readme.pdf
Binary files differ