NAME = tetris
ENTRY = _tetris

SYMS =  -defsym instructionsX=12
SYMS += -defsym instructionsY=19
SYMS += -defsym width=10
SYMS += -defsym xoffset=3
SYMS += -defsym height=16
SYMS += -defsym yoffset=2
SYMS += -defsym wait=150
SYMS += -defsym scoredrop=2
SYMS += -defsym scorelockin=3
SYMS += -defsym scoreline=100
SYMS += -defsym scoretetris=1000
SYMS += -defsym speedup=10

$(NAME): $(NAME).o
	ld -s -o $@ -m elf_i386 $^ -e $(ENTRY)

$(NAME).o: $(NAME).s
	as -o $@ $^ $(SYMS)

clean:
	rm -f $(NAME).o $(NAME)
