# Makefile for python
#                      see Makefile_example  for  swig  example

all: power2_py.out factorial_py.out SmallApp.out \
     test_import_funct.out test_cntrl_py.out \
     test_fft_py.out test_solve_py.out \
     thread_example_py.out \
     barrier_test_py.out barrier1_py.out barrier2_py.out \
     test_psimeq_dbg_py.out

power2_py.out: power2.py
	python power2.py > power2_py.out

factorial_py.out: factorial.py
	python factorial.py > factorial_py.out

SmallApp.out: SmallApp.py  # error output
	python SmallApp.py >& SmallApp.out

test_import_funct.out: test_import_funct.py funct_to_import.py
	python test_import_funct.py > test_import_funct.out

test_cntrl_py.out: test_cntrl.py
	python test_cntrl.py > test_cntrl_py.out

test_fft_py.out: test_fft.py
	python test_fft.py > test_fft_py.out

test_solve_py.out: test_solve.py
	python test_solve.py > test_solve_py.out

thread_example_py.out: thread_example.py
	python thread_example.py > thread_example_py.out

barrier_test_py.out: barrier_test.py
	python barrier_test.py > barrier_test_py.out

barrier1_py.out: barrier1.py pybarrier.py # in separate file
	python barrier1.py > barrier1_py.out

barrier2_py.out: barrier2.py pybarrier.py
	python barrier2.py > barrier2_py.out

test_psimeq_dbg_py.out: test_psimeq_dbg.py psimeq_dbg.py
	python test_psimeq_dbg.py > test_psimeq_dbg_py.out

#python worker_threads.py # interactive, wx graphics window

#python app1qt4.py # interactive, pyqt4 graphics window HW1

#python hw1s.py # interactive, wx graphics window HW1

#python sound.py # interactive  type in  kirk.wav and click play

#python plot_spiral.py # 3D plot with color for height

#python plot_parab.py # 3D plot with color height, also .jpg

#python test_shape.py # 2D draws various shapes in color

#test_fft.py
#testfft.py
#test_gauleg.py
#test_solve.py
#rubber_band.py
#testio.py
#time_matmul.py
#SmallApp.py
#test_keysym.py
#gauleg.py
#test_line.py
#wxmouse.py
#hello.py
#spiral_trough.py
#test_math.py
#test_class.py
#testmath.py

#python test_mouse.py # interactive, move mouse, see x,y coord

clean:
	rm -f *.o
	rm -f *.pyc