Makefile 382 B

12345678910111213141516171819
  1. TARGET = pspawn_hook.dylib
  2. OUTDIR ?= bin
  3. #CC = xcrun -sdk iphoneos gcc -arch arm64 -arch armv7 -arch armv7s
  4. CC = xcrun -sdk appletvos gcc -arch arm64 -F.
  5. LDID = ldid2
  6. all: $(OUTDIR)/$(TARGET)
  7. $(OUTDIR):
  8. mkdir -p $(OUTDIR)
  9. $(OUTDIR)/$(TARGET): *.m *.c mach/*.c | $(OUTDIR)
  10. $(CC) -dynamiclib -framework Foundation -o $@ $^
  11. $(LDID) -S $@
  12. clean:
  13. rm -rf $(OUTDIR)