[PD-cvs] externals/maxlib HISTORY,1.4,1.5 LICENSE,1.2,1.3 README,1.4,1.5 install.bat,1.2,1.3 makefile,1.7,1.8 maxlib.c,1.5,1.6 maxlib.dsp,1.2,1.3 maxlib.dsw,1.2,1.3 maxlib.pd_darwin,1.1.1.1,NONE

Hans-Christoph Steiner eighthave at users.sourceforge.net
Sat Mar 20 06:56:31 CET 2004


Update of /cvsroot/pure-data/externals/maxlib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2641

Added Files:
	HISTORY LICENSE README install.bat makefile maxlib.c 
	maxlib.dsp maxlib.dsw 
Removed Files:
	maxlib.pd_darwin 
Log Message:
things back to Olaf's 1.5.2

--- NEW FILE: maxlib.dsw ---
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!

###############################################################################

Project: "maxlib"=.\maxlib.dsp - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
}}}

###############################################################################

Global:

Package=<5>
{{{
}}}

Package=<3>
{{{
}}}

###############################################################################


--- NEW FILE: maxlib.c ---
/* --------------------------  maxlib  ---------------------------------------- */
/*                                                                              */
/* maxlib :: music analysis extensions library.                                 */
/* Written by Olaf Matthes <olaf.matthes at gmx.de>                                */
/* Get source at http://www.akustische-kunst.org/puredata/maxlib/               */
/*                                                                              */
/* 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.  */
/*                                                                              */
/* Based on PureData by Miller Puckette and others.                             */
/*                                                                              */
/* ---------------------------------------------------------------------------- */
#ifndef VERSION
#define VERSION "1.5.2"
#endif

#include "m_pd.h"


#ifndef __DATE__ 
#define __DATE__ "without using a gnu compiler"
#endif

typedef struct _maxlib
{
     t_object x_obj;
} t_maxlib;

static t_class* maxlib_class;

	/* objects */
void maxlib_allow_setup();
void maxlib_arbran_setup();
void maxlib_arraycopy_setup();
void maxlib_average_setup();
void maxlib_beat_setup();
void maxlib_beta_setup();
void maxlib_bilex_setup();
void maxlib_borax_setup();
void maxlib_cauchy_setup();
void maxlib_chord_setup();
void maxlib_delta_setup();
void maxlib_deny_setup();
void maxlib_dist_setup();
void maxlib_divide_setup();
void maxlib_divmod_setup();
void maxlib_edge_setup();
void maxlib_expo_setup();
void maxlib_fifo_setup();
void maxlib_gauss_setup();
void maxlib_gestalt_setup();
void maxlib_history_setup();
void maxlib_ignore_setup();
void maxlib_iso_setup();
void maxlib_lifo_setup();
void maxlib_limit_setup();
void maxlib_linear_setup();
void maxlib_listfifo_setup();
void maxlib_listfunnel_setup();
void maxlib_match_setup();
void maxlib_minus_setup();
void maxlib_mlife_setup();
void maxlib_multi_setup();
void maxlib_nchange_setup();
void maxlib_netclient_setup();
void maxlib_netdist_setup();
void maxlib_netrec_setup();
void maxlib_netserver_setup();
void maxlib_nroute_setup();
void maxlib_pitch_setup();
void maxlib_plus_setup();
void maxlib_poisson_setup();
void maxlib_pong_setup();
void maxlib_pulse_setup();
void maxlib_remote_setup();
void maxlib_rewrap_setup();
void maxlib_rhythm_setup();
void maxlib_scale_setup();
void maxlib_score_setup();
void maxlib_speedlim_setup();
void maxlib_split_setup();
void maxlib_step_setup();
void maxlib_subst_setup();
void maxlib_sync_setup();
void maxlib_temperature_setup();
void maxlib_tilt_setup();
void maxlib_timebang_setup();
void maxlib_triang_setup();
void maxlib_unroute_setup();
void maxlib_urn_setup();
void maxlib_velocity_setup();
void maxlib_weibull_setup();
void maxlib_wrap_setup();

static void* maxlib_new(t_symbol* s)
{
    t_maxlib *x = (t_maxlib *)pd_new(maxlib_class);
    return (x);
}

