Skip to content

Commit

Permalink
Merge pull request #58 from SteveRussell33/premake5
Browse files Browse the repository at this point in the history
[makefile] Update EFSW dep to premake5
  • Loading branch information
mxa authored Jan 9, 2023
2 parents d7b16f7 + 0dac1aa commit 7cb75fd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/


Expand Down

0 comments on commit 7cb75fd

Please sign in to comment.