forked from EthanArbuckle/Apollo-CustomApiCredentials
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
29 lines (20 loc) · 917 Bytes
/
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
export ARCHS = arm64
export libFLEX_ARCHS = arm64
TARGET := iphone:clang:latest:14.0
INSTALL_TARGET_PROCESSES = Apollo
THEOS_LEAN_AND_MEAN = 1
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = ApolloImprovedCustomApi
ApolloImprovedCustomApi_FILES = Tweak.xm CustomAPIViewController.m DefaultSubreddits.m UIWindow+Apollo.m fishhook.c
ApolloImprovedCustomApi_FRAMEWORKS = UIKit
ApolloImprovedCustomApi_CFLAGS = -fobjc-arc -Wno-unguarded-availability-new -Wno-module-import-in-extern-c
SUBPROJECTS += Tweaks/FLEXing/libflex
CONTROL_FILE = $(THEOS_PROJECT_DIR)/control
# Generate Version.h
before-all:: generate_version_h
generate_version_h:
@echo "Generating Version.h from control file"
@version=$$(grep '^Version:' $(CONTROL_FILE) | cut -d' ' -f2); \
echo "#define TWEAK_VERSION \"v$${version}\"" > $(THEOS_PROJECT_DIR)/Version.h
include $(THEOS_MAKE_PATH)/aggregate.mk
include $(THEOS_MAKE_PATH)/tweak.mk