Browse Source

update Makefile to allow changing build directory

main
cinnaboot 4 months ago
parent
commit
6427d4c86c
  1. 6
      Makefile

6
Makefile

@ -10,11 +10,11 @@ LDFLAGS = -L./ext/raylib/src -lraylib -lm -lpthread -ldl -lrt -lX11
# Directories # Directories
SRC_DIR = src SRC_DIR = src
BUILD_DIR = build BUILD_DIR ?= build
RAYLIB_DIR = ext/raylib/src RAYLIB_DIR = ext/raylib/src
TARGET = orbit_sim TARGET = ${BUILD_DIR}/orbit_sim
TEST_DIR = tests TEST_DIR = tests
TEST_TARGET = orbit_test TEST_TARGET = ${BUILD_DIR}/orbit_test
# Source files (exclude old mission planning files) # Source files (exclude old mission planning files)
CPP_SOURCES := $(wildcard $(SRC_DIR)/*.cpp) CPP_SOURCES := $(wildcard $(SRC_DIR)/*.cpp)

Loading…
Cancel
Save