From 5707565e69d64ba3f619937906f243611eb697ab Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 16 Mar 2008 17:11:00 +0000 Subject: bringing netsend~1.0alpha11-pd-linux.tar.gz into trunk svn path=/trunk/externals/olafmatt/; revision=9587 --- netsend~/makefile | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100755 netsend~/makefile (limited to 'netsend~/makefile') diff --git a/netsend~/makefile b/netsend~/makefile new file mode 100755 index 0000000..0f62407 --- /dev/null +++ b/netsend~/makefile @@ -0,0 +1,89 @@ +current: + echo make pd_linux, pd_nt, pd_irix, pd_darwin + +clean: ; rm -f *.pd_linux *.o + +# ----------------------- NT ----------------------- + +pd_nt: netreceive~.dll netsend~.dll + +.SUFFIXES: .dll + +PDNTCFLAGS = /W3 /WX /DNT /D_WINDOWS /DPD /nologo +VC="C:\Programme\Microsoft Visual Studio\VC98" + +PDNTINCLUDE = /I. /Ic:\pd\tcl\include /Ic:\pd\src /I$(VC)\include + +PDNTLDIR = $(VC)\Lib +PDNTLIB = $(PDNTLDIR)\libc.lib \ + $(PDNTLDIR)\oldnames.lib \ + $(PDNTLDIR)\kernel32.lib \ + $(PDNTLDIR)\user32.lib \ + $(PDNTLDIR)\uuid.lib \ + $(PDNTLDIR)\ws2_32.lib \ + c:\pd\bin\pthreadVC.lib \ + c:\pd\bin\pd.lib + +.c.dll: + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c netreceive~.c + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c netsend~.c + link /dll /export:netreceive_tilde_setup netreceive~.obj $(PDNTLIB) + link /dll /export:netsend_tilde_setup netsend~.obj $(PDNTLIB) + + +# -------------------- IRIX 6.x (GCC) --------------------- + +pd_irix6: netreceive~.pd_irix6 netsend~.pd_irix6 + +.SUFFIXES: .pd_irix6 + +# adjust path to PD: +SGIINCLUDE = -I../../src + +SGICFLAGS6 = -mabi=n32 -DPD -DUNIX -DIRIX -DN32 -O3 \ + -funroll-loops -fomit-frame-pointer \ + -Wall -W -Wshadow -Werror \ + -Wno-unused -Wno-parentheses -Wno-switch -mips4 + +.c.pd_irix6: + gcc $(SGICFLAGS6) $(SGIINCLUDE) -o $*.o -c $*.c + ld -n32 -IPA -shared -rdata_shared -o $*.pd_irix6 $*.o + rm $*.o + +# ----------------------- MAX OS X ------------------- + +pd_darwin: netreceive~.pd_darwin netsend~.pd_darwin + +.SUFFIXES: .pd_darwin + +DARWINCFLAGS = -DPD -DUNIX -DMACOSX -O2 \ + -Wall -W \ + -Wno-unused -Wno-parentheses -Wno-switch + +DARWININCLUDE = -I../../src -Iinclude + +.c.pd_darwin: + cc $(DARWINCFLAGS) $(DARWININCLUDE) -o $*.o -c $*.c + cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o + rm -f $*.o ../$*.pd_darwin + ln -s $*/$*.pd_darwin .. + +# ----------------------- LINUX i386 ----------------------- + +pd_linux: netreceive~.pd_linux netsend~.pd_linux + +.SUFFIXES: .pd_linux + +LINUXCFLAGS = -DPD -DUNIX -DHAVE_LRINT -DHAVE_LRINTF -O2 \ + -funroll-loops -fomit-frame-pointer \ + -Wall -W -Wshadow -Wstrict-prototypes \ + -Wno-unused -Wno-parentheses -Wno-switch + +LINUXINCLUDE = -I../../src + +.c.pd_linux: + cc $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c + ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm + strip --strip-unneeded $*.pd_linux + rm $*.o + -- cgit v1.2.1