void maxlib_setup(void) 
{
	maxlib_class = class_new(gensym("maxlib"), (t_newmethod)maxlib_new, 0,
    	sizeof(t_maxlib), 0,0);

	maxlib_allow_setup();
	maxlib_arbran_setup();
	maxlib_arraycopy_setup();
	maxlib_average_setup();
	maxlib_beat_setup();
	maxlib_beta_setup();
	maxlib_bilex_setup();
	maxlib_borax_setup();
	maxlib_cauchy_setup();
	maxlib_chord_setup();
	maxlib_delta_setup();
	maxlib_deny_setup();
	maxlib_dist_setup();
	maxlib_divide_setup();
	maxlib_divmod_setup();
	maxlib_edge_setup();
	maxlib_expo_setup();
	maxlib_fifo_setup();
	maxlib_gauss_setup();
	maxlib_gestalt_setup();
	maxlib_history_setup();
	maxlib_ignore_setup();
	maxlib_iso_setup();
	maxlib_lifo_setup();
	maxlib_limit_setup();
	maxlib_linear_setup();
	maxlib_listfifo_setup();
	maxlib_listfunnel_setup();
	maxlib_match_setup();
	maxlib_minus_setup();
    maxlib_mlife_setup();
	maxlib_multi_setup();
	maxlib_nchange_setup();
	maxlib_netclient_setup();
	maxlib_netdist_setup();
	maxlib_netrec_setup();
	maxlib_netserver_setup();
	maxlib_nroute_setup();
	maxlib_pitch_setup();
	maxlib_plus_setup();
	maxlib_poisson_setup();
	maxlib_pong_setup();
	maxlib_pulse_setup();
	maxlib_remote_setup();
	maxlib_rewrap_setup();
	maxlib_rhythm_setup();
	maxlib_scale_setup();
	maxlib_score_setup();
	maxlib_speedlim_setup();
	maxlib_split_setup();
	maxlib_step_setup();
    maxlib_subst_setup();
	maxlib_sync_setup();
	maxlib_temperature_setup();
	maxlib_tilt_setup();
	maxlib_timebang_setup();
	maxlib_triang_setup();
	maxlib_unroute_setup();
	maxlib_urn_setup();
	maxlib_velocity_setup();
	maxlib_weibull_setup();
	maxlib_wrap_setup();

	post("\n       maxlib :: Music Analysis eXtensions LIBrary");
	post("       written by Olaf Matthes <olaf.matthes at gmx.de>");
	post("       version "VERSION);
	post("       compiled "__DATE__);
	post("       latest version at http://www.akustische-kunst.org/puredata/maxlib/");
	post("       objects: allow arbran arraycopy average beat beta bilex borax cauchy ");
	post("                chord delta deny dist divide divmod edge expo fifo gauss ");
	post("                gestalt history ignore iso lifo linear listfifo listfunnel ");
	post("                match minus mlife multi nchange netclient netdist netrec ");
	post("                netserver nroute pitch plus poisson pong pulse remote rewrap ");
	post("                rhythm scale score speedlim split step subst sync temperature ");
	post("                tilt timebang triang unroute urn velocity weibull wrap\n");
}

--- maxlib.pd_darwin DELETED ---

--- NEW FILE: install.bat ---
mkdir c:\pd\externs\maxlib
mkdir c:\pd\doc\5.reference\maxlib
cd help
copy *.pd c:\pd\doc\5.reference\maxlib
copy examplescore.txt c:\pd\doc\5.reference\maxlib
copy automata.txt c:\pd\externs\maxlib
cd ..
copy maxlib.dll c:\pd\externs\maxlib
copy README c:\pd\externs\maxlib
copy HISTORY c:\pd\externs\maxlib
copy LICENSE c:\pd\externs\maxlib
echo start Pd with flag "-lib c:\pd\externs\maxlib\maxlib"

--- NEW FILE: maxlib.dsp ---
# Microsoft Developer Studio Project File - Name="maxlib" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **

# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102

CFG=maxlib - WIN32 RELEASE
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE 
!MESSAGE NMAKE /f "maxlib.mak".
!MESSAGE 
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE 
!MESSAGE NMAKE /f "maxlib.mak" CFG="maxlib - WIN32 RELEASE"
!MESSAGE 
!MESSAGE Possible choices for configuration are:
!MESSAGE 
!MESSAGE "maxlib - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "maxlib - Win32 Intel" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE 

# Begin Project
# PROP AllowPerConfigDependencies 1
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=xicl6.exe
MTL=midl.exe
RSC=rc.exe

