https://github.com/hannorein/rebound
Raw File
Tip revision: 9204bb2b11614e4004ca975ee08a6274e8440f03 authored by Hanno Rein on 07 April 2023, 13:37:30 UTC
Updating version to 3.24.3
Tip revision: 9204bb2
Makefile
# This Makefile compiles the shared dynamic library librebound.so

librebound: 
	$(MAKE) -C src 
	@ln -f -s src/librebound.so .
	@if [ "$(MAKELEVEL)" -eq "0" ]; then echo "To compile the example problems, go to a subdirectory of examples/ and execute make there."; fi

.PHONY: pythoncopy
pythoncopy:
	-cp librebound.so `python -c "import rebound; print(rebound.__libpath__)"`
	
all: librebound pythoncopy

clean:
	$(MAKE) -C src clean
back to top