diff options
-rw-r--r-- | LICENSE.txt (renamed from LICENSE) | 0 | ||||
-rw-r--r-- | Makefile | 284 | ||||
-rw-r--r-- | README.txt (renamed from README) | 0 | ||||
-rw-r--r-- | allow-help.pd (renamed from help/allow-help.pd) | 0 | ||||
-rw-r--r-- | allow.c (renamed from src/allow.c) | 0 | ||||
-rw-r--r-- | arbran-help.pd (renamed from help/arbran-help.pd) | 0 | ||||
-rw-r--r-- | arbran.c (renamed from src/arbran.c) | 0 | ||||
-rw-r--r-- | arraycopy-help.pd (renamed from help/arraycopy-help.pd) | 0 | ||||
-rw-r--r-- | arraycopy.c (renamed from src/arraycopy.c) | 0 | ||||
-rw-r--r-- | automata.txt (renamed from help/automata.txt) | 0 | ||||
-rw-r--r-- | average-help.pd (renamed from help/average-help.pd) | 0 | ||||
-rw-r--r-- | average.c (renamed from src/average.c) | 0 | ||||
-rw-r--r-- | beat-help.pd (renamed from help/beat-help.pd) | 0 | ||||
-rw-r--r-- | beat.c (renamed from src/beat.c) | 0 | ||||
-rw-r--r-- | beta-help.pd (renamed from help/beta-help.pd) | 0 | ||||
-rw-r--r-- | beta.c (renamed from src/beta.c) | 0 | ||||
-rw-r--r-- | bilex-help.pd (renamed from help/bilex-help.pd) | 0 | ||||
-rw-r--r-- | bilex.c (renamed from src/bilex.c) | 0 | ||||
-rw-r--r-- | borax-help.pd (renamed from help/borax-help.pd) | 0 | ||||
-rw-r--r-- | borax.c (renamed from src/borax.c) | 0 | ||||
-rw-r--r-- | cauchy-help.pd (renamed from help/cauchy-help.pd) | 0 | ||||
-rw-r--r-- | cauchy.c (renamed from src/cauchy.c) | 0 | ||||
-rw-r--r-- | chord-help.pd (renamed from help/chord-help.pd) | 0 | ||||
-rw-r--r-- | chord.c (renamed from src/chord.c) | 0 | ||||
-rw-r--r-- | delta-help.pd (renamed from help/delta-help.pd) | 0 | ||||
-rw-r--r-- | delta.c (renamed from src/delta.c) | 0 | ||||
-rw-r--r-- | deny-help.pd (renamed from help/deny-help.pd) | 0 | ||||
-rw-r--r-- | deny.c (renamed from src/deny.c) | 0 | ||||
-rw-r--r-- | dist-help.pd (renamed from help/dist-help.pd) | 0 | ||||
-rw-r--r-- | dist.c (renamed from src/dist.c) | 0 | ||||
-rw-r--r-- | divide-help.pd (renamed from help/divide-help.pd) | 0 | ||||
-rw-r--r-- | divide.c (renamed from src/divide.c) | 0 | ||||
-rw-r--r-- | divmod-help.pd (renamed from help/divmod-help.pd) | 0 | ||||
-rw-r--r-- | divmod.c (renamed from src/divmod.c) | 0 | ||||
-rw-r--r-- | edge-help.pd (renamed from help/edge-help.pd) | 0 | ||||
-rw-r--r-- | edge.c (renamed from src/edge.c) | 0 | ||||
-rw-r--r-- | examplescore.txt (renamed from help/examplescore.txt) | 0 | ||||
-rw-r--r-- | expo-help.pd (renamed from help/expo-help.pd) | 0 | ||||
-rw-r--r-- | expo.c (renamed from src/expo.c) | 0 | ||||
-rw-r--r-- | fifo-help.pd (renamed from help/fifo-help.pd) | 0 | ||||
-rw-r--r-- | fifo.c (renamed from src/fifo.c) | 0 | ||||
-rw-r--r-- | gauss-help.pd (renamed from help/gauss-help.pd) | 0 | ||||
-rw-r--r-- | gauss.c (renamed from src/gauss.c) | 0 | ||||
-rw-r--r-- | gestalt-help.pd (renamed from help/gestalt-help.pd) | 0 | ||||
-rw-r--r-- | gestalt.c (renamed from src/gestalt.c) | 0 | ||||
-rw-r--r-- | history-help.pd (renamed from help/history-help.pd) | 0 | ||||
-rw-r--r-- | history.c (renamed from src/history.c) | 0 | ||||
-rw-r--r-- | ignore-help.pd (renamed from help/ignore-help.pd) | 0 | ||||
-rw-r--r-- | ignore.c (renamed from src/ignore.c) | 0 | ||||
-rw-r--r-- | install.bat | 12 | ||||
-rw-r--r-- | iso-help.pd (renamed from help/iso-help.pd) | 0 | ||||
-rw-r--r-- | iso.c (renamed from src/iso.c) | 0 | ||||
-rw-r--r-- | lifo-help.pd (renamed from help/lifo-help.pd) | 0 | ||||
-rw-r--r-- | lifo.c (renamed from src/lifo.c) | 0 | ||||
-rw-r--r-- | limit-help.pd (renamed from help/limit-help.pd) | 0 | ||||
-rw-r--r-- | limit.c (renamed from src/limit.c) | 0 | ||||
-rw-r--r-- | linear-help.pd (renamed from help/linear-help.pd) | 0 | ||||
-rw-r--r-- | linear.c (renamed from src/linear.c) | 0 | ||||
-rw-r--r-- | listfifo-help.pd (renamed from help/listfifo-help.pd) | 0 | ||||
-rw-r--r-- | listfifo.c (renamed from src/listfifo.c) | 0 | ||||
-rw-r--r-- | listfunnel-help.pd (renamed from help/listfunnel-help.pd) | 0 | ||||
-rw-r--r-- | listfunnel.c (renamed from src/listfunnel.c) | 0 | ||||
-rw-r--r-- | makefile | 398 | ||||
-rw-r--r-- | match-help.pd (renamed from help/match-help.pd) | 0 | ||||
-rw-r--r-- | match.c (renamed from src/match.c) | 0 | ||||
-rw-r--r-- | maxlib-help.pd (renamed from help/maxlib-help.pd) | 0 | ||||
-rw-r--r-- | maxlib-meta.pd | 8 | ||||
-rw-r--r-- | maxlib.c | 2 | ||||
-rw-r--r-- | minus-help.pd (renamed from help/minus-help.pd) | 0 | ||||
-rw-r--r-- | minus.c (renamed from src/minus.c) | 0 | ||||
-rw-r--r-- | mlife-help.pd (renamed from help/mlife-help.pd) | 0 | ||||
-rw-r--r-- | mlife.c (renamed from src/mlife.c) | 0 | ||||
-rw-r--r-- | multi-help.pd (renamed from help/multi-help.pd) | 0 | ||||
-rw-r--r-- | multi.c (renamed from src/multi.c) | 0 | ||||
-rw-r--r-- | nchange-help.pd (renamed from help/nchange-help.pd) | 0 | ||||
-rw-r--r-- | nchange.c (renamed from src/nchange.c) | 0 | ||||
-rw-r--r-- | netclient-help.pd (renamed from help/netclient-help.pd) | 0 | ||||
-rw-r--r-- | netclient.c (renamed from src/netclient.c) | 0 | ||||
-rw-r--r-- | netdist-help.pd (renamed from help/netdist-help.pd) | 0 | ||||
-rw-r--r-- | netdist.c (renamed from src/netdist.c) | 0 | ||||
-rw-r--r-- | netrec-help.pd (renamed from help/netrec-help.pd) | 0 | ||||
-rw-r--r-- | netrec.c (renamed from src/netrec.c) | 0 | ||||
-rw-r--r-- | netserver-help.pd (renamed from help/netserver-help.pd) | 0 | ||||
-rw-r--r-- | netserver.c (renamed from src/netserver.c) | 0 | ||||
-rw-r--r-- | nroute-help.pd (renamed from help/nroute-help.pd) | 0 | ||||
-rw-r--r-- | nroute.c (renamed from src/nroute.c) | 0 | ||||
-rw-r--r-- | pitch-help.pd (renamed from help/pitch-help.pd) | 0 | ||||
-rw-r--r-- | pitch.c (renamed from src/pitch.c) | 0 | ||||
-rw-r--r-- | plus-help.pd (renamed from help/plus-help.pd) | 0 | ||||
-rw-r--r-- | plus.c (renamed from src/plus.c) | 0 | ||||
-rw-r--r-- | poisson-help.pd (renamed from help/poisson-help.pd) | 0 | ||||
-rw-r--r-- | poisson.c (renamed from src/poisson.c) | 0 | ||||
-rw-r--r-- | pong-help.pd | 5 | ||||
-rw-r--r-- | pong.c (renamed from src/pong.c) | 0 | ||||
-rw-r--r-- | pulse-help.pd (renamed from help/pulse-help.pd) | 0 | ||||
-rw-r--r-- | pulse.c (renamed from src/pulse.c) | 0 | ||||
-rw-r--r-- | remote-help.pd (renamed from help/remote-help.pd) | 0 | ||||
-rw-r--r-- | remote.c (renamed from src/remote.c) | 0 | ||||
-rw-r--r-- | rewrap-help.pd (renamed from help/rewrap-help.pd) | 0 | ||||
-rw-r--r-- | rewrap.c (renamed from src/rewrap.c) | 0 | ||||
-rw-r--r-- | rhythm-help.pd (renamed from help/rhythm-help.pd) | 0 | ||||
-rw-r--r-- | rhythm.c (renamed from src/rhythm.c) | 0 | ||||
-rw-r--r-- | scale-help.pd (renamed from help/scale-help.pd) | 0 | ||||
-rw-r--r-- | scale.c (renamed from src/scale.c) | 0 | ||||
-rw-r--r-- | score-help.pd (renamed from help/score-help.pd) | 0 | ||||
-rw-r--r-- | score.c (renamed from src/score.c) | 0 | ||||
-rw-r--r-- | speedlim-help.pd (renamed from help/speedlim-help.pd) | 0 | ||||
-rw-r--r-- | speedlim.c (renamed from src/speedlim.c) | 0 | ||||
-rw-r--r-- | split-help.pd (renamed from help/split-help.pd) | 0 | ||||
-rw-r--r-- | split.c (renamed from src/split.c) | 0 | ||||
-rw-r--r-- | step-help.pd (renamed from help/step-help.pd) | 0 | ||||
-rw-r--r-- | step.c (renamed from src/step.c) | 0 | ||||
-rw-r--r-- | subst-help.pd (renamed from help/subst-help.pd) | 0 | ||||
-rw-r--r-- | subst.c (renamed from src/subst.c) | 0 | ||||
-rw-r--r-- | sync-help.pd (renamed from help/sync-help.pd) | 0 | ||||
-rw-r--r-- | sync.c (renamed from src/sync.c) | 0 | ||||
-rw-r--r-- | temperature-help.pd (renamed from help/temperature-help.pd) | 0 | ||||
-rw-r--r-- | temperature.c (renamed from src/temperature.c) | 0 | ||||
-rw-r--r-- | tilt-help.pd (renamed from help/tilt-help.pd) | 0 | ||||
-rw-r--r-- | tilt.c (renamed from src/tilt.c) | 0 | ||||
-rw-r--r-- | timebang-help.pd (renamed from help/timebang-help.pd) | 0 | ||||
-rw-r--r-- | timebang.c (renamed from src/timebang.c) | 0 | ||||
-rw-r--r-- | triang-help.pd (renamed from help/triang-help.pd) | 0 | ||||
-rw-r--r-- | triang.c (renamed from src/triang.c) | 0 | ||||
-rw-r--r-- | unroute-help.pd (renamed from help/unroute-help.pd) | 0 | ||||
-rw-r--r-- | unroute.c (renamed from src/unroute.c) | 0 | ||||
-rw-r--r-- | urn-help.pd (renamed from help/urn-help.pd) | 0 | ||||
-rw-r--r-- | urn.c (renamed from src/urn.c) | 0 | ||||
-rw-r--r-- | velocity-help.pd (renamed from help/velocity-help.pd) | 0 | ||||
-rw-r--r-- | velocity.c (renamed from src/velocity.c) | 0 | ||||
-rw-r--r-- | weibull-help.pd (renamed from help/weibull-help.pd) | 0 | ||||
-rw-r--r-- | weibull.c (renamed from src/weibull.c) | 0 | ||||
-rw-r--r-- | wrap-help.pd (renamed from help/wrap-help.pd) | 0 | ||||
-rw-r--r-- | wrap.c (renamed from src/wrap.c) | 0 |
134 files changed, 298 insertions, 411 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5e14f46 --- /dev/null +++ b/Makefile @@ -0,0 +1,284 @@ +## Pd library template version 1.0 +# For instructions on how to use this template, see: +# http://puredata.info/docs/developer/MakefileTemplate +LIBRARY_NAME = maxlib + +# add your .c source files to the SOURCES variable, help files will be +# included automatically +SOURCES = allow.c arbran.c arraycopy.c average.c beat.c beta.c bilex.c borax.c cauchy.c chord.c delta.c deny.c dist.c divide.c divmod.c edge.c expo.c fifo.c gauss.c gestalt.c history.c ignore.c iso.c lifo.c limit.c linear.c listfifo.c listfunnel.c match.c minus.c mlife.c multi.c nchange.c netclient.c netdist.c netrec.c netserver.c nroute.c pitch.c plus.c poisson.c pong.c pulse.c remote.c rewrap.c rhythm.c scale.c score.c speedlim.c split.c step.c subst.c sync.c temperature.c tilt.c timebang.c triang.c unroute.c urn.c velocity.c weibull.c wrap.c + +# For objects that only build on certain platforms, add those to the SOURCES +# line for the right platforms. +SOURCES_android = +SOURCES_cygwin = +SOURCES_macosx = +SOURCES_iphoneos = +SOURCES_linux = +SOURCES_windows = + +# list all pd objects (i.e. myobject.pd) files here, and their helpfiles will +# be included automatically +PDOBJECTS = + +# example patches and related files, in the 'examples' subfolder +EXAMPLES = + +# manuals and related files, in the 'manual' subfolder +MANUAL = + +# if you want to include any other files in the source and binary tarballs, +# list them here. This can be anything from header files, example patches, +# documentation, etc. README.txt and LICENSE.txt are required and therefore +# automatically included +EXTRA_DIST = HISTORY automata.txt examplescore.txt + + + +#------------------------------------------------------------------------------# +# +# you shouldn't need to edit anything below here, if we did it right :) +# +#------------------------------------------------------------------------------# + +# get library version from meta file +LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd) + +# where Pd lives +PD_PATH = ../../pd +# where to install the library +prefix = /usr/local +libdir = $(prefix)/lib +pkglibdir = $(libdir)/pd-externals +objectsdir = $(pkglibdir) + + +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -m 644 +INSTALL_DIR = $(INSTALL) -p -m 755 -d + +CFLAGS = -DPD -I$(PD_PATH)/src -Wall -W -g +LDFLAGS = +LIBS = +ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx) \ + $(SOURCES_iphoneos) $(SOURCES_linux) $(SOURCES_windows) + +UNAME := $(shell uname -s) +ifeq ($(UNAME),Darwin) + CPU := $(shell uname -p) + ifeq ($(CPU),arm) # iPhone/iPod Touch + SOURCES += $(SOURCES_iphoneos) + EXTENSION = pd_darwin + OS = iphoneos + IPHONE_BASE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin + CC=$(IPHONE_BASE)/gcc + CPP=$(IPHONE_BASE)/cpp + CXX=$(IPHONE_BASE)/g++ + ISYSROOT = -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk + IPHONE_CFLAGS = -miphoneos-version-min=3.0 $(ISYSROOT) -arch armv6 + OPT_CFLAGS = -fast -funroll-loops -fomit-frame-pointer + CFLAGS := $(IPHONE_CFLAGS) $(OPT_CFLAGS) $(CFLAGS) \ + -I/Applications/Pd-extended.app/Contents/Resources/include + LDFLAGS += -arch armv6 -bundle -undefined dynamic_lookup $(ISYSROOT) + LIBS += -lc + STRIP = strip -x + DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION) + DISTBINDIR=$(DISTDIR)-$(OS) + else # Mac OS X + SOURCES += $(SOURCES_macosx) + EXTENSION = pd_darwin + OS = macosx + OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast +# build universal 32-bit on 10.4 and 32/64 on newer + ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) + FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 + else + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 + SOURCES += $(SOURCES_iphoneos) + endif + CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ + -I/Applications/Pd-extended.app/Contents/Resources/include + LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib + # if the 'pd' binary exists, check the linking against it to aid with stripping + LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd) + LIBS += -lc + STRIP = strip -x + DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION) + DISTBINDIR=$(DISTDIR)-$(OS) +# install into ~/Library/Pd on Mac OS X since /usr/local isn't used much + pkglibdir=$(HOME)/Library/Pd + endif +endif +ifeq ($(UNAME),Linux) + SOURCES += $(SOURCES_linux) + EXTENSION = pd_linux + OS = linux + OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer + CFLAGS += -fPIC + LDFLAGS += -Wl,--export-dynamic -shared -fPIC + LIBS += -lc + STRIP = strip --strip-unneeded -R .note -R .comment + DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION) + DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m) +endif +ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME))) + SOURCES += $(SOURCES_cygwin) + EXTENSION = dll + OS = cygwin + OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer + CFLAGS += + LDFLAGS += -Wl,--export-dynamic -shared -L$(PD_PATH)/src + LIBS += -lc -lpd + STRIP = strip --strip-unneeded -R .note -R .comment + DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION) + DISTBINDIR=$(DISTDIR)-$(OS) +endif +ifeq (MINGW,$(findstring MINGW,$(UNAME))) + SOURCES += $(SOURCES_windows) + EXTENSION = dll + OS = windows + OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -march=i686 -mtune=pentium4 + CFLAGS += -mms-bitfields + LDFLAGS += -s -shared -Wl,--enable-auto-import + LIBS += -L$(PD_PATH)/src -L$(PD_PATH)/bin -L$(PD_PATH)/obj -lpd -lwsock32 -lkernel32 -luser32 -lgdi32 + STRIP = strip --strip-unneeded -R .note -R .comment + DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION) + DISTBINDIR=$(DISTDIR)-$(OS) +endif + +CFLAGS += $(OPT_CFLAGS) + + +.PHONY = install libdir_install single_install install-doc install-exec install-examples install-manual clean dist etags + +all: $(SOURCES:.c=.$(EXTENSION)) + +%.o: %.c + $(CC) $(CFLAGS) -o "$*.o" -c "$*.c" + +%.$(EXTENSION): %.o + $(CC) $(LDFLAGS) -o "$*.$(EXTENSION)" "$*.o" $(LIBS) + chmod a-x "$*.$(EXTENSION)" + +# this links everything into a single binary file +$(LIBRARY_NAME): $(SOURCES:.c=.o) $(LIBRARY_NAME).o + $(CC) $(LDFLAGS) -o $(LIBRARY_NAME).$(EXTENSION) $(SOURCES:.c=.o) $(LIBRARY_NAME).o $(LIBS) + chmod a-x $(LIBRARY_NAME).$(EXTENSION) + + +install: libdir_install + +# The meta and help files are explicitly installed to make sure they are +# actually there. Those files are not optional, then need to be there. +libdir_install: $(SOURCES:.c=.$(EXTENSION)) install-doc install-examples install-manual + $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + $(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd \ + $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + test -z "$(strip $(SOURCES))" || (\ + $(INSTALL_FILE) $(SOURCES:.c=.$(EXTENSION)) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) && \ + $(STRIP) $(addprefix $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/,$(SOURCES:.c=.$(EXTENSION)))) + test -z "$(strip $(PDOBJECTS))" || \ + $(INSTALL_FILE) $(PDOBJECTS) \ + $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + +# install library linked as single binary +single_install: $(LIBRARY_NAME) install-doc install-exec + $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + $(INSTALL_FILE) $(LIBRARY_NAME).$(EXTENSION) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + $(STRIP) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/$(LIBRARY_NAME).$(EXTENSION) + +install-doc: + $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + test -z "$(strip $(SOURCES))" || \ + $(INSTALL_FILE) $(SOURCES:.c=-help.pd) \ + $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + test -z "$(strip $(PDOBJECTS))" || \ + $(INSTALL_FILE) $(PDOBJECTS:.pd=-help.pd) \ + $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) + $(INSTALL_FILE) README.txt $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/README.txt + $(INSTALL_FILE) LICENSE.txt $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/LICENSE.txt + +install-examples: + test -z "$(strip $(EXAMPLES))" || \ + $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/examples && \ + for file in $(EXAMPLES); do \ + $(INSTALL_FILE) examples/$$file $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/examples; \ + done + +install-manual: + test -z "$(strip $(MANUAL))" || \ + $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/manual && \ + for file in $(MANUAL); do \ + $(INSTALL_FILE) manual/$$file $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/manual; \ + done + + +clean: + -rm -f -- $(SOURCES:.c=.o) + -rm -f -- $(SOURCES:.c=.$(EXTENSION)) + -rm -f -- $(LIBRARY_NAME).o + -rm -f -- $(LIBRARY_NAME).$(EXTENSION) + +distclean: clean + -rm -f -- $(DISTBINDIR).tar.gz + -rm -rf -- $(DISTBINDIR) + -rm -f -- $(DISTDIR).tar.gz + -rm -rf -- $(DISTDIR) + + +$(DISTBINDIR): + $(INSTALL_DIR) $(DISTBINDIR) + +libdir: all $(DISTBINDIR) + $(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd $(DISTBINDIR) + $(INSTALL_FILE) $(SOURCES) $(DISTBINDIR) + $(INSTALL_FILE) $(SOURCES:.c=-help.pd) $(DISTBINDIR) + test -z "$(strip $(EXTRA_DIST))" || \ + $(INSTALL_FILE) $(EXTRA_DIST) $(DISTBINDIR) +# tar --exclude-vcs -czpf $(DISTBINDIR).tar.gz $(DISTBINDIR) + +$(DISTDIR): + $(INSTALL_DIR) $(DISTDIR) + +dist: $(DISTDIR) + $(INSTALL_FILE) Makefile $(DISTDIR) + $(INSTALL_FILE) README.txt $(DISTDIR) + $(INSTALL_FILE) LICENSE.txt $(DISTDIR) + $(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd $(DISTDIR) + test -z "$(strip $(ALLSOURCES))" || \ + $(INSTALL_FILE) $(ALLSOURCES) $(DISTDIR) + test -z "$(strip $(ALLSOURCES))" || \ + $(INSTALL_FILE) $(ALLSOURCES:.c=-help.pd) $(DISTDIR) + test -z "$(strip $(PDOBJECTS))" || \ + $(INSTALL_FILE) $(PDOBJECTS) $(DISTDIR) + test -z "$(strip $(PDOBJECTS))" || \ + $(INSTALL_FILE) $(PDOBJECTS:.pd=-help.pd) $(DISTDIR) + test -z "$(strip $(EXTRA_DIST))" || \ + $(INSTALL_FILE) $(EXTRA_DIST) $(DISTDIR) + test -z "$(strip $(EXAMPLES))" || \ + $(INSTALL_DIR) $(DISTDIR)/examples && \ + for file in $(EXAMPLES); do \ + $(INSTALL_FILE) examples/$$file $(DISTDIR)/examples; \ + done + test -z "$(strip $(MANUAL))" || \ + $(INSTALL_DIR) $(DISTDIR)/manual && \ + for file in $(MANUAL); do \ + $(INSTALL_FILE) manual/$$file $(DISTDIR)/manual; \ + done + tar --exclude-vcs -czpf $(DISTDIR).tar.gz $(DISTDIR) + + +etags: + etags *.h $(SOURCES) ../../pd/src/*.[ch] /usr/include/*.h /usr/include/*/*.h + +showsetup: + @echo "PD_PATH: $(PD_PATH)" + @echo "objectsdir: $(objectsdir)" + @echo "LIBRARY_NAME: $(LIBRARY_NAME)" + @echo "LIBRARY_VERSION: $(LIBRARY_VERSION)" + @echo "SOURCES: $(SOURCES)" + @echo "PDOBJECTS: $(PDOBJECTS)" + @echo "ALLSOURCES: $(ALLSOURCES)" + @echo "UNAME: $(UNAME)" + @echo "CPU: $(CPU)" + @echo "pkglibdir: $(pkglibdir)" + diff --git a/help/allow-help.pd b/allow-help.pd index 084d52f..084d52f 100644 --- a/help/allow-help.pd +++ b/allow-help.pd diff --git a/help/arbran-help.pd b/arbran-help.pd index 9153bf5..9153bf5 100644 --- a/help/arbran-help.pd +++ b/arbran-help.pd diff --git a/help/arraycopy-help.pd b/arraycopy-help.pd index 6963c69..6963c69 100644 --- a/help/arraycopy-help.pd +++ b/arraycopy-help.pd diff --git a/src/arraycopy.c b/arraycopy.c index ea5f61b..ea5f61b 100644 --- a/src/arraycopy.c +++ b/arraycopy.c diff --git a/help/automata.txt b/automata.txt index 3f5ff21..3f5ff21 100644 --- a/help/automata.txt +++ b/automata.txt diff --git a/help/average-help.pd b/average-help.pd index 6155716..6155716 100644 --- a/help/average-help.pd +++ b/average-help.pd diff --git a/src/average.c b/average.c index 2ce99ad..2ce99ad 100644 --- a/src/average.c +++ b/average.c diff --git a/help/beat-help.pd b/beat-help.pd index 55f85ef..55f85ef 100644 --- a/help/beat-help.pd +++ b/beat-help.pd diff --git a/help/beta-help.pd b/beta-help.pd index f4b9edf..f4b9edf 100644 --- a/help/beta-help.pd +++ b/beta-help.pd diff --git a/help/bilex-help.pd b/bilex-help.pd index 4e9961f..4e9961f 100644 --- a/help/bilex-help.pd +++ b/bilex-help.pd diff --git a/help/borax-help.pd b/borax-help.pd index a286a60..a286a60 100644 --- a/help/borax-help.pd +++ b/borax-help.pd diff --git a/help/cauchy-help.pd b/cauchy-help.pd index a7dd6f2..a7dd6f2 100644 --- a/help/cauchy-help.pd +++ b/cauchy-help.pd diff --git a/help/chord-help.pd b/chord-help.pd index a509840..a509840 100644 --- a/help/chord-help.pd +++ b/chord-help.pd diff --git a/help/delta-help.pd b/delta-help.pd index fa865e3..fa865e3 100644 --- a/help/delta-help.pd +++ b/delta-help.pd diff --git a/help/deny-help.pd b/deny-help.pd index 9ca4a29..9ca4a29 100644 --- a/help/deny-help.pd +++ b/deny-help.pd diff --git a/help/dist-help.pd b/dist-help.pd index 608283f..608283f 100644 --- a/help/dist-help.pd +++ b/dist-help.pd diff --git a/help/divide-help.pd b/divide-help.pd index a0aea04..a0aea04 100644 --- a/help/divide-help.pd +++ b/divide-help.pd diff --git a/help/divmod-help.pd b/divmod-help.pd index 5e0018b..5e0018b 100644 --- a/help/divmod-help.pd +++ b/divmod-help.pd diff --git a/help/edge-help.pd b/edge-help.pd index ce85dfb..ce85dfb 100644 --- a/help/edge-help.pd +++ b/edge-help.pd diff --git a/help/examplescore.txt b/examplescore.txt index 27002f1..27002f1 100644 --- a/help/examplescore.txt +++ b/examplescore.txt diff --git a/help/expo-help.pd b/expo-help.pd index 922cf4c..922cf4c 100644 --- a/help/expo-help.pd +++ b/expo-help.pd diff --git a/help/fifo-help.pd b/fifo-help.pd index 581a7b7..581a7b7 100644 --- a/help/fifo-help.pd +++ b/fifo-help.pd diff --git a/help/gauss-help.pd b/gauss-help.pd index c4dce4b..c4dce4b 100644 --- a/help/gauss-help.pd +++ b/gauss-help.pd diff --git a/help/gestalt-help.pd b/gestalt-help.pd index acf09cc..acf09cc 100644 --- a/help/gestalt-help.pd +++ b/gestalt-help.pd diff --git a/src/gestalt.c b/gestalt.c index 3155206..3155206 100644 --- a/src/gestalt.c +++ b/gestalt.c diff --git a/help/history-help.pd b/history-help.pd index acd1bc8..acd1bc8 100644 --- a/help/history-help.pd +++ b/history-help.pd diff --git a/src/history.c b/history.c index 97ff0e7..97ff0e7 100644 --- a/src/history.c +++ b/history.c diff --git a/help/ignore-help.pd b/ignore-help.pd index fc6314a..fc6314a 100644 --- a/help/ignore-help.pd +++ b/ignore-help.pd diff --git a/install.bat b/install.bat deleted file mode 100644 index 53c2db8..0000000 --- a/install.bat +++ /dev/null @@ -1,12 +0,0 @@ -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"
diff --git a/help/iso-help.pd b/iso-help.pd index 79559ab..79559ab 100644 --- a/help/iso-help.pd +++ b/iso-help.pd diff --git a/help/lifo-help.pd b/lifo-help.pd index c5ec758..c5ec758 100644 --- a/help/lifo-help.pd +++ b/lifo-help.pd diff --git a/help/limit-help.pd b/limit-help.pd index 4ee74da..4ee74da 100644 --- a/help/limit-help.pd +++ b/limit-help.pd diff --git a/help/linear-help.pd b/linear-help.pd index adcf043..adcf043 100644 --- a/help/linear-help.pd +++ b/linear-help.pd diff --git a/help/listfifo-help.pd b/listfifo-help.pd index a40a609..a40a609 100644 --- a/help/listfifo-help.pd +++ b/listfifo-help.pd diff --git a/src/listfifo.c b/listfifo.c index 4c6e93d..4c6e93d 100644 --- a/src/listfifo.c +++ b/listfifo.c diff --git a/help/listfunnel-help.pd b/listfunnel-help.pd index 2d309a8..2d309a8 100644 --- a/help/listfunnel-help.pd +++ b/listfunnel-help.pd diff --git a/src/listfunnel.c b/listfunnel.c index 0626057..0626057 100644 --- a/src/listfunnel.c +++ b/listfunnel.c diff --git a/makefile b/makefile deleted file mode 100644 index 0c63d77..0000000 --- a/makefile +++ /dev/null @@ -1,398 +0,0 @@ -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 diff --git a/help/match-help.pd b/match-help.pd index 8d2fbd7..8d2fbd7 100644 --- a/help/match-help.pd +++ b/match-help.pd diff --git a/help/maxlib-help.pd b/maxlib-help.pd index 4beb23d..4beb23d 100644 --- a/help/maxlib-help.pd +++ b/maxlib-help.pd diff --git a/maxlib-meta.pd b/maxlib-meta.pd new file mode 100644 index 0000000..0ae7945 --- /dev/null +++ b/maxlib-meta.pd @@ -0,0 +1,8 @@ +#N canvas 10 10 200 200 10; +#N canvas 20 20 420 300 META 0; +#X text 10 10 META this is a prototype of a libdir meta file; +#X text 10 30 NAME maxlib; +#X text 10 50 AUTHOR Olaf Matthes <olaf.matthes@gmx.de>; +#X text 10 70 LICENSE GNU GPL; +#X text 10 90 VERSION 1.5.3; +#X restore 10 10 pd META; @@ -22,7 +22,7 @@ /* */
/* ---------------------------------------------------------------------------- */
#ifndef VERSION
-#define VERSION "1.5.2"
+#define VERSION "1.5.3"
#endif
#include "m_pd.h"
diff --git a/help/minus-help.pd b/minus-help.pd index 64e45f3..64e45f3 100644 --- a/help/minus-help.pd +++ b/minus-help.pd diff --git a/help/mlife-help.pd b/mlife-help.pd index d12e1fc..d12e1fc 100644 --- a/help/mlife-help.pd +++ b/mlife-help.pd diff --git a/help/multi-help.pd b/multi-help.pd index 86e6a5c..86e6a5c 100644 --- a/help/multi-help.pd +++ b/multi-help.pd diff --git a/help/nchange-help.pd b/nchange-help.pd index cfcf00b..cfcf00b 100644 --- a/help/nchange-help.pd +++ b/nchange-help.pd diff --git a/src/nchange.c b/nchange.c index 57945b1..57945b1 100644 --- a/src/nchange.c +++ b/nchange.c diff --git a/help/netclient-help.pd b/netclient-help.pd index 46e5b52..46e5b52 100644 --- a/help/netclient-help.pd +++ b/netclient-help.pd diff --git a/src/netclient.c b/netclient.c index 3a024cd..3a024cd 100644 --- a/src/netclient.c +++ b/netclient.c diff --git a/help/netdist-help.pd b/netdist-help.pd index 84cd2e2..84cd2e2 100644 --- a/help/netdist-help.pd +++ b/netdist-help.pd diff --git a/src/netdist.c b/netdist.c index 866dc36..866dc36 100644 --- a/src/netdist.c +++ b/netdist.c diff --git a/help/netrec-help.pd b/netrec-help.pd index 80be695..80be695 100644 --- a/help/netrec-help.pd +++ b/netrec-help.pd diff --git a/help/netserver-help.pd b/netserver-help.pd index a849bd5..a849bd5 100644 --- a/help/netserver-help.pd +++ b/netserver-help.pd diff --git a/src/netserver.c b/netserver.c index 196d29f..196d29f 100644 --- a/src/netserver.c +++ b/netserver.c diff --git a/help/nroute-help.pd b/nroute-help.pd index 0831363..0831363 100644 --- a/help/nroute-help.pd +++ b/nroute-help.pd diff --git a/help/pitch-help.pd b/pitch-help.pd index 781fd4c..781fd4c 100644 --- a/help/pitch-help.pd +++ b/pitch-help.pd diff --git a/help/plus-help.pd b/plus-help.pd index 3a0e442..3a0e442 100644 --- a/help/plus-help.pd +++ b/plus-help.pd diff --git a/help/poisson-help.pd b/poisson-help.pd index ab6fe4b..ab6fe4b 100644 --- a/help/poisson-help.pd +++ b/poisson-help.pd diff --git a/src/poisson.c b/poisson.c index ce2e33b..ce2e33b 100644 --- a/src/poisson.c +++ b/poisson.c diff --git a/pong-help.pd b/pong-help.pd new file mode 100644 index 0000000..bfe788d --- /dev/null +++ b/pong-help.pd @@ -0,0 +1,5 @@ +#N canvas 253 249 450 300 10; +#X obj 153 121 pong; +#X text 24 14 a bouncing ball model!; +#X text 53 45 Based on pong (for Max) version 1.5 written by Richard +Dudas.; diff --git a/help/pulse-help.pd b/pulse-help.pd index 6d1320a..6d1320a 100644 --- a/help/pulse-help.pd +++ b/pulse-help.pd diff --git a/help/remote-help.pd b/remote-help.pd index 6ee5b8f..6ee5b8f 100644 --- a/help/remote-help.pd +++ b/remote-help.pd diff --git a/help/rewrap-help.pd b/rewrap-help.pd index e444c9d..e444c9d 100644 --- a/help/rewrap-help.pd +++ b/rewrap-help.pd diff --git a/help/rhythm-help.pd b/rhythm-help.pd index bff970c..bff970c 100644 --- a/help/rhythm-help.pd +++ b/rhythm-help.pd diff --git a/help/scale-help.pd b/scale-help.pd index 816bda5..816bda5 100644 --- a/help/scale-help.pd +++ b/scale-help.pd diff --git a/help/score-help.pd b/score-help.pd index a049bab..a049bab 100644 --- a/help/score-help.pd +++ b/score-help.pd diff --git a/help/speedlim-help.pd b/speedlim-help.pd index 2ef4f82..2ef4f82 100644 --- a/help/speedlim-help.pd +++ b/speedlim-help.pd diff --git a/src/speedlim.c b/speedlim.c index 72ad34c..72ad34c 100644 --- a/src/speedlim.c +++ b/speedlim.c diff --git a/help/split-help.pd b/split-help.pd index c4e8d26..c4e8d26 100644 --- a/help/split-help.pd +++ b/split-help.pd diff --git a/help/step-help.pd b/step-help.pd index 9197d01..9197d01 100644 --- a/help/step-help.pd +++ b/step-help.pd diff --git a/help/subst-help.pd b/subst-help.pd index 405ea20..405ea20 100644 --- a/help/subst-help.pd +++ b/subst-help.pd diff --git a/help/sync-help.pd b/sync-help.pd index d82521e..d82521e 100644 --- a/help/sync-help.pd +++ b/sync-help.pd diff --git a/help/temperature-help.pd b/temperature-help.pd index 64db2a7..64db2a7 100644 --- a/help/temperature-help.pd +++ b/temperature-help.pd diff --git a/src/temperature.c b/temperature.c index 78b7fe7..78b7fe7 100644 --- a/src/temperature.c +++ b/temperature.c diff --git a/help/tilt-help.pd b/tilt-help.pd index 581f934..581f934 100644 --- a/help/tilt-help.pd +++ b/tilt-help.pd diff --git a/help/timebang-help.pd b/timebang-help.pd index 1db5058..1db5058 100644 --- a/help/timebang-help.pd +++ b/timebang-help.pd diff --git a/src/timebang.c b/timebang.c index e165659..e165659 100644 --- a/src/timebang.c +++ b/timebang.c diff --git a/help/triang-help.pd b/triang-help.pd index 2a43020..2a43020 100644 --- a/help/triang-help.pd +++ b/triang-help.pd diff --git a/help/unroute-help.pd b/unroute-help.pd index d8ca114..d8ca114 100644 --- a/help/unroute-help.pd +++ b/unroute-help.pd diff --git a/src/unroute.c b/unroute.c index 96331a4..96331a4 100644 --- a/src/unroute.c +++ b/unroute.c diff --git a/help/urn-help.pd b/urn-help.pd index 09cdb9e..09cdb9e 100644 --- a/help/urn-help.pd +++ b/urn-help.pd diff --git a/help/velocity-help.pd b/velocity-help.pd index 38f8f0c..38f8f0c 100644 --- a/help/velocity-help.pd +++ b/velocity-help.pd diff --git a/src/velocity.c b/velocity.c index c04fab9..c04fab9 100644 --- a/src/velocity.c +++ b/velocity.c diff --git a/help/weibull-help.pd b/weibull-help.pd index 56eb3b1..56eb3b1 100644 --- a/help/weibull-help.pd +++ b/weibull-help.pd diff --git a/src/weibull.c b/weibull.c index a6e8564..a6e8564 100644 --- a/src/weibull.c +++ b/weibull.c diff --git a/help/wrap-help.pd b/wrap-help.pd index 7997d38..7997d38 100644 --- a/help/wrap-help.pd +++ b/wrap-help.pd |