123456789101112131415161718192021222324252627 |
- TARGET = helloworld
- OUTDIR ?= bin
- CC = xcrun -sdk appletvos cc -arch arm64
- LDID = ldid
- CFLAGS = -Wall
- .PHONY: all clean
- all: $(OUTDIR)/$(TARGET)
- DEBUG ?= 0
- ifeq ($(DEBUG), 1)
- else
- CFLAGS += -O2
- endif
- $(OUTDIR):
- mkdir -p $(OUTDIR)
- $(OUTDIR)/$(TARGET): *.c | $(OUTDIR)
- $(CC) -o $@ $^ $(CFLAGS)
- $(LDID) -SEnt.plist $@
- clean:
- rm -f $(OUTDIR)/$(TARGET)
|