25 lines
485 B
Makefile
25 lines
485 B
Makefile
TITLE = "Game of Life"
|
|
INCLUDE = -i Graphics -i Code
|
|
|
|
NAME = $(notdir $(CURDIR))
|
|
FILES = $(wildcard Code/*.asm)
|
|
OBJECTS = $(patsubst Code/%.asm,Build/%.o,$(FILES))
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
Build/%.o: Code/%.asm
|
|
@echo Assembling $<
|
|
@rgbasm $(INCLUDE) -o $@ $<
|
|
|
|
$(NAME).gb: $(OBJECTS)
|
|
@echo Linking...
|
|
@rgblink -n $(NAME).sym -w -t -o $(NAME).gb -d $(OBJECTS)
|
|
@rgbfix -t $(TITLE) -v -p 0 $(NAME).gb
|
|
|
|
clean:
|
|
@rm -f $(OBJECTS)
|
|
@rm -f $(NAME).sym
|
|
|
|
mrproper: clean
|
|
@rm -f $(NAME).gb
|