-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 862 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# QuickTime Fixer Makefile
# Compiler and flags
CC = clang
CFLAGS = -dynamiclib -framework Foundation -framework AppKit -framework AVFoundation -fobjc-arc
OUTPUT = QuickTimeFixer.dylib
SOURCES = main.m ZKSwizzle/ZKSwizzle.m
INSTALL_PATH = /Applications/QuickTime Player.app/Contents/Frameworks
# Default target
all: $(OUTPUT)
# Build the dylib
$(OUTPUT): $(SOURCES)
$(CC) $(CFLAGS) -o $@ $^
# Clean build artifacts
clean:
rm -f $(OUTPUT)
# Install dylib and source files to QuickTime Player.app
install: $(OUTPUT)
@echo "Installing QuickTimeFixer.dylib to $(INSTALL_PATH)..."
@sudo cp -f $(OUTPUT) "$(INSTALL_PATH)/"
@echo "Installing source files to $(INSTALL_PATH)..."
@sudo cp -f main.m "$(INSTALL_PATH)/QuickTimeFixer.m"
@sudo codesign --deep -f -s - /Applications/QuickTime\ Player.app/
@echo "Installation complete."
.PHONY: all clean install