Makefile 460 B

1234567891011121314151617181920212223242526272829
  1. TARGET = createSnapshot
  2. OUTDIR ?= bin
  3. CC = xcrun -sdk appletvos cc -arch arm64
  4. # it is injected into trust cache by code
  5. # which only supports sha-256 signatures
  6. LDID = ldid
  7. CFLAGS = -Wall
  8. .PHONY: all clean
  9. DEBUG ?= 0
  10. ifeq ($(DEBUG), 1)
  11. else
  12. CFLAGS += -O2
  13. endif
  14. all: $(OUTDIR)/$(TARGET)
  15. $(OUTDIR):
  16. mkdir -p $(OUTDIR)
  17. $(OUTDIR)/$(TARGET): *.c | $(OUTDIR)
  18. $(CC) -o $@ $^ $(CFLAGS)
  19. $(LDID) -SEnt.plist $@
  20. clean:
  21. rm -f $(OUTDIR)/$(TARGET)