Makefile 468 B

12345678910111213141516171819202122
  1. TARGET = jailbreakd
  2. OUTDIR ?= bin
  3. SRC = $(wildcard *.c) $(wildcard *.m) $(wildcard */*.c) $(wildcard */*.m)
  4. #CC = xcrun -sdk iphoneos gcc -arch arm64
  5. CC = xcrun -sdk appletvos gcc -arch arm64
  6. LDID = ldid2
  7. CHMOD = chmod
  8. all: $(OUTDIR)/$(TARGET)
  9. $(OUTDIR):
  10. mkdir -p $(OUTDIR)
  11. $(OUTDIR)/$(TARGET): $(SRC) | $(OUTDIR)
  12. $(CC) -framework Foundation -framework IOKit -o $@ $^
  13. $(LDID) -Sentitlements.xml $@
  14. $(CHMOD) 755 $@
  15. clean:
  16. rm -rf $(OUTDIR)