Source

pygame / Makefile

marcus dd3aeb0 
marcus 84e9391 
marcus 9e033a3 

marcus 5e789c3 



marcus 1d9c216 
marcus b564775 
marcus 1b005c6 

marcus b564775 
marcus 5e789c3 
marcus 1304c51 
marcus 5e789c3 
marcus 1304c51 
marcus 5e789c3 
marcus 172a2f5 
marcus 5e789c3 

marcus b2d20dc 
marcus 8282057 
marcus 08deb07 
marcus 9a6a112 
marcus eca6857 
marcus 5e789c3 









marcus 8282057 
marcus 5e789c3 
marcus 08deb07 
marcus 9a6a112 
marcus 08deb07 
marcus 5e789c3 




marcus 42e24f6 

marcus 5e789c3 


marcus 73067bf 
marcus 5e789c3 
marcus 801d5f7 

marcus 5e789c3 
marcus 73067bf 
marcus 5e789c3 



marcus 84e9391 
marcus fb657ea 
marcus 84e9391 

marcus fb657ea 
marcus 84e9391 

marcus 5e789c3 

marcus 84e9391 




marcus 00db689 
marcus 5e789c3 

marcus 9e033a3 
marcus 5e789c3 


marcus 2056025 
marcus 5e789c3 








marcus 2056025 
marcus 5e789c3 




marcus 73067bf 


marcus 801d5f7 
marcus 73067bf 

marcus 5e789c3 

marcus 13d1988 
marcus 522cae2 
marcus 13d1988 
marcus 5e789c3 
marcus 13d1988 
marcus 5e789c3 

marcus 84e9391 










marcus 5e789c3 
marcus 84e9391 

marcus b5101c2 
marcus 5e789c3 
marcus 9e033a3 



marcus 5e789c3 
marcus 13d1988 
marcus 522cae2 
marcus 4ea561f 
marcus 522cae2 
marcus 4ea561f 
marcus 522cae2 
marcus 4ea561f 
marcus 522cae2 
marcus 4ea561f 
marcus 13d1988 

marcus 4724054 
marcus 13d1988 

marcus 4a49765 
marcus 13d1988 
marcus 5e789c3 
marcus 4724054 
marcus 5e789c3 

marcus 4a49765 
marcus 4724054 
marcus 5e789c3 

marcus 4a49765 
PYTHON = python
COMPILER = ''
# Set this to 0 on releases.
EXPERIMENTAL = 1
top_srcdir = `pwd`
SUBDIRS = \
	$(top_srcdir)/config \
	$(top_srcdir)/examples \
	$(top_srcdir)/examples/freetype \
	$(top_srcdir)/examples/resources \
	$(top_srcdir)/examples/sdl \
	$(top_srcdir)/examples/sdlext \
	$(top_srcdir)/examples/sdlgfx \
	$(top_srcdir)/doc \
	$(top_srcdir)/doc/capi \
	$(top_srcdir)/doc/src \
	$(top_srcdir)/doc/tutorial \
	$(top_srcdir)/test \
	$(top_srcdir)/test/c_api \
	$(top_srcdir)/test/util \
	$(top_srcdir)/lib \
	$(top_srcdir)/lib/dll \
	$(top_srcdir)/lib/freetype \
	$(top_srcdir)/lib/math \
	$(top_srcdir)/lib/midi \
	$(top_srcdir)/lib/openal \
	$(top_srcdir)/lib/sdl \
	$(top_srcdir)/lib/sdlext \
	$(top_srcdir)/lib/sdlgfx \
	$(top_srcdir)/lib/sdlimage \
	$(top_srcdir)/lib/sdlmixer \
	$(top_srcdir)/lib/sdlttf \
	$(top_srcdir)/lib/sprite \
	$(top_srcdir)/lib/threads \
	$(top_srcdir)/src \
	$(top_srcdir)/src/base \
	$(top_srcdir)/src/freetype \
	$(top_srcdir)/src/mask \
	$(top_srcdir)/src/math \
	$(top_srcdir)/src/midi \
	$(top_srcdir)/src/openal \
	$(top_srcdir)/src/sdl \
	$(top_srcdir)/src/sdlext \
	$(top_srcdir)/src/sdlgfx \
	$(top_srcdir)/src/sdlimage \
	$(top_srcdir)/src/sdlmixer \
	$(top_srcdir)/src/sdlttf \
	$(top_srcdir)/util

all: clean build

dist: clean docs
	@echo "Creating dist..."
	@$(PYTHON) setup.py sdist --format gztar
	@$(PYTHON) setup.py sdist --format zip

