MAKE = make
CC = gcc
CFLAGS = -O2 -nostdinc -Wall -fno-builtin -I../current/include -I../../include -I../../arch/x86/include -fno-stack-protector 
LDFLGAS = -nostdlib -L../current/lib/ 

# other implicit rules
%.o : %.c
	$(CC) -c $(CFLAGS) -o $@ $< 

default:
	$(MAKE) hello
	
all: 
	$(MAKE) hello 

hello: hello.o
	$(CC) -T link.ld -o $@ $(LDFLGAS) $< 

clean:
	$(RM) *.o *~ 

depend:
	$(CC) -MM $(CFLAGS) hello.c > Makefile.dep

-include Makefile.dep
# DO NOT DELETE