!IF  "$(CFG)" == "maxlib - Win32 Release"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir ""
# PROP Intermediate_Dir "obj\"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "maxlib_EXPORTS" /YX /FD /c
# ADD CPP /nologo /MT /W3 /GX /O2 /I "include" /D "WIN32" /D "NT" /D "_WINDOWS" /D "MAXLIB" /YX /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /win32
# SUBTRACT MTL /mktyplib203
# ADD BASE RSC /l 0xc07 /d "NDEBUG"
# ADD RSC /l 0xc07
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=xilink6.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 kernel32.lib wsock32.lib user32.lib uuid.lib libc.lib oldnames.lib pthreadVC.lib c:\pd\bin\pd.lib /nologo /dll /machine:I386 /nodefaultlib /libpath:"../../bin" /export:maxlib_setup
# SUBTRACT LINK32 /pdb:none

!ELSEIF  "$(CFG)" == "maxlib - Win32 Intel"

# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "maxlib___Win32_Intel"
# PROP BASE Intermediate_Dir "maxlib___Win32_Intel"
# PROP BASE Ignore_Export_Lib 0
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir ""
# PROP Intermediate_Dir ""
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /I "c:\pd\src" /D "WIN32" /D "NT" /D "_WINDOWS" /D "MAXLIB" /YX /FD /c
# ADD CPP /nologo /MT /W3 /I "include" /D "WIN32" /D "NT" /D "_WINDOWS" /D "IA32" /D "MAXLIB" /Fp"obj\maxlib.pch" /YX /Fo"obj\\" /FD /O3 /G7 /QaxW /c
# ADD BASE MTL /nologo /win32
# SUBTRACT BASE MTL /mktyplib203
# ADD MTL /nologo /win32
# SUBTRACT MTL /mktyplib203
# ADD BASE RSC /l 0xc07
# ADD RSC /l 0xc07
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=xilink6.exe
# ADD BASE LINK32 kernel32.lib wsock32.lib user32.lib uuid.lib libc.lib oldnames.lib pthreadVC.lib c:\pd\bin\pd.lib /nologo /dll /machine:I386 /nodefaultlib /libpath:"../../bin" /export:maxlib_setup
# SUBTRACT BASE LINK32 /pdb:none
# ADD LINK32 kernel32.lib wsock32.lib user32.lib uuid.lib libc.lib oldnames.lib pthreadVC.lib libm.lib libirc.lib svml_disp.lib c:\pd\bin\pd.lib /nologo /dll /machine:I386 /nodefaultlib /libpath:"../../bin" /export:maxlib_setup
# SUBTRACT LINK32 /pdb:none

!ENDIF 

# Begin Target

# Name "maxlib - Win32 Release"
# Name "maxlib - Win32 Intel"
# Begin Group "Quellcodedateien"

# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File

SOURCE=.\src\arbran.c
# End Source File
# Begin Source File

SOURCE=.\src\average.c
# End Source File
# Begin Source File

SOURCE=.\src\beat.c
# End Source File
# Begin Source File

SOURCE=.\src\beta.c
# End Source File
# Begin Source File

SOURCE=.\src\bilex.c
# End Source File
# Begin Source File

SOURCE=.\src\borax.c
# End Source File
# Begin Source File

SOURCE=.\src\cauchy.c
# End Source File
# Begin Source File

SOURCE=.\src\chord.c
# End Source File
# Begin Source File

SOURCE=.\src\delta.c
# End Source File
# Begin Source File

SOURCE=.\src\dist.c
# End Source File
# Begin Source File

SOURCE=.\src\divide.c
# End Source File
# Begin Source File

SOURCE=.\src\divmod.c
# End Source File
# Begin Source File

SOURCE=.\src\edge.c
# End Source File
# Begin Source File

SOURCE=.\src\expo.c
# End Source File
# Begin Source File

SOURCE=.\src\fifo.c
# End Source File
# Begin Source File

SOURCE=.\src\gauss.c
# End Source File
# Begin Source File

SOURCE=.\src\gestalt.c
# End Source File
# Begin Source File

SOURCE=.\src\history.c
# End Source File
# Begin Source File

SOURCE=.\src\ignore.c
# End Source File
# Begin Source File

SOURCE=.\src\iso.c
# End Source File
# Begin Source File

SOURCE=.\src\lifo.c
# End Source File
# Begin Source File

SOURCE=.\src\limit.c
# End Source File
# Begin Source File

