From 0ab23426d6c59a3fa7114b49956d52790c46bd2e Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 11 Aug 2019 22:52:11 +0200 Subject: [PATCH] OSX workaround to get universal pm3 homebrew formula still working --- tools/fpga_compress/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/fpga_compress/Makefile b/tools/fpga_compress/Makefile index fccb94b41..8798ace1e 100644 --- a/tools/fpga_compress/Makefile +++ b/tools/fpga_compress/Makefile @@ -9,6 +9,7 @@ CXX = g++ LD = g++ RM = rm -f MV = mv +CP = cp -a platform = $(shell uname) @@ -40,6 +41,10 @@ ZLIBOBJS = $(ZLIBSRCS:%.c=$(OBJDIR)/%.o) BINS = fpga_compress CLEAN = $(BINS) $(DEPENDENCY_FILES) $(ZLIBOBJS) $(OBJDIR)/*.o +# OSX Brew is expecting fpga_compress in client folder, some workaround for now: +ifeq ($(platform),Darwin) +CLEAN += $(foreach bin,$(BINS),../../client/$(bin)) +endif # need to assign dependancies to build these first... all: $(BINS) @@ -50,6 +55,10 @@ all-static: $(BINS) fpga_compress: $(OBJDIR)/fpga_compress.o $(ZLIBOBJS) $(info [=] LD $@) $(Q)$(LD) $(LDFLAGS) $(ZLIBFLAGS) $^ $(LDLIBS) -o $@ +# OSX Brew is expecting fpga_compress in client folder, some workaround for now: +ifeq ($(platform),Darwin) + $(Q)$(CP) $@ ../../client/ +endif clean: $(Q)$(RM) $(CLEAN)