2010-08-17 09:59:29 +00:00
|
|
|
MAKE = make
|
|
|
|
CC = gcc
|
2010-08-17 21:20:03 +00:00
|
|
|
CFLAGS = -O2 -nostdinc -Wall -fno-builtin -I../current/include -I../../include -I../../arch/x86/include -fno-stack-protector
|
2010-08-17 09:59:29 +00:00
|
|
|
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
|