-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
43 lines (37 loc) · 1.24 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
36
37
38
39
40
41
42
43
ARCHS = arm64 arm64e
#TARGET := iphone:clang:14.3:7.0
include $(THEOS)/makefiles/common.mk
# USE_TFP0 = 1
# USE_LIBKRW = 1
# USE_LIBKERNRW = 1
SUBPROJECT_NAME = kerninfra
LIBRARY_NAME = kerninfra
LIB_DIR := lib
kerninfra_FILES = patchfinder/libdimentio.c rw_wrap/rw_wrap.cpp kern_func.cpp kerninfra.mm
kerninfra_CFLAGS = -fobjc-arc -Iincludes
kerninfra_CCFLAGS = -std=c++2a -fvisibility=hidden
kerninfra_FRAMEWORKS = IOKit
#kerninfra_INSTALL_PATH = /usr/local/lib
#kerninfra_LINKAGE_TYPE = static
#kerninfra_LDFLAGS = -lcompression
kerninfra_LIBRARIES = compression
ifdef USE_TFP0
kerninfra_FILES += rw_prov/rw_prov_tfp0/rw_prov_tfp0.c
kerninfra_CFLAGS += -DUSE_TFP0
endif
ifdef USE_LIBKRW
#kerninfra_FRAMEWORKS += kerninfra/libkrw
kerninfra_LIBRARIES += krw
kerninfra_LDFLAGS += -Lrw_prov/rw_prov_libkrw/libkrw
kerninfra_FILES += rw_prov/rw_prov_libkrw/rw_prov_libkrw.c
kerninfra_CFLAGS += -DUSE_LIBKRW
endif
ifdef USE_LIBKERNRW
#kerninfra_FRAMEWORKS += kerninfra/libkernrw
kerninfra_LIBRARIES += kernrw
kerninfra_LDFLAGS += -Lrw_prov/rw_prov_libkernrw/libkernrw
kerninfra_FILES += rw_prov/rw_prov_libkernrw/rw_prov_libkernrw.c
kerninfra_CFLAGS += -DUSE_LIBKERNRW
endif
include $(THEOS_MAKE_PATH)/subproject.mk
#include $(THEOS_MAKE_PATH)/library.mk