From d41e58e6cd71fdacdca69ba78c29d42dc7d330d5 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 20 Nov 2002 17:46:33 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r224, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/maxlib/; revision=225 --- makefile | 259 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 259 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..d67856d --- /dev/null +++ b/makefile @@ -0,0 +1,259 @@ +NAME=maxlib +CSYM=maxlib + +current: pd_nt pd_linux pd_darwin + +# ----------------------- NT ----------------------- + +pd_nt: $(NAME).dll + +.SUFFIXES: .dll + +PDNTCFLAGS = /W3 /WX /MD /O2 /G6 /DNT /DPD /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 + +.c.dll: + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\arbran.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\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\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\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\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\step.c + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\subst.c + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\temperature.c + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\tilt.c + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\triang.c + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\velocity.c + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c src\weibull.c + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c + link /dll /export:$(CSYM)_setup $*.obj $(PDNTEXTERNALS) $(PDNTLIB) + + +# ----------------------- 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 + +.c.pd_darwin: + cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/arbran.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/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/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/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/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/step.c + cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/subst.c + cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/temperature.c + cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/tilt.c + cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/triang.c + cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/velocity.c + cc $(DARWINCFLAGS) $(DARWININCLUDE) -c src/weibull.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 + +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 + +.c.pd_linux: + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/arbran.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/average.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/beat.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/beta.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/bilex.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/borax.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/cauchy.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/chord.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/delta.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/dist.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/divide.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/divmod.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/edge.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/expo.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/fifo.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/gauss.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/gestalt.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/history.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/ignore.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/iso.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/lifo.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/limit.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/linear.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/listfunnel.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/match.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/minus.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/mlife.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/multi.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/netclient.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/netdist.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/netrec.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/netserver.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/nroute.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/plus.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/pong.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/poisson.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/pulse.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/pitch.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/remote.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/rhythm.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/scale.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/score.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/speedlim.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/step.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/subst.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/temperature.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/tilt.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/triang.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/velocity.c + cc -O2 -Wall -DPD -fPIC $(LINUXCFLAGS) $(LINUXINCLUDE) -c src/weibull.c + cc -O2 -Wall -DPD -fPIC $(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 -- cgit v1.2.1