From 0dac1aa65b7b02795a533d31200af54d6c6bec9d Mon Sep 17 00:00:00 2001 From: Steve Russell <41975381+SteveRussell33@users.noreply.github.com> Date: Mon, 20 Sep 2021 20:35:36 +0100 Subject: [PATCH] Update Makefile Update EFSW dep to premake5 --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c1e56bb..a784be2 100644 --- a/Makefile +++ b/Makefile @@ -29,14 +29,27 @@ endif # Entropia File System Watcher -efsw := dep/lib/libefsw-static-release.a +ifdef ARCH_WIN + efsw := dep/lib/efsw-static-release.lib +else + efsw := dep/lib/libefsw-static-release.a +endif DEPS += $(efsw) OBJECTS += $(efsw) $(efsw): +ifdef ARCH_WIN + cd efsw && premake5 gmake + cd efsw && $(MAKE) -C make/* config=release_x86_64 efsw-static-lib +else cd efsw && premake4 gmake cd efsw && $(MAKE) -C make/* config=release efsw-static-lib +endif mkdir -p dep/lib dep/include +ifdef ARCH_WIN + cd efsw && cp lib/efsw-static-release.lib $(DEP_PATH)/lib/ +else cd efsw && cp lib/libefsw-static-release.a $(DEP_PATH)/lib/ +endif cd efsw && cp -R include/efsw $(DEP_PATH)/include/