[PD-cvs] externals/build/win makefile,1.11,1.12

Hans-Christoph Steiner eighthave at users.sourceforge.net
Thu Nov 17 02:10:43 CET 2005


Update of /cvsroot/pure-data/externals/build/win
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28010/win

Modified Files:
	makefile 
Log Message:
got things linking without having the whole pd.dll included using strip.  MinGW is more UNIX that Mac OS X! ;)  Crazy...

Index: makefile
===================================================================
RCS file: /cvsroot/pure-data/externals/build/win/makefile,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** makefile	15 Nov 2005 02:42:34 -0000	1.11
--- makefile	17 Nov 2005 01:10:40 -0000	1.12
***************
*** 1,26 ****
  
! # 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)
  
! .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'
  
--- 1,25 ----
  
! # Adapt the PD_PATH if your pd is not installed in the standard place
  
  # path for compiling against an installed version of Pd
! #PD_PATH="$(PROGRAMFILES)/pd"
  # path for compiling from CVS with the standard developer layout
! PD_PATH=../../../pd
  
! STRIP = strip --strip-unneeded -R .note -R .comment
  
! # only try to compile C files
! EXTERNALS = $(shell ls ../src | grep -e '.*\.c$$')
  
! # these are little macros for remapping things on Windows which are
! # defined on other platforms
  WINDOWS_COMPAT_DEFINES = \
  	-D'drand48()=((double)rand()/RAND_MAX)' \
  	-D'srand48(n)=srand((n))' \
+ 	-D'O_NONBLOCK=1' \
+ # These don't seem to be needed:
  #	-D'bzero(p,n)=memset(p,0,n)' \
  #	-D'PROT_READ=1' \
  #	-D'MAP_PRIVATE=2' \
  #	-D'O_NDELAY=O_NONBLOCK'
  
***************
*** 28,33 ****
  
  
! # 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
--- 27,34 ----
  
  
! # Generic x86 (compile for 686, since that's most common these days)
! OPTIM_FLAGS = -O3 -march=i686 -mfpmath=sse -msse
! # Pentium
! #OPTIM_FLAGS = -O3 -march=pentium
  # Pentium MMX
  #OPTIM_FLAGS = -O3 -march=pentium-mmx -mmmx
***************
*** 44,70 ****
  #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:
! 	@test -d $(PDPATH)/doc/5.reference || mkdir -p $(PDPATH)/doc/5.reference
  	cd ../doc && make all
! 	cp -r ../doc/* $(PDPATH)/doc/5.reference
  
  install: install-doc
! 	@test -d $(PDPATH)/extra || mkdir -p $(PDPATH)/extra
! 	install *.dll $(PDPATH)/extra
--- 45,82 ----
  #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$(PD_PATH)/src -I/usr/local/include
! LDFLAGS = -shared -L/usr/local/lib -L$(PD_PATH)/bin -lpd
! 
! all: externals
  
! 
! .SUFFIXES: .dll
! 
! externals: $(EXTERNALS:.c=.dll)
  
  %.dll: ../src/%.c
  	$(CC) -mms-bitfields $(CFLAGS) $(DEFINES) $(INCLUDE) \
  		 -o "$*.o" -c "../src/$*.c"
! 	gcc $(LDFLAGS) -o "$*.dll" "$*.o" \
  		`test -f $*.libs && cat $*.libs` \
  		`test -f ../src/$*.libs && cat ../src/$*.libs` 
+ 	$(STRIP) "$*.dll"
+ #	strip --strip-all "$*.dll"
+ 	rm "$*.o"
  
  clean:
! 	-rm *.a *.def *.c *.o *.obj
! 	rm *.dll
  
  install-doc:
! 	@test -d $(PD_PATH)/doc/5.reference || mkdir -p $(PD_PATH)/doc/5.reference
  	cd ../doc && make all
! 	cp -r ../doc/* $(PD_PATH)/doc/5.reference
  
  install: install-doc
! 	@test -d $(PD_PATH)/extra || mkdir -p $(PD_PATH)/extra
! 	install *.dll $(PD_PATH)/extra





More information about the Pd-cvs mailing list