Makefile 422 B

1234567891011121314151617181920
  1. TARGET = amfid_payload.dylib
  2. OUTDIR ?= bin
  3. SRC = $(wildcard *.c) $(wildcard *.m) $(wildcard */*.c) $(wildcard */*.m)
  4. CC = xcrun -sdk appletvos gcc -arch arm64
  5. LDID = ldid
  6. CFLAGS = -dynamiclib -framework Foundation -framework IOKit -lc++ -F.
  7. all: $(OUTDIR)/$(TARGET)
  8. $(OUTDIR):
  9. mkdir -p $(OUTDIR)
  10. $(OUTDIR)/$(TARGET): $(SRC) | $(OUTDIR)
  11. $(CC) $(CFLAGS) -o $@ $^
  12. $(LDID) -S $@
  13. clean:
  14. rm -rf $(OUTDIR)