bdist: clean docs
	@echo "Creating bdist..."
	@$(PYTHON) setup.py bdist

build:
	@if test -n $(COMPILER); then \
		echo "Running build with $(COMPILER)..."; \
		WITH_EXPERIMENTAL=$(EXPERIMENTAL) $(PYTHON) setup.py build -c $(COMPILER); \
	else \
		echo "Running build"; \
		WITH_EXPERIMENTAL=$(EXPERIMENTAL) $(PYTHON) setup.py build; \
	fi
	@echo "Build finished, invoke 'make install' to install."

clang: COMPILER = clang
clang: all

msys: COMPILER = mingw32
msys: all

install:
	@echo "Installing..."
	@WITH_EXPERIMENTAL=$(EXPERIMENTAL) $(PYTHON) setup.py install 

clean:
	@echo "Cleaning up in $(top_srcdir)/ ..."
	@rm -f *.cache *.core *~ MANIFEST *.pyc *.orig
	@rm -rf src/doc
	@rm -rf build dist

	@for dir in $(SUBDIRS); do \
		if test -f $$dir/Makefile; then \
			make -C $$dir clean; \
		else \
			cd $$dir; \
			echo "Cleaning up in $$dir..."; \
			rm -f *~ *.cache *.core *.pyc *.orig; \
		fi \
	done

docs:
	@echo "Creating docs package"
	@cd doc && make html
	@mv doc/sphinx/build/html doc/html
	@rm -rf doc/sphinx/build
	@cd doc && make docclean

release: dist
	@$(PYTHON) config/bundle_docs.py

runtest:
	@$(PYTHON) test/util/runtests.py

# Do not run these in production environments! They are for testing
# purposes only!

buildall: clean
	@if test -n $(COMPILER); then \
		WITH_EXPERIMENTAL=$(EXPERIMENTAL) python2.4 setup.py build -c $(COMPILER); \
		WITH_EXPERIMENTAL=$(EXPERIMENTAL) python2.5 setup.py build -c $(COMPILER); \
		WITH_EXPERIMENTAL=$(EXPERIMENTAL) python2.6 setup.py build -c $(COMPILER); \
		WITH_EXPERIMENTAL=$(EXPERIMENTAL) python3.1 setup.py build -c $(COMPILER); \
	else \
		WITH_EXPERIMENTAL=$(EXPERIMENTAL) python2.4 setup.py build; \
		WITH_EXPERIMENTAL=$(EXPERIMENTAL) python2.5 setup.py build; \
		WITH_EXPERIMENTAL=$(EXPERIMENTAL) python2.6 setup.py build; \
		WITH_EXPERIMENTAL=$(EXPERIMENTAL) python3.1 setup.py build; \
	fi

buildallclang: COMPILER = clang
buildallclang: buildall

installall:
	@WITH_EXPERIMENTAL=$(EXPERIMENTAL) python2.4 setup.py install
	@WITH_EXPERIMENTAL=$(EXPERIMENTAL) python2.5 setup.py install
	@WITH_EXPERIMENTAL=$(EXPERIMENTAL) python2.6 setup.py install
	@WITH_EXPERIMENTAL=$(EXPERIMENTAL) python3.1 setup.py install

testall:
	@python2.4 test/util/runtests.py
	@rm -rf test/*.pyc
	@python2.5 test/util/runtests.py
	@rm -rf test/*.pyc
	@python2.6 test/util/runtests.py
	@rm -rf test/*.pyc
	@python3.1 test/util/runtests.py
	@rm -rf test/*.pyc

testall2:
	@python2.4 -c "import pygame2.test; pygame2.test.run ()"
	@python2.5 -c "import pygame2.test; pygame2.test.run ()"
	@python2.6 -c "import pygame2.test; pygame2.test.run ()"
	@python3.1 -c "import pygame2.test; pygame2.test.run ()"

purge_installs:
	rm -rf /usr/local/include/python2.4/pygame2*
	rm -rf /usr/local/include/python2.5/pygame2*
	rm -rf /usr/local/include/python2.6/pygame2*
	rm -rf /usr/local/include/python3.1/pygame2*
	rm -rf /usr/local/lib/python2.4/site-packages/pygame2*
	rm -rf /usr/local/lib/python2.5/site-packages/pygame2*
	rm -rf /usr/local/lib/python2.6/site-packages/pygame2*
	rm -rf /usr/local/lib/python3.1/site-packages/pygame2*