Ticket #66078: patch-01-Makefile-20221023.diff
File patch-01-Makefile-20221023.diff, 1.8 KB (added by johnrosshunt, 2 years ago) |
---|
-
Makefile
a b 6 6 CC := $(CROSS_COMPILE)gcc 7 7 STRIP := $(CROSS_COMPILE)strip 8 8 9 CFLAGS += -O2-Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter9 override CFLAGS += -Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter 10 10 LDFLAGS += -lpthread 11 11 SHARED = -shared -Wl,-soname,libhdhomerun$(LIBEXT) 12 12 … … 42 42 43 43 ifeq ($(OS),Darwin) 44 44 45 TARGET_X64 := -target x86_64-apple-macos10.11 46 TARGET _ARM64 := -target arm64-apple-macos1145 LIBEXT := .dylib 46 TARGET := -arch x86_64 47 47 48 48 all : hdhomerun_config libhdhomerun.dylib 49 49 50 hdhomerun_config _x64: hdhomerun_config.c $(LIBSRCS)51 $(CC) $(TARGET _X64) $(CFLAGS) $+ $(LDFLAGS) -o $@50 hdhomerun_config : hdhomerun_config.c $(LIBSRCS) 51 $(CC) $(TARGET) $(CFLAGS) $+ $(LDFLAGS) -o $@ 52 52 $(STRIP) $@ 53 53 54 hdhomerun_config_arm64 : hdhomerun_config.c $(LIBSRCS) 55 $(CC) $(TARGET_ARM64) $(CFLAGS) $+ $(LDFLAGS) -o $@ 56 $(STRIP) $@ 57 58 hdhomerun_config : hdhomerun_config_x64 hdhomerun_config_arm64 59 lipo -create -output hdhomerun_config hdhomerun_config_x64 hdhomerun_config_arm64 60 61 libhdhomerun_x64.dylib : $(LIBSRCS) 62 $(CC) $(TARGET_X64) $(CFLAGS) -DDLL_EXPORT -fPIC -dynamiclib $+ $(LDFLAGS) -o $@ 63 64 libhdhomerun_arm64.dylib : $(LIBSRCS) 65 $(CC) $(TARGET_ARM64) $(CFLAGS) -DDLL_EXPORT -fPIC -dynamiclib $+ $(LDFLAGS) -o $@ 66 67 libhdhomerun.dylib : libhdhomerun_x64.dylib libhdhomerun_arm64.dylib 68 lipo -create -output libhdhomerun.dylib libhdhomerun_x64.dylib libhdhomerun_arm64.dylib 54 libhdhomerun.dylib : $(LIBSRCS) 55 $(CC) $(TARGET) $(CFLAGS) -DDLL_EXPORT -fPIC -dynamiclib -install_name @PREFIX@/lib/libhdhomerun$(LIBEXT) $+ $(LDFLAGS) -o $@ 69 56 70 57 else 71 58