From 2b8f3d69d661b6f7d4200b0722302bc72378c44e Mon Sep 17 00:00:00 2001 From: Jaby Date: Wed, 29 Mar 2023 21:46:32 +0200 Subject: [PATCH] Separate make files for easier use --- lib/ExportPath.mk | 2 ++ lib/Makefile | 4 ++-- src/Library/Makefile | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 lib/ExportPath.mk diff --git a/lib/ExportPath.mk b/lib/ExportPath.mk new file mode 100644 index 00000000..fcc3b8d3 --- /dev/null +++ b/lib/ExportPath.mk @@ -0,0 +1,2 @@ +#Add the JabyEngine tools to path +export PATH := $(JABY_ENGINE_DIR)/bin/:$(PATH) \ No newline at end of file diff --git a/lib/Makefile b/lib/Makefile index 188bde77..5b262c51 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,5 +1,5 @@ -#Add the JabyEngine tools to path -export PATH := $(JABY_ENGINE_DIR)/bin/:$(PATH) +SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST))) +include $(SELF_DIR)ExportPath.mk #Build architecture/variant string, possible values: x86, armv7le, etc... PLATFORM ?= PSX diff --git a/src/Library/Makefile b/src/Library/Makefile index ba511a31..688e59aa 100644 --- a/src/Library/Makefile +++ b/src/Library/Makefile @@ -42,6 +42,7 @@ $(LIB_DIR)/$(notdir $(OVERLAY_BOOT_OBJ)): $(OVERLAY_BOOT_OBJ) cp $(OVERLAY_BOOT_OBJ) $(LIB_DIR)/$(notdir $(OVERLAY_BOOT_OBJ)) # Improve later +# rule to make the boot image $(SPLASH_IMAGE): ressources/Splash.png jaby_engine_fconv --lz4 $< simple-tim full16 | cpp_out --name SplashScreen -o $@