mirror of
https://github.com/akemin-dayo/simject.git
synced 2025-11-01 08:55:00 +00:00
* Remove reliance on Prefix.pch Prefix.pch was deprecated with iOS 13 and the functionality was removed with iOS 14 in theos. * Remove Prefix.pch Reliance This feature of theos was deprecated and removed with iOS 14. * Several large changes, see comment * Update resim/Makefile Co-authored-by: Karen/あけみ <karen@akemi.ai> * Update simject/Makefile Co-authored-by: Karen/あけみ <karen@akemi.ai> * Update Makefile Co-authored-by: Karen/あけみ <karen@akemi.ai> * Update simject/Makefile Co-authored-by: Karen/あけみ <karen@akemi.ai> * Update resim/Makefile Co-authored-by: Karen/あけみ <karen@akemi.ai> Co-authored-by: Karen/あけみ <karen@akemi.ai>
28 lines
615 B
Makefile
28 lines
615 B
Makefile
ifndef DYLIB_DIR
|
|
DYLIB_DIR = /opt/simject
|
|
endif
|
|
|
|
ifndef ARCH
|
|
ARCHFLAG =
|
|
else
|
|
ARCHFLAG = -arch $(ARCH)
|
|
endif
|
|
|
|
ifdef SYSROOT
|
|
SYSROOTFLAG = -isysroot $(SYSROOT)
|
|
endif
|
|
|
|
clean::
|
|
-@rm -r out/
|
|
|
|
build : resim.mm
|
|
@mkdir -p out
|
|
@echo "$(PREFIX) Compiling resim for $(shell clang -print-target-triple)"
|
|
@echo "$(SUB_PREFIX) Target directory is $(DYLIB_DIR)"
|
|
@$(CXX) resim.mm $(ARCHFLAG) $(SYSROOTFLAG) -framework Foundation -DDYLIB_DIR=@\"$(DYLIB_DIR)\" -o out/resim
|
|
@echo "$(SUB_PREFIX) Signing..."
|
|
@codesign -f -s - out/resim
|
|
@echo "$(SUB_PREFIX) Copying library..."
|
|
@mkdir -p ../bin
|
|
@cp out/resim ../bin
|