swh:1:snp:122bde0cb0e54f3d002c308e151c63f07e45e6be
Tip revision: d5350e845ceb8fe7d8f2e94e42672016031c7c02 authored by Hanno Rein on 10 September 2023, 18:22:49 UTC
Updating version to 3.27.0
Updating version to 3.27.0
Tip revision: d5350e8
Makefile
include Makefile.defs
OPT+= -fPIC -DLIBREBOUND
SOURCES=rebound.c tree.c particle.c gravity.c integrator.c integrator_whfast.c integrator_whfast512.c integrator_saba.c integrator_ias15.c integrator_sei.c integrator_bs.c integrator_leapfrog.c integrator_mercurius.c integrator_eos.c boundary.c input.c binarydiff.c output.c collision.c communication_mpi.c display.c tools.c rotations.c derivatives.c simulationarchive.c glad.c integrator_janus.c transformations.c
OBJECTS=$(SOURCES:.c=.o)
HEADERS=$(SOURCES:.c=.h)
all: $(SOURCES) librebound.so
%.o: %.c $(HEADERS)
@echo "Compiling source file $< ..."
$(CC) -c $(OPT) $(PREDEF) -o $@ $<
librebound.so: $(OBJECTS)
@echo ""
@echo "Linking share library $@ ..."
$(CC) $(OPT) -shared $(OBJECTS) $(LIB) -o $@
@echo ""
@echo "The shared library $< has been created successfully."
clean:
@echo "Removing object files *.o ..."
@-rm -f *.o
@echo "Removing shared library librebound.so ..."
@-rm -f *.so
@echo "Removing coverage files ..."
@-rm -f *.gcda
@-rm -f *.gcno