To put in the root Makefile or to use in directly within the make command.
FINALPACKAGE=1/DEBUG=0/FOR_RELEASE=1: builds an optimized package ready for release (and removes the-X+debug)LEAN_AND_MEAN=1: disables theos auto-import likeFoundation,UIKitand some others. Deprecated and useless since iOS 14.0.GO_EASY_ON_ME=1: tells theos to stop treating warnings as errors, makes the compiler quieter (I personnally don't recommend using it, it's always better to fix your code instead of muting errors, unless you really know what you're doing.)
- Use
INSTALL_TARGET_PROCESSESin theMakefileto list the processes to kill after install, so no need to write something like
after-install::
killall -9 SpringBoardSimilarly, PREINSTALL_TARGET_PROCESSES does the same but BEFORE the install.
File.m_CFLAGS = ...to provide flags for individual files- You can use
IS_IPADorIN_SPRINGBOARDmacros to check for these conditions from your code THEOS_INSTANCE_NAMEcan be used in code to read current instance's name (the$(TWEAK_NAME)thing etc)
instance_XXX is the name of your "Makefile variable", e.g. it can represent $(TWEAK_NAME) or $(BUNDLE_NAME).
instance_USE_SUBSTRATE=0to use internal generator instead of Substrate (don't ask me what this mean)instance_WEAK_LIBRARIES/instance_WEAK_FRAMEWORKSto weakly link both of them (also no clue what's that)instance_EXTRA_FRAMEWORKSis used to fetch frameworks installed manually in$THEOS/libinstance_LOGOSFLAGScan be used to specify Logos flags instead of using something like
%ctor {
%config(your_config);
%init;
}