From 6427d4c86cdae8dcc242e0c813f1c164eea2590a Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Tue, 17 Mar 2026 16:58:24 +0000 Subject: [PATCH] update Makefile to allow changing build directory --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 04d4532..f43836c 100644 --- a/Makefile +++ b/Makefile @@ -10,11 +10,11 @@ LDFLAGS = -L./ext/raylib/src -lraylib -lm -lpthread -ldl -lrt -lX11 # Directories SRC_DIR = src -BUILD_DIR = build +BUILD_DIR ?= build RAYLIB_DIR = ext/raylib/src -TARGET = orbit_sim +TARGET = ${BUILD_DIR}/orbit_sim TEST_DIR = tests -TEST_TARGET = orbit_test +TEST_TARGET = ${BUILD_DIR}/orbit_test # Source files (exclude old mission planning files) CPP_SOURCES := $(wildcard $(SRC_DIR)/*.cpp)