Skip to content

Commit

Permalink
Update Makefiles
Browse files Browse the repository at this point in the history
Use $(TWEAK_NAME) in Makefiles
  • Loading branch information
NSExceptional committed Feb 3, 2021
1 parent a7aa6ca commit b4a7006
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
export ARCHS = arm64 armv7 armv7s arm64e
export TARGET = iphone:latest:9.0
INSTALL_TARGET_PROCESSES = SpringBoard
include $(THEOS)/makefiles/common.mk

TWEAK_NAME = FLEXing
FLEXing_GENERATOR = internal
FLEXing_FILES = Tweak.xm SpringBoard.xm
FLEXing_CFLAGS += -fobjc-arc -w
$(TWEAK_NAME)_GENERATOR = internal
$(TWEAK_NAME)_FILES = Tweak.xm SpringBoard.xm
$(TWEAK_NAME)_CFLAGS += -fobjc-arc -w

include $(THEOS_MAKE_PATH)/tweak.mk

before-stage::
find . -name ".DS_Store" -delete

after-install::
install.exec "killall -9 SpringBoard"

# For printing variables from the makefile
print-% : ; @echo $* = $($*)

Expand Down
8 changes: 4 additions & 4 deletions libflex/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ _IMPORTS += $(shell /bin/ls -d $(FLEX_ROOT)/Classes/*/*/*/*/)
IMPORTS = -I$(FLEX_ROOT)/Classes/ $(call dtoim, $(_IMPORTS))

TWEAK_NAME = libFLEX
libFLEX_FILES = libFLEX.m $(SOURCES)
libFLEX_FRAMEWORKS = CoreGraphics UIKit ImageIO QuartzCore
libFLEX_LIBRARIES = sqlite3 z
libFLEX_CFLAGS += -fobjc-arc -w -Wno-unsupported-availability-guard $(IMPORTS) -g
$(TWEAK_NAME)_FILES = libFLEX.m $(SOURCES)
$(TWEAK_NAME)_FRAMEWORKS = CoreGraphics UIKit ImageIO QuartzCore
$(TWEAK_NAME)_LIBRARIES = sqlite3 z
$(TWEAK_NAME)_CFLAGS += -fobjc-arc -w -Wno-unsupported-availability-guard $(IMPORTS) -g

include $(THEOS_MAKE_PATH)/tweak.mk

Expand Down

0 comments on commit b4a7006

Please sign in to comment.