SOURCE=.\src\linear.c
# End Source File
# Begin Source File

SOURCE=.\src\listfunnel.c
# End Source File
# Begin Source File

SOURCE=.\src\match.c
# End Source File
# Begin Source File

SOURCE=.\maxlib.c
# End Source File
# Begin Source File

SOURCE=.\src\minus.c
# End Source File
# Begin Source File

SOURCE=.\src\mlife.c
# End Source File
# Begin Source File

SOURCE=.\src\multi.c
# End Source File
# Begin Source File

SOURCE=.\src\netclient.c
# End Source File
# Begin Source File

SOURCE=.\src\netdist.c
# End Source File
# Begin Source File

SOURCE=.\src\netrec.c
# End Source File
# Begin Source File

SOURCE=.\src\netserver.c
# End Source File
# Begin Source File

SOURCE=.\src\nroute.c
# End Source File
# Begin Source File

SOURCE=.\src\pitch.c
# End Source File
# Begin Source File

SOURCE=.\src\plus.c
# End Source File
# Begin Source File

SOURCE=.\src\poisson.c
# End Source File
# Begin Source File

SOURCE=.\src\pong.c
# End Source File
# Begin Source File

SOURCE=.\src\pulse.c
# End Source File
# Begin Source File

SOURCE=.\src\remote.c
# End Source File
# Begin Source File

SOURCE=.\src\rhythm.c
# End Source File
# Begin Source File

SOURCE=.\src\scale.c
# End Source File
# Begin Source File

SOURCE=.\src\score.c
# End Source File
# Begin Source File

SOURCE=.\src\speedlim.c
# End Source File
# Begin Source File

SOURCE=.\src\step.c
# End Source File
# Begin Source File

SOURCE=.\src\subst.c
# End Source File
# Begin Source File

SOURCE=.\src\temperature.c
# End Source File
# Begin Source File

SOURCE=.\src\tilt.c
# End Source File
# Begin Source File

SOURCE=.\src\triang.c
# End Source File
# Begin Source File

SOURCE=.\src\velocity.c
# End Source File
# Begin Source File

SOURCE=.\src\weibull.c
# End Source File
# End Group
# Begin Group "Header-Dateien"

# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File

SOURCE=.\include\m_imp.h
# End Source File
# Begin Source File

SOURCE=.\include\m_pd.h
# End Source File
# End Group
# End Target
# End Project

--- NEW FILE: README ---
maxlib - music analysis extensions library, version 1.5.2
copyright (c) 2002-2003 by Olaf Matthes

maxlib is a library of non-tilde externals for pd (by Miller Puckette).

The objects can be very useful to analyse any musical performance. Some
of the objects are 'borrowed' from Max (they are not ported but
rewritten for Pd - cheap immitations).
maxib has recently been extended by objects of more general use and some 
which can be use for composition purposes.

To compile maxlib on win32 (using VC++ 6.0) just type "nmake pd_nt" or use
the MS VC++ project provided. On Linux simply do "make pd_linux" and "make 
install". 
You have to modify the makefile to make it point to your m_ph.h !!! 

To use maxlib place the file maxlib.dll for win32 or maxlib.pd_linux 
in a directory of your choise and start pd with '-lib path/to/maxlib' flag. 

On windows you can run install.bat to copy all files to the apropiate places.
This assumes that you have pd installed in c:\pd\ ! The maxlib directory will
then be c:\pd\externs\maxlib\


This software is published under GPL terms, see file LICENSE.

This is software with ABSOLUTELY NO WARRANTY.
Use it at your OWN RISK. It's possible to damage e.g. hardware or your hearing
due to a bug or for other reasons. 

*****************************************************************************

included objects: see http://www.akustische-kunst.org/puredata/maxlib/

Latest version can be found at:
http://www.akustische-kunst.org/puredata/maxlib/

Please report any bugs to olaf.matthes at gmx.de!

--- NEW FILE: LICENSE ---
		    GNU GENERAL PUBLIC LICENSE
		       Version 2, June 1991

 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

			    Preamble
 
  The licenses for most software are designed to take away your
freedom to share and change it.  By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users.  This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it.  (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.)  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.

  To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have.  You must make sure that they, too, receive or can get the
source code.  And you must show them these terms so they know their
rights.

  We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.

  Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software.  If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.

  Finally, any free program is threatened constantly by software
