[PD-cvs] pd/extra/bonk~ bonk~.c, NONE, 1.3.4.2 makefile, NONE, 1.6.8.2 templates.txt, NONE, 1.2.22.2
Tim Blechmann
timblech at users.sourceforge.net
Sat Jul 16 18:21:00 CEST 2005
Update of /cvsroot/pure-data/pd/extra/bonk~
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21746/bonk~
Added Files:
Tag: devel_0_39
bonk~.c makefile templates.txt
Log Message:
missing extra files
--- NEW FILE: bonk~.c ---
/* Copyright 1997-1999 Miller Puckette (msp at ucsd.edu) and Ted Apel
(tapel at ucsd.edu). Permission is granted to use this software for any
noncommercial purpose. For commercial licensing please contact the UCSD
Technology Transfer Office.
THE AUTHORS AND THEIR EMPLOYERS MAKE NO WARRANTY, EXPRESS OR IMPLIED,
IN CONNECTION WITH THIS SOFTWARE!
*/
#include <math.h>
#include <stdio.h>
#ifdef NT
#pragma warning (disable: 4305 4244)
#endif
#ifdef MSP
#include "ext.h"
[...1038 lines suppressed...]
/* get current system time */
double clock_getsystime()
{
return gettime();
}
/* elapsed time in milliseconds since the given system time */
double clock_gettimesince(double prevsystime)
{
return ((gettime() - prevsystime));
}
float qrsqrt(float f)
{
return 1/sqrt(f);
}
#endif /* MSP */
--- NEW FILE: templates.txt ---
10.47 9.65 14.95 23.77 28.32 38.84 53.21 41.20 31.25 21.70 16.48
6.52 13.93 27.82 58.05 24.11 35.26 35.98 37.78 22.54 13.56 10.75
30.45 28.86 29.42 21.94 29.92 35.70 38.49 32.01 28.19 27.38 22.10
66.77 46.27 28.82 25.95 22.84 20.61 20.33 14.18 6.86 8.92 7.37
--- NEW FILE: makefile ---
NAME=bonk~
CSYM=bonk_tilde
current: pd_linux
# ----------------------- NT -----------------------
pd_nt: $(NAME).dll
.SUFFIXES: .dll
PDNTCFLAGS = /W3 /WX /DNT /DPD /nologo
VC="C:\Program Files\Microsoft Visual Studio\Vc98"
PDNTINCLUDE = /I. /I..\..\src /I$(VC)\include
PDNTLDIR = $(VC)\lib
PDNTLIB = $(PDNTLDIR)\libc.lib \
$(PDNTLDIR)\oldnames.lib \
$(PDNTLDIR)\kernel32.lib \
..\..\bin\pd.lib
.c.dll:
cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c
link /dll /export:$(CSYM)_setup $*.obj $(PDNTLIB)
# ----------------------- IRIX 5.x -----------------------
pd_irix5: $(NAME).pd_irix5
.SUFFIXES: .pd_irix5
SGICFLAGS5 = -o32 -DPD -DUNIX -DIRIX -O2
SGIINCLUDE = -I../../src
.c.pd_irix5:
$(CC) $(SGICFLAGS5) $(SGIINCLUDE) -o $*.o -c $*.c
ld -elf -shared -rdata_shared -o $*.pd_irix5 $*.o
rm $*.o
# ----------------------- IRIX 6.x -----------------------
pd_irix6: $(NAME).pd_irix6
.SUFFIXES: .pd_irix6
SGICFLAGS6 = -n32 -DPD -DUNIX -DIRIX -DN32 -woff 1080,1064,1185 \
-OPT:roundoff=3 -OPT:IEEE_arithmetic=3 -OPT:cray_ivdep=true \
-Ofast=ip32
.c.pd_irix6:
$(CC) $(SGICFLAGS6) $(SGIINCLUDE) -o $*.o -c $*.c
ld -n32 -IPA -shared -rdata_shared -o $*.pd_irix6 $*.o
rm $*.o
# ----------------------- LINUX i386 -----------------------
pd_linux: $(NAME).pd_linux
.SUFFIXES: .pd_linux
LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC \
-Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS)
LINUXINCLUDE = -I../../src
.c.pd_linux:
$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm
strip --strip-unneeded $*.pd_linux
rm -f $*.o
# ----------------------- Mac OSX -----------------------
pd_darwin: $(NAME).pd_darwin
.SUFFIXES: .pd_darwin
DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
.c.pd_darwin:
$(CC) $(DARWINCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
$(CC) -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o
rm -f $*.o
# ----------------------------------------------------------
clean:
rm -f *.o *.pd_* so_locations
More information about the Pd-cvs
mailing list