CC = gcc
LD = ld
OPTIONS = -fno-builtin
INCLUDE = "../include"
OFILES = interrupt.o isrs.o

.c.o:
	$(CC) -c -I$(INCLUDE) $(OPTIONS) -o $*.o $<
	
.s.o:
	nasm -f elf -o $*.o $<

all: intr.o

intr.o: $(OFILES)
	$(LD) -r --oformat=elf32-i386 -o $*.o $(OFILES)


clean:
	rm -f	*.o