patents.  We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary.  To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.

  The precise terms and conditions for copying, distribution and
modification follow.


		    GNU GENERAL PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License.  The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language.  (Hereinafter, translation is included without limitation in
the term "modification".)  Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope.  The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.

  1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.

You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.

  2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

    a) You must cause the modified files to carry prominent notices
    stating that you changed the files and the date of any change.

    b) You must cause any work that you distribute or publish, that in
    whole or in part contains or is derived from the Program or any
    part thereof, to be licensed as a whole at no charge to all third
    parties under the terms of this License.

    c) If the modified program normally reads commands interactively
    when run, you must cause it, when started running for such
    interactive use in the most ordinary way, to print or display an
    announcement including an appropriate copyright notice and a
    notice that there is no warranty (or else, saying that you provide
    a warranty) and that users may redistribute the program under
    these conditions, and telling the user how to view a copy of this
    License.  (Exception: if the Program itself is interactive but
    does not normally print such an announcement, your work based on
    the Program is not required to print an announcement.)


These requirements apply to the modified work as a whole.  If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works.  But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.

Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.

In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

  3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:

    a) Accompany it with the complete corresponding machine-readable
    source code, which must be distributed under the terms of Sections
    1 and 2 above on a medium customarily used for software interchange; or,

    b) Accompany it with a written offer, valid for at least three
    years, to give any third party, for a charge no more than your
    cost of physically performing source distribution, a complete
    machine-readable copy of the corresponding source code, to be
    distributed under the terms of Sections 1 and 2 above on a medium
    customarily used for software interchange; or,

    c) Accompany it with the information you received as to the offer
    to distribute corresponding source code.  (This alternative is
    allowed only for noncommercial distribution and only if you
    received the program in object code or executable form with such
    an offer, in accord with Subsection b above.)

The source code for a work means the preferred form of the work for
making modifications to it.  For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable.  However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.


  4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License.  Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.

  5. You are not required to accept this License, since you have not
signed it.  However, nothing else grants you permission to modify or
distribute the Program or its derivative works.  These actions are
prohibited by law if you do not accept this License.  Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.

  6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions.  You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.

  7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all.  For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.

If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.

It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices.  Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.


  8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded.  In such case, this License incorporates
the limitation as if written in the body of this License.

  9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number.  If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation.  If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

  10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission.  For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this.  Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

			    NO WARRANTY

  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

		     END OF TERMS AND CONDITIONS


	    How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) 19yy  <name of author>

    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


Also add information on how to contact you by electronic and paper mail.

If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:

    Gnomovision version 69, Copyright (C) 19yy name of author
    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.

You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary.  Here is a sample; alter the names:

  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  `Gnomovision' (which makes passes at compilers) written by James Hacker.

  <signature of Ty Coon>, 1 April 1989
  Ty Coon, President of Vice

This General Public License does not permit incorporating your program into
proprietary programs.  If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library.  If this is what you want to do, use the GNU Library General
Public License instead of this License.


--- NEW FILE: makefile ---
NAME=maxlib
CSYM=maxlib

current: pd_irix6

# ----------------------- NT -----------------------

pd_nt: $(NAME).dll

.SUFFIXES: .dll

# define PD_0_36 to compilie with pd0.36 and below
PDNTCFLAGS = /W3 /WX /MD /O2 /G6 /DNT /DPD /DPD_0_36 /DMAXLIB /nologo
VC="C:\Programme\Microsoft Visual Studio\VC98"

PDNTINCLUDE = /I. /Ic:\pd\tcl\include /Ic:\pd\src /I$(VC)\include /Iinclude

PDNTLDIR = $(VC)\Lib
PDNTLIB = $(PDNTLDIR)\msvcrt.lib \
	$(PDNTLDIR)\oldnames.lib \
	$(PDNTLDIR)\kernel32.lib \
	$(PDNTLDIR)\user32.lib \
	$(PDNTLDIR)\uuid.lib \
	$(PDNTLDIR)\ws2_32.lib \
	$(PDNTLDIR)\pthreadVC.lib \
	c:\pd\bin\pd.lib
        
PDNTEXTERNALS = borax.obj divide.obj ignore.obj match.obj pitch.obj speedlim.obj \
                minus.obj plus.obj multi.obj average.obj chord.obj score.obj \
                divmod.obj pulse.obj fifo.obj lifo.obj iso.obj dist.obj \
                step.obj netdist.obj beat.obj rhythm.obj history.obj netrec.obj \
                scale.obj delta.obj velocity.obj listfunnel.obj tilt.obj \
                gestalt.obj temperature.obj arbran.obj beta.obj bilex.obj \
                cauchy.obj expo.obj gauss.obj linear.obj poisson.obj triang.obj \
                weibull.obj netserver.obj netclient.obj nroute.obj remote.obj \
                edge.obj subst.obj pong.obj mlife.obj limit.obj unroute.obj \
                urn.obj split.obj wrap.obj rewrap.obj timebang.obj sync.obj \
		listfifo.obj arraycopy.obj allow.obj deny.obj nchange.obj

.c.dll:
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\allow.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\arbran.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\arraycopy.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\average.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\beat.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\beta.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\bilex.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\borax.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\cauchy.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\chord.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\delta.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\deny.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\dist.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\divide.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\divmod.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\edge.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\expo.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\fifo.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\gauss.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\gestalt.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\history.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\ignore.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\iso.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\linear.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\listfifo.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\listfunnel.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\lifo.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\limit.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\match.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\minus.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\mlife.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\multi.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\nchange.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\netclient.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\netdist.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\netrec.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\netserver.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\nroute.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\pitch.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\plus.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\poisson.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\pong.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\pulse.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\remote.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\rewrap.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\rhythm.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\scale.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\score.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\speedlim.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\split.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\step.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\subst.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\sync.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\temperature.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\tilt.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\timebang.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\triang.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\unroute.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\urn.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\velocity.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\weibull.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\wrap.c
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c
	link /dll /export:$(CSYM)_setup $*.obj $(PDNTEXTERNALS) $(PDNTLIB)


# ----------------------- IRIX 6.5 -----------------------

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 -r12000 -shared

SGIINCLUDE =  -I../../src

SGIGCFLAGS = -mabi=n32 -DPD -DMAXLIB -DUNIX -DIRIX -DN32 -O3 -funroll-loops -fomit-frame-pointer \
    -Wall -W -Wshadow -Wstrict-prototypes \
    -Wno-unused -Wno-parentheses -Wno-switch -mips4

SGIEXTERNALS = borax.o ignore.o match.o pitch.o speedlim.o \
                 plus.o minus.o divide.o multi.o average.o chord.o \
                 score.o divmod.o pulse.o fifo.o lifo.o iso.o dist.o \
                 remote.o step.o netdist.o beat.o rhythm.o history.o \
                 netrec.o scale.o delta.o velocity.o mlife.o subst.o \
                 listfunnel.o tilt.o gestalt.o temperature.o arbran.o \
                 beta.o bilex.o cauchy.o expo.o gauss.o linear.o poisson.o \
                 triang.o weibull.o netserver.o netclient.o nroute.o \
                 edge.o pong.o limit.o unroute.o urn.o split.o wrap.o \
                 rewrap.o timebang.o sync.o listfifo.o arraycopy.o \
		 allow.o deny.o nchange.o

.c.pd_irix6:
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/allow.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/arbran.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/arraycopy.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/average.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/beat.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/beta.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/bilex.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/borax.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/cauchy.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/chord.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/delta.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/deny.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/dist.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/divide.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/divmod.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/edge.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/expo.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/fifo.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/gauss.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/gestalt.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/history.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/ignore.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/iso.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/lifo.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/limit.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/linear.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/listfifo.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/listfunnel.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/match.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/minus.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/mlife.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/multi.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/nchange.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/netclient.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/netdist.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/netrec.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/netserver.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/nroute.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/plus.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/pong.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/poisson.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/pulse.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/pitch.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/remote.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/rewrap.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/rhythm.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/scale.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/score.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/speedlim.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/split.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/step.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/subst.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/sync.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/temperature.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/tilt.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/timebang.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/triang.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/unroute.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/urn.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/velocity.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/weibull.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c src/wrap.c
	gcc $(SGIGCFLAGS) $(SGIINCLUDE) -c $*.c
	ld -n32 -IPA -shared -rdata_shared -o $*.pd_irix6 $*.o $(SGIEXTERNALS)
	rm $*.o

# ----------------------- Mac OS X (Darwin) -----------------------


pd_darwin: $(NAME).pd_darwin

.SUFFIXES: .pd_darwin

DARWINCFLAGS = -DPD -DMAXLIB -DUNIX -DMACOSX -O2 \
    -Wall -W -Wshadow -Wstrict-prototypes \
    -Wno-unused -Wno-parentheses -Wno-switch

# where is your m_pd.h ???
DARWININCLUDE =  -I../../src -I../../obj

DARWINEXTERNALS = borax.o ignore.o match.o pitch.o speedlim.o \
                  plus.o minus.o divide.o multi.o average.o chord.o \
                  score.o divmod.o pulse.o fifo.o lifo.o iso.o dist.o \
                  remote.o step.o netdist.o beat.o rhythm.o history.o \
                  netrec.o scale.o delta.o velocity.o mlife.o subst.o \
                  listfunnel.o tilt.o gestalt.o temperature.o arbran.o \
                  beta.o bilex.o cauchy.o expo.o gauss.o linear.o poisson.o \
                  triang.o weibull.o netserver.o netclient.o nroute.o \
                  edge.o pong.o limit.o unroute.o urn.o split.o wrap.o \
                  rewrap.o timebang.o sync.o listfifo.o arraycopy.o \
		  allow.o deny.o nchange.o

.c.pd_darwin:
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/allow.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/arbran.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/arraycopy.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/average.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/beat.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/beta.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/bilex.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/borax.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/cauchy.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/chord.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/delta.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/deny.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/dist.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/divide.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/divmod.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/edge.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/expo.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/fifo.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/gauss.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/gestalt.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/history.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/ignore.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/iso.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/lifo.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/limit.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/linear.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/listfifo.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/listfunnel.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/match.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/minus.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/mlife.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/multi.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/nchange.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/netclient.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/netdist.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/netrec.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/netserver.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/nroute.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/plus.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/poisson.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/pong.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/pulse.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/pitch.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/remote.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/rewrap.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/rhythm.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/scale.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/score.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/speedlim.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/weibull.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/split.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/step.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/subst.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/sync.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/temperature.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/tilt.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/timebang.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/triang.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/unroute.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/urn.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/velocity.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/weibull.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/wrap.c
	cc $(DARWINCFLAGS) $(DARWININCLUDE) -c $*.c 
	cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o $(DARWINEXTERNALS)
	rm -f $*.o ../$*.pd_darwin
	ln -s $*/$*.pd_darwin ..

# ----------------------- LINUX i386 -----------------------

pd_linux: $(NAME).pd_linux

.SUFFIXES: .pd_linux

LINUXCFLAGS = -DPD -DMAXLIB -DUNIX -O2 -funroll-loops -fomit-frame-pointer \
    -Wall -W -Wshadow \
    -Wno-unused -Wno-parentheses -Wno-switch

# where is your m_pd.h ???
LINUXINCLUDE =  -I/usr/local/include -I./include

LINUXEXTERNALS = borax.o ignore.o match.o pitch.o speedlim.o \
                 plus.o minus.o divide.o multi.o average.o chord.o \
                 score.o divmod.o pulse.o fifo.o lifo.o iso.o dist.o \
                 remote.o step.o netdist.o beat.o rhythm.o history.o \
                 netrec.o scale.o delta.o velocity.o mlife.o subst.o \
                 listfunnel.o tilt.o gestalt.o temperature.o arbran.o \
                 beta.o bilex.o cauchy.o expo.o gauss.o linear.o poisson.o \
                 triang.o weibull.o netserver.o netclient.o nroute.o \
                 edge.o pong.o limit.o unroute.o urn.o split.o wrap.o \
                 rewrap.o timebang.o sync.o listfifo.o arraycopy.o \
		 allow.o deny.o nchange.o

.c.pd_linux:
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/allow.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/arbran.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/arraycopy.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/average.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/beat.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/beta.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/bilex.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/borax.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/cauchy.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/chord.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/delta.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/deny.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/dist.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/divide.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/divmod.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/edge.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/expo.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/fifo.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/gauss.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/gestalt.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/history.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/ignore.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/iso.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/lifo.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/limit.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/linear.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/listfifo.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/listfunnel.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/match.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/minus.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/mlife.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/multi.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/nchange.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/netclient.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/netdist.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/netrec.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/netserver.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/nroute.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/plus.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/pong.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/poisson.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/pulse.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/pitch.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/remote.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/rewrap.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/rhythm.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/scale.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/score.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/speedlim.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/split.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/step.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/subst.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/sync.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/temperature.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/tilt.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/timebang.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/triang.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/unroute.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/urn.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/velocity.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/weibull.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/wrap.c
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -c $*.c
	ld -export_dynamic  -shared -o $*.pd_linux $*.o $(LINUXEXTERNALS) -lc
	strip --strip-unneeded $*.pd_linux

# ----------------------------------------------------------

PDDIR=/usr/local/lib/pd

install:
	install -d $(PDDIR)/doc/5.reference/maxlib
	cp help/help-*.pd $(PDDIR)/doc/5.reference/maxlib

clean:
	rm -f *.o *.pd_* so_locations

--- NEW FILE: HISTORY ---
version history of maxlib library for pure-data

v 1.5.2 (17. december 2003):
- modified netclient for not to drop received data: use of syspollfn
  instead of clock to poll for incoming data, circular recv buffer

v 1.5 (18. october 2003):
- added some usefull features to arraycopy (i.e. copying just parts of
  an array and copying to specified position in destination array)
- new object: nchange
- IRIX 6.5 port (for GCC 3.3)
- OS X binary (Jaguar 10.2.6)

v 1.4 (22. may 2003):
- updated sources to compile with Pd0.37-test4
- new object: arraycopy

v 1.3 (12. april 2003):
- new objects: sync listfifo
- all setup routines renamed to maxlib_<object>_setup() to avoid name
  clashes, old names still work via class_addcreator()
- some improvements for the help files

v 1.2 (30. january 2003):
- new objects: unroute urn split wrap rewrap timebang
- another fix for the makefile
- fixed a bug in netserver (sockets remained open when netserver closed) 
- added a 'prepend' option (with additional creation argument) to remote,
  patch was supplied by Maurizio Umberto Puxeddu

v 1.1b2 (23. oktober 2002):
- corrected two small bugs in the makefile (linux only!), thanks to 
  Hans-Christoph Steiner

v 1.1b (12. september 2002):
- new object: limit
- match and speedlim have been replaced with the objects from cyclone library
- deleted the (unwanted) debugging printout from nroute

v 1.1 (26. august 2002):
- new objects: nroute, pong, edge
- arbran 0.1b now allows to (re-)set the arrays dynamically
- match 0.3 now matches any type of data (floats, lists, symbols, anything)
- scale 0.2 allows to dynamically change the creation arguments and to choose
  between linear (default) and exponential scale
- MSVC++ workspace contains configuration for Intel Compiler with Pentium 4 
  optimizations ("maxlib - Win32 Intel")
- makefile and binary release for Mac OS X (10.1.5)
- BUG FIX: corrected path to helpfiles in rand objects
- BUG FIX: corrected makefile to work under Linux again

v 1.0 (9th august 2002):
- new objects: netserver, netclient, arbran, beta, bilex, cauchy, expo, 
  gauss, linear, poisson, triang, weibull
- the help patches now live in doc/5.reference/maxlib, thanks to 
  Frank Barknecht for suggesting that and for modifying the sources

v 0.9 (25th july 2002):
- new objects: tilt gestalt temperature

v 0.8b (21st july 2002):
- now compiles on Linux, thanks to Martin Pi
- new objects: listfunnel

v 0.8 (4th july 2002):
- new objects: history netrec scale delta velocity
- some small changes to speedlim

v 0.7 (24th june 2002):
- fixed a bug in average, thanks to João Miguel Pais
- new chord algorhythm: supports up to 67 chord types now

v 0.6 (7th june 2002):
- added objects: beat rhythm

v 0.5 (28th mai 2002):
- added objects: netdist mlife subst
- netdist uses the pthreads-win32 library for POSIX multithreading
  under NT, thus at least pd0.35-test17 is needed under NT
- made a MSVC++ 6.0 project file

v 0.4 (16th mai 2002):
- match now also takes lists of floats
- added objects: dist remote step

v 0.3b (14th mai 2002):
- fixed a zero-division bug in pulse, thanks to Frank Barknecht

v 0.3 (13th mai 2002):
- added objects: divmod, fifo, iso, lifo, pulse
- made divide, minus, multi & plus 'multi-inlet-ready'

v 0.2 (7th mai 2002):
- added objects: average, chord, score

v 0.1b (24th apr. 2002):
- added objects: divide, minus, multi, plus

v 0.1a (15th apr. 2002, first public release):
- included objects: borax, ignore, match, pitch, speedlim





More information about the Pd-cvs mailing list