nix-snes-templates/with-asar/Makefile

26 lines
409 B
Makefile
Raw Normal View History

2022-04-27 22:19:52 -04:00
# This makefile is largely pointless, but it allows
# for easier manipulation of the build process, so
# it's worth adding in.
# The name of the resulting ROM file. This will be
# overwritten by Nix when 'nix build' is called.
2022-04-27 22:07:42 -04:00
NAME ?= main
ASM=asar
ASMFLAGS=
VPATH=src
2022-04-27 22:19:52 -04:00
2022-04-27 22:07:42 -04:00
.PHONY: all
all: $(NAME).sfc
$(NAME).sfc: main.asm
$(ASM) $(ASMFLAGS) $^ $@
# Clean directory
.PHONY: clean
clean:
rm $(NAME).sfc