Makefile 505 B

12345678910111213141516171819202122232425262728
  1. TARGET = jailbreakd_client
  2. OUTDIR ?= bin
  3. CC = xcrun -sdk appletvos cc -arch arm64
  4. LDID = ldid
  5. CFLAGS = -Wall
  6. .PHONY: all clean
  7. all: $(OUTDIR)/$(TARGET)
  8. DEBUG ?= 0
  9. ifeq ($(DEBUG), 1)
  10. CFLAGS += -DJAILBREAKD_CLIENT_DEBUG
  11. else
  12. CFLAGS += -O2
  13. endif
  14. $(OUTDIR):
  15. mkdir -p $(OUTDIR)
  16. $(OUTDIR)/$(TARGET): jailbreakd_client.m libjailbreak_mig.m mach/jailbreak_daemonUser.c | $(OUTDIR)
  17. $(CC) -o $@ $^ -framework Foundation $(CFLAGS)
  18. $(LDID) -SEnt.plist $@
  19. clean:
  20. rm -f $(OUTDIR)/$(TARGET)