Revision 2a8f0c05527e195cc83a1bc8b0a439b0bf2a4192 authored by Hanno Rein on 08 June 2023, 19:53:29 UTC, committed by Hanno Rein on 08 June 2023, 19:53:29 UTC
1 parent 5ae5b82
Raw File
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