diff --git a/Makefile b/Makefile index bbcbecc..a0cd32c 100644 --- a/Makefile +++ b/Makefile @@ -1,30 +1,19 @@ -THEOS_PACKAGE_DIR_NAME = debs -TARGET = simulator:clang -ARCHS = x86_64 i386 -DEBUG = 0 -GO_EASY_ON_ME = 1 -PACKAGE_VERSION = $(THEOS_PACKAGE_BASE_VERSION) - -include $(THEOS)/makefiles/common.mk - -AGGREGATE_NAME = simjectProject -SUBPROJECTS = simject simjectUIKit respring_simulator - -include $(THEOS_MAKE_PATH)/aggregate.mk - -after-all:: - @echo Copying binaries... - @mkdir -p bin - @cp -v $(THEOS_OBJ_DIR)/respring_simulator $(THEOS_OBJ_DIR)/simject.dylib $(THEOS_OBJ_DIR)/simjectUIKit.dylib bin +all:: + @make -C respring_simulator + @make -C simject + @make -C simjectUIKit clean:: @rm -rfv bin + @make -C respring_simulator clean + @make -C simject clean + @make -C simjectUIKit clean setup:: clean all @sudo mkdir -p /opt/simject @sudo chown -R $(USER) /opt/simject - @cp -v bin/simject.dylib /opt/simject - @cp -v simject/simject.plist /opt/simject - @cp -v bin/simjectUIKit.dylib /opt/simject - @cp -v simjectUIKit/simjectUIKit.plist /opt/simject + @cp bin/simject.dylib /opt/simject + @cp simject/simject.plist /opt/simject + @cp bin/simjectUIKit.dylib /opt/simject + @cp simjectUIKit/simjectUIKit.plist /opt/simject @echo Done. Place your tweak\'s dynamic libraries and accompanying property lists inside /opt/simject to load them in the iOS Simulator. diff --git a/respring_simulator/Makefile b/respring_simulator/Makefile index 43193bd..8465a88 100644 --- a/respring_simulator/Makefile +++ b/respring_simulator/Makefile @@ -1,9 +1,4 @@ -# TODO: This is a rather poor hack-job because respring_simulator ends up being compiled with the simulator target -# Targeting the simulator for a macOS binary no longer works as of macOS 10.12 -# However, changing this target to macosx:clang results in a Theos error for the time being -# I'll change this after I fix the corresponding issue in Theos. -TARGET = simulator:clang -# TARGET = macosx:clang +TARGET = macosx:clang ARCHS = x86_64 i386 DEBUG = 0 GO_EASY_ON_ME = 1 @@ -15,3 +10,8 @@ respring_simulator_FILES = respring_simulator.mm ../simjectCore.mm respring_simulator_CFLAGS = -Wno-deprecated-declarations include $(THEOS_MAKE_PATH)/tool.mk + +after-all:: + @echo Copying binaries... + @mkdir -p ../bin + @cp $(THEOS_OBJ_DIR)/respring_simulator ../bin/ \ No newline at end of file diff --git a/respring_simulator/control b/respring_simulator/control new file mode 100644 index 0000000..e69de29 diff --git a/simject/Makefile b/simject/Makefile index 92e2719..de391da 100644 --- a/simject/Makefile +++ b/simject/Makefile @@ -9,3 +9,8 @@ TWEAK_NAME = simject simject_FILES = simject.xm ../simjectCore.mm include $(THEOS_MAKE_PATH)/tweak.mk + +after-all:: + @echo Copying binaries... + @mkdir -p ../bin + @cp $(THEOS_OBJ_DIR)/simject.dylib ../bin/ \ No newline at end of file diff --git a/simjectUIKit/Makefile b/simjectUIKit/Makefile index ad5ef8f..42d8c4e 100644 --- a/simjectUIKit/Makefile +++ b/simjectUIKit/Makefile @@ -9,3 +9,8 @@ TWEAK_NAME = simjectUIKit simjectUIKit_FILES = simjectUIKit.xm ../simjectCore.mm include $(THEOS_MAKE_PATH)/tweak.mk + +after-all:: + @echo Copying binaries... + @mkdir -p ../bin + @cp $(THEOS_OBJ_DIR)/simjectUIKit.dylib ../bin/ \ No newline at end of file