star-sim

Barnes-Hut gravity simulation.
git clone git://git.amin.space/star-sim.git
Log | Files | Refs | README | LICENSE

commit 0ac5616992d1fd7b57126b531072ef2c89e5dce7
parent 0c989f0f8b3ed9be826002cc6a0af3cb599d3b26
Author: amin <dev@aminmesbah.com>
Date:   Sun, 30 Jul 2017 00:56:06 +0000

Move source files into src/.

Things were getting a bit messy and hard to find.

FossilOrigin-Name: 88b5fc61d63fe31755fcfafb3826a77d3bb8673ecbe8ef73020335f86b2749a6
Diffstat:
MMakefile | 5+++--
Rbarnes_hut.c -> src/barnes_hut.c | 0
Rbarnes_hut.h -> src/barnes_hut.h | 0
Rplatform_sdl.c -> src/platform_sdl.c | 0
Rplatform_sdl.h -> src/platform_sdl.h | 0
Rstar.c -> src/star.c | 0
Rstar.h -> src/star.h | 0
Rstar_garden.c -> src/star_garden.c | 0
Rstar_garden.h -> src/star_garden.h | 0
9 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -7,7 +7,8 @@ SDL_LDFLAGS := $(shell sdl2-config --libs) override CFLAGS += $(SDL_CFLAGS) -SRC = platform_sdl.c star_garden.c star.c barnes_hut.c +SRC_FILES = platform_sdl.c star_garden.c star.c barnes_hut.c +SRC = $(addprefix src/, $(SRC_FILES)) EXE = star-garden DBGDIR = debug @@ -44,7 +45,7 @@ run: debug ./$(DBGEXE) todo: - @grep -FIR --colour=never --ignore-case --line-number todo *.c *.h \ + @grep -FIR --colour=never --ignore-case --line-number todo src/ \ | sed -re 's/^([^:]+):[[:space:]]*(.*)/\1\x01\2/' \ | sed -re 's/^([^:]+):[[:space:]]*(.*)/\1\x01\2/' \ | column -s $$'\x01' -t diff --git a/barnes_hut.c b/src/barnes_hut.c diff --git a/barnes_hut.h b/src/barnes_hut.h diff --git a/platform_sdl.c b/src/platform_sdl.c diff --git a/platform_sdl.h b/src/platform_sdl.h diff --git a/star.c b/src/star.c diff --git a/star.h b/src/star.h diff --git a/star_garden.c b/src/star_garden.c diff --git a/star_garden.h b/src/star_garden.h