Update of /cvsroot/pure-data/externals/build/win In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28623
Modified Files: makefile Added Files: makefile.nmake Removed Files: m_pd.h Log Message: got basically everything building with MinGW, now got to get things linking dynamically instead of statically
--- NEW FILE: makefile.nmake --- # ----------------------- NT -----------------------
EXTERNALS=\ #!IF ![f exist filelist.inc del filelist.inc & for %i in (*.c) do @echo %i >> filelist.inc] !INCLUDE filelist.inc #!ENDIF
all: filelist.inc link.stamp $(EXTERNALS:.c=.dll)
.SUFFIXES: .dll
PDNTCFLAGS = /W3 /WX /DNT /DPD /nologo VC="C:\Program Files\Microsoft Visual Studio\Vc98" SRCPATH=..\src
PDNTINCLUDE = /I. /I.. /I......\pd\src /I$(VC)\include
PDNTLDIR = $(VC)\lib PDNTLIB = $(PDNTLDIR)\libc.lib \ $(PDNTLDIR)\oldnames.lib \ $(PDNTLDIR)\kernel32.lib \ $(PDNTLDIR)\wsock32.lib \ ......\pd\bin\pd.lib
.c.dll: cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c link /dll /export:$(*:~=_tilde)_setup $(*).obj $(PDNTLIB) del $*.obj $*.lib $*.exp
filelist.inc: if exist filelist.inc del filelist.inc # for %i in ($(SRCPATH)*.c) do @echo %~ni%~xi >> filelist.inc for %i in ($(SRCPATH)*.c) do @echo %~ni%~xi >> filelist.inc
transfer: copy $(SRCPATH)*.c .
link.stamp: filelist.inc copy $(SRCPATH)*.c . copy /y nul link.stamp nmake
clean: # don't delete filelist.inc at the moment, as some externals can't be compiled # on win32 -del link.stamp -del *.c -del *.obj -del *.lib -del *.exp -del *.dll
--- m_pd.h DELETED ---
Index: makefile =================================================================== RCS file: /cvsroot/pure-data/externals/build/win/makefile,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** makefile 22 May 2005 13:59:31 -0000 1.10 --- makefile 15 Nov 2005 02:42:34 -0000 1.11 *************** *** 2,14 **** # Adapt the PDPATH if your pd is not installed in the standard place
! PDPATH="$(PROGRAMFILES)/pd" ! ! !
EXTERNALS = $(shell ls ../src)
! all: ! make -k externals
externals: $(EXTERNALS:.c=.dll) --- 2,13 ---- # Adapt the PDPATH if your pd is not installed in the standard place
! # path for compiling against an installed version of Pd ! #PDPATH="$(PROGRAMFILES)/pd" ! # path for compiling from CVS with the standard developer layout ! PDPATH=../../../pd
EXTERNALS = $(shell ls ../src)
! all: externals
externals: $(EXTERNALS:.c=.dll) *************** *** 16,33 **** .SUFFIXES: .dll
! DEFINES = -DPD -DNT ! CFLAGS = -Wall -W -Wshadow -Wstrict-prototypes \ ! -Wno-unused -Wno-parentheses -Wno-switch
INCLUDE = -I. -I.. -I$(PDPATH)/src
%.dll: ../src/%.c ! $(CC) -mms-bitfields $(CFLAGS) $(DEFINES) $(INCLUDE) -o "$*.o" -c "../src/$*.c" gcc -shared -o "$*.dll" "$*.o" $(PDPATH)/bin/pd.dll \ ! `test -f $*.libs && cat $*.libs` `test -f ../src/$*.libs && cat ../src/$*.libs`
clean: ! -rm *.a *.def *.dll *.o
install-doc: --- 15,63 ---- .SUFFIXES: .dll
! # these are little macros for remapping things on Windows ! WINDOWS_COMPAT_DEFINES = \ ! -D'drand48()=((double)rand()/RAND_MAX)' \ ! -D'srand48(n)=srand((n))' \ ! # -D'bzero(p,n)=memset(p,0,n)' \ ! # -D'PROT_READ=1' \ ! # -D'MAP_PRIVATE=2' \ ! # -D'O_NONBLOCK=1' \ ! # -D'O_NDELAY=O_NONBLOCK' ! ! DEFINES = -DPD -DNT $(WINDOWS_COMPAT_DEFINES) ! ! ! # Generic x86 (tune for 686, since that's most common these days) ! OPTIM_FLAGS = -O2 -march=i686 -mfpmath=sse -msse ! # Pentium MMX ! #OPTIM_FLAGS = -O3 -march=pentium-mmx -mmmx ! # Pentium Pro ! #OPTIM_FLAGS = -O3 -march=pentiumpro -mmmx ! # Pentium II/Celeron ! #OPTIM_FLAGS = -O3 -mfpmath=sse -mmmx -msse -march=pentium2 ! # Pentium III/Celeron2 ! #OPTIM_FLAGS = -O3 -mfpmath=sse -mmmx -msse -march=pentium3 ! # Pentium 4 ! #OPTIM_FLAGS = -O3 -mfpmath=sse -mmmx -msse -msse2 -march=pentium4 ! ! # AMD Athlon XP K7 ! #OPTIM_FLAGS = -O3 -march=athlon-xp -m3dnow -msse -mfpmath=sse ! ! CFLAGS = -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses \ ! -Wno-switch $(OPTIM_FLAGS)
INCLUDE = -I. -I.. -I$(PDPATH)/src
+ DLLWRAP_FLAGS = --as=$(AS) --export-all --driver-name $(CC) -s
%.dll: ../src/%.c ! $(CC) -mms-bitfields $(CFLAGS) $(DEFINES) $(INCLUDE) \ ! -o "$*.o" -c "../src/$*.c" gcc -shared -o "$*.dll" "$*.o" $(PDPATH)/bin/pd.dll \ ! `test -f $*.libs && cat $*.libs` \ ! `test -f ../src/$*.libs && cat ../src/$*.libs`
clean: ! -rm *.a *.def *.dll *.o *.obj
install-doc: