commit 5bd02b91d647631faed03c68854bdb2f258e786b parent 48c43203dff9adb88e5981031ab73070968b82a1 Author: Amin Mesbah <mesbahamin@gmail.com> Date: Wed, 26 Jul 2017 21:27:08 -0700 Move source files into src/. Things were getting a bit messy and hard to find. Diffstat:
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