diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/depends/target/Makefile | 1 | ||||
-rw-r--r-- | tools/depends/target/smctemp/Makefile | 30 | ||||
-rw-r--r-- | tools/depends/target/smctemp/SMCTEMP-VERSION | 5 |
3 files changed, 36 insertions, 0 deletions
diff --git a/tools/depends/target/Makefile b/tools/depends/target/Makefile index c968d71f8d..9c3f8ca488 100644 --- a/tools/depends/target/Makefile +++ b/tools/depends/target/Makefile @@ -67,6 +67,7 @@ endif ifeq ($(OS),osx) EXCLUDED_DEPENDS = libusb + DEPENDS += smctemp ifneq ($(CPU),arm64) ifeq ($(WINDOW_SYSTEM),sdl) DEPENDS += libsdl diff --git a/tools/depends/target/smctemp/Makefile b/tools/depends/target/smctemp/Makefile new file mode 100644 index 0000000000..b257625403 --- /dev/null +++ b/tools/depends/target/smctemp/Makefile @@ -0,0 +1,30 @@ +include ../../Makefile.include SMCTEMP-VERSION ../../download-files.include +DEPS = ../../Makefile.include SMCTEMP-VERSION Makefile ../../download-files.include \ + +LIBDYLIB=$(PLATFORM)/$(BYPRODUCT) + +ifeq ($(CPU), arm64) + CXXFLAGS += -DARCH_TYPE_ARM64 +else + CXXFLAGS += -DARCH_TYPE_X86_64 +endif + +all: .installed-$(PLATFORM) + +$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) + rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) + cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) + +$(LIBDYLIB): $(PLATFORM) + $(MAKE) CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" AR=$(AR) RANLIB=$(RANLIB) -C $(PLATFORM) staticlib + +.installed-$(PLATFORM): $(LIBDYLIB) + $(MAKE) DEST_PREFIX=$(PREFIX) -C $(PLATFORM) installstaticlib + touch $@ + +clean: + $(MAKE) -C $(PLATFORM) clean + rm -f .installed-$(PLATFORM) + +distclean:: + rm -rf $(PLATFORM) .installed-$(PLATFORM) diff --git a/tools/depends/target/smctemp/SMCTEMP-VERSION b/tools/depends/target/smctemp/SMCTEMP-VERSION new file mode 100644 index 0000000000..4eb38567cb --- /dev/null +++ b/tools/depends/target/smctemp/SMCTEMP-VERSION @@ -0,0 +1,5 @@ +LIBNAME=smctemp +VERSION=0.2.1 +ARCHIVE=$(LIBNAME)-$(VERSION).tar.gz +SHA512=8671836ed3f16122ffc84a1e91b463c8405526b1500fa9f5816a9f9eff1fd598c86958e894d2b8b25ae798da57b536766729b28dcc6b7c69fe2dc3c818f18290 +BYPRODUCT=libsmctemp.a |