-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
35 lines (26 loc) · 1.09 KB
/
Makefile
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
31
32
33
34
35
TARGET=iphone:clang:14.5:8.0
ARCHS=armv7 arm64 arm64e
PACKAGE_VERSION=$(THEOS_PACKAGE_BASE_VERSION)
include $(THEOS)/makefiles/common.mk
LIBRARY_NAME = libSleeper
TWEAK_NAME = SleeperCore SleeperCoreLegacy SleeperUI
libSleeper_FILES = $(wildcard common/*.m) $(wildcard common/*.xm ) $(wildcard common/*.x)
libSleeper_PRIVATE_FRAMEWORKS = MobileTimer
libSleeper_OBJCFLAGS = -fobjc-arc
libSleeper_LDFLAGS = -lsubstrate
SleeperCore_FILES = $(wildcard core/*.x)
SleeperCore_LIBRARIES = Sleeper
SleeperCore_OBJCFLAGS = -fobjc-arc
SleeperCore_LDFLAGS = -L$(THEOS_OBJ_DIR)
SleeperCoreLegacy_FILES = $(wildcard core_legacy/*.x)
SleeperCoreLegacy_LIBRARIES = Sleeper
SleeperCoreLegacy_OBJCFLAGS = -fobjc-arc
SleeperCoreLegacy_LDFLAGS = -L$(THEOS_OBJ_DIR)
SleeperUI_FILES = $(wildcard ui/*.x) $(wildcard ui/*.xm) $(wildcard ui/custom/*.m)
SleeperUI_LIBRARIES = Sleeper
SleeperUI_OBJCFLAGS = -fobjc-arc
SleeperUI_LDFLAGS = -L$(THEOS_OBJ_DIR)
include $(THEOS_MAKE_PATH)/library.mk
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 MobileTimer; killall -9 mobiletimerd; killall -9 SpringBoard;"