.SUFFIXES : .x .o .c .s
CC=gcc

all : hello.x flash.x
	run hello.x
	
hello.s : hello.c
	$(CC) -O -g -S hello.c

hello.o : hello.s
	$(AS) -ahld -o hello.o hello.s


hello.x: hello.o
	$(CC)  -o hello.x hello.o 


flash.x: flash.c
	$(CC) -O -c flash.c
	$(LD) -o flash.x -oformat srec ../lib/crt0.o flash.o

