objects = machine.o fetch.o getbits.o decode.o main.o

all: $(objects)
	gcc -o mace machine.o fetch.o decode.o getbits.o main.o

machine.o:
	gcc -c machine.h machine.c

fetch.o:
	gcc -c fetch.h fetch.c

getbits.o:
	gcc -c getbits.h getbits.c

decode.o:
	gcc -c decode.h decode.c

main.o:
	gcc -c main.c

clean:
	rm -f *.o

.PHONY: all clean

