diff --git a/Makefile b/Makefile index da530a2..f3843ae 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ HEADERS = $(wildcard *.inc) TARGETS = \ $(OUTDIR)/basis.system.SYS +XATTR := $(shell command -v xattr 2> /dev/null) + .PHONY: clean all all: $(OUTDIR) $(TARGETS) @@ -25,4 +27,6 @@ $(OUTDIR)/%.o: %.s $(HEADERS) $(OUTDIR)/%.SYS: $(OUTDIR)/%.o ld65 $(LDFLAGS) -o $@ $< +ifdef XATTR xattr -wx prodos.AuxType '00 20' $@